PHP bugged - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: PHP bugged (/thread-5524.html) Pages: 1 2 |
PHP bugged - ceco91 - 01-24-2009 09:24 PM I receive: Code: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/hosting-zone.eu/other-sites/support.hosting-zone.eu/htdocs/livechat/super/phplive.txt) is not within the allowed path(s): (/var/www/virtual/hosting-zone.eu/:/usr/share/php/) in /var/www/virtual/hosting-zone.eu/other-sites/support.hosting-zone.eu/htdocs/livechat/setup/index.php on line 311 Any ideas how to fix it? RE: PHP bugged - kurgans - 01-24-2009 09:31 PM hello Add the path in your php.ini (domain no master) openbasedir open_basedir = "/ var / www / virtual / zone.eu-hosting /: / usr / share / php: / www / hosting-zone.eu / other-sites / support.hosting-zone.eu / htdocs / livechat / setup " Restar apache RE: PHP bugged - ceco91 - 01-25-2009 12:36 AM No effect! RE: PHP bugged - joximu - 01-25-2009 04:35 AM btw: the to be included path should already be "opened" - it's a subfolder.... looks like php bug or other problem (symlink, length of path, i dont's know...) /J RE: PHP bugged - ceco91 - 01-25-2009 08:53 PM Yes, I noticed that. Now I will try to compile a new php. RE: PHP bugged - Mastacheata - 01-27-2009 09:48 AM Personally I think you did something wrong in your php script. The path you are trying to open is /var/www/hosting-zone.eu/... and the script is working in /var/www/virtual/hosting-zone.eu/... Of course its possible that this was done with intent and then you'll have to add /var/www/hosting-zone.eu/... to your open_basedir path. In case this wasn't your intent you should check with your script and or symlinks etc. Maybe you just added one parent folder (..) too much to the file_exists() parameter. RE: PHP bugged - ceco91 - 01-28-2009 06:08 AM The php script is writing properly. It writes in sub-folder. I think PHP is bugged but I cant compile new one because I have installed libiconv and there is a 3-year-old bug with php installation. RE: PHP bugged - joximu - 01-28-2009 07:35 AM Hi ceco91 I nevertheless think Mastacheata is right. I also did not see the difference :-) the file which has to be accessed is (or is supposed to be) in /var/www/hosting-zone.eu/... and not /var/www/virtual/hosting-zone.eu/... there's a missing "virtual/" in the path... That's why the file is not accessible - you'd had to "open_basedir" /var/www/hosting-zone.eu/... Cheers J RE: PHP bugged - kurgans - 01-28-2009 07:46 PM Hey Joximu that good view, marking the route I was thinking about my work structure. Very good care RE: PHP bugged - ceco91 - 01-29-2009 08:28 AM All virtual hosts are in "/var/www/virtual". It's a default ispCP path. '/virtual' missed but the problem still exists. I have fixed this, no change. My php config says: Code: open_basedir = "/var/www/virtual/hosting-zone.eu/:/usr/share/php/:/var/www/virtual/hosting-zone.eu/other-sites/support.hosting-zone.eu/htdocs/livechat/setup" Code: <IfModule mod_php5.c> |