Reply to Re: open_basedir is commneted out in my php.ini file, yet I still get the error messages

Your name:

Reply:


Posted by lawrence k on 03/13/07 00:54

On Mar 12, 5:12 pm, "lawrence k" <lkrub...@geocities.com> wrote:
> If I ssh to my server and look at the php.ini file, it apears that
> open_basedir is off:
>
> ; open_basedir, if set, limits all file operations to the defined
> directory
> ; and below. This directive makes most sense if used in a per-
> directory
> ; or per-virtualhost web server configuration file. This directive is
> ; *NOT* affected by whether Safe Mode is turned On or Off.
> ;open_basedir =
>
> yet I still get these errors:
>
> e path: /home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/
> AlexSchein/SpeedofLight/TheWhiteFlag.mp3
>
> Warning: file_exists(): open_basedir restriction in effect. File(/home/
> httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/AlexSchein/
> SpeedofLight/TheWhiteFlag.mp3) is not within the allowed path(s): (/
> home/httpd/vhosts/monkeyclaus.org/httpsdocs:/tmp) in /home/httpd/
> vhosts/monkeyclaus.org/httpsdocs/site_specific_files/makePurchase.php
> on line 116
>
> What is up with that?



I discovered that if the server uses Plesk, you have to edit the
vhost.conf file for the domain. I edited the file, and added the
php_admin_value line that you can see here:

<Directory /home/httpd/vhosts/monkeyclaus.org/httpdocs>
RewriteEngine On
AllowOverride All
php_admin_value open_basedir "/home/httpd/vhosts/monkeyclaus.org/:/usr/
share/pear"
</Directory>

However, I'm still getting open_basedir errors.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация