You are here: Re: php.ini and Virtual Hosts « All PHP « IT news, forums, messages
Re: php.ini and Virtual Hosts

Posted by J.O. Aho on 10/13/48 11:37

Mike Wasilewski wrote:
> I have a virtual dedicated server on godaddy and am having trouble with the
> incude_path and open_basedir errors in php.
>
> The phpinfo() reports that it is using /etc/php.ini which has both the
> include_path and open_basedir commented out.
>
> the values that show in phpinfo() are .:/usr/share/pear and
> /home/httpd/vhosts/hostname/httpdocs:/tmp
> how can I tell where these values are being loaded from so that I can change
> them. is there a single file that can be changed to apply to all vhosts?

The path '/home/httpd/vhosts/hostname/httpdocs' comes from the webserver and
can be changed in the vhosts configurations 'DocumentRoot' option.

There are usually different php.ini depending on if it's php run from
webserver or from cli and I think you have been modifying the one for the cli.
You may have /etc/php/apache-php/php.ini or /etc/apache/conf/php.ini, much
depends on what os/distro you are using.


//Aho

 

Navigation:

[Reply to this 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

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