Trying to move system folder one up? |
[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?
[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.
[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
[eluser]tomcode[/eluser]
This is a server setting, see http://fr2.php.net/manual/en/ini.core.ph...en-basedir
[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> and Code: php_admin_value open_basedir /var/www/vhosts/city2go.net/httpdocs:/tmp:/system 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
[eluser]tomcode[/eluser]
see also http://fr2.php.net/manual/en/configurati...ges.apache Sorry, have not better advise.
[eluser]123wesweat[/eluser]
@colin, sorry i mistyped in my org. thread. I already tried ../system. It has to do with the open_basedir restriction
|
Welcome Guest, Not a member yet? Register Sign In |