|
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.
Navigation:
[Reply to this message]
|