Welcome Guest, Not a member yet? Register   Sign In
Trying to move system folder one up?
#1

[eluser]123wesweat[/eluser]
Hi there,

I have uploaded system folder as root at the same levelas httpdocs

but this
$system_folder = "/var/www/vhosts/mydomain.com/system";

nor this
$system_folder = "../system";

works.

When i upload system as is, then it seems to work but i like to move the system folder

Any tips, suggestions?
#2

[eluser]tomcode[/eluser]
Put

Code:
echo getcwd();


in Your index.php. Then You know the path to Your index file and You should be able to set the path to Your system and application location.
#3

[eluser]123wesweat[/eluser]
tx, tomcode

but the path to system is correct.
It says /var/www/vhosts/mydomain.com/httpdocs

this is the errors i get
Code:
open_basedir restriction in effect. File(/var/www/vhosts/mydomain.com/system/codeigniter/CodeIgniter.php) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/httpdocs:/tmp) in /var/www/vhosts/mydomain.com/httpdocs/index.php on line 118

Any other tips i how to fix open basedir??

btw: i had to add
ini_set('display_errors', 1);

to get the errors to be displayed
#4

[eluser]tomcode[/eluser]
This is a server setting, see

http://fr2.php.net/manual/en/ini.core.ph...en-basedir
#5

[eluser]123wesweat[/eluser]
tx, for the direction

unfortunatly i haven't fix this yet
i tried vhost.conf
Code:
<directory /var/www/vhosts/mydomain.com/httpdocs>
php_admin_value open_basedir none
php_admin_flag safe_mode 0
<Directory/>

and

Code:
php_admin_value open_basedir /var/www/vhosts/city2go.net/httpdocs:/tmp:/system
i even edited httpd.include
and disabled
Code:
#php_admin_value open_basedir "/var/www/vhosts/mydomain.com/httpdocs:/tmp"



within the apache and php5 section

any more tips??

ps: can't get to my plesk cp at the moment
#6

[eluser]tomcode[/eluser]
see also http://fr2.php.net/manual/en/configurati...ges.apache

Sorry, have not better advise.
#7

[eluser]Colin Williams[/eluser]
$system_folder = '../system';
#8

[eluser]123wesweat[/eluser]
@colin, sorry i mistyped in my org. thread. I already tried ../system.

It has to do with the open_basedir restriction
#9

[eluser]123wesweat[/eluser]
any other suggestions??




Theme © iAndrew 2016 - Forum software by © MyBB