[PHP] Re: Php.ini
Look at chapter 3 of the PHP manual, it covers specifying PHP configuration in your http.conf or .htaccess files, you can do this per virtual host, per directory or however else you want to do it. Jason "Chris Kay" <[EMAIL PROTECTED]> wrote in message 01c1d83c$9c334e50$8b6712cb@iceberg">news:01c1d83c$9c334e50$8b6712cb@iceberg... > > Question I have is, > > Is it possible to specify a php.ini in each virtual host? > That way allowing each website to run a different configuration. > > Cause I have a website that I want to use > Session_set_save_handler = user but I want another website to use the > default php > Files handle. > > Also for things like session auto start ect > > Just a thought that it would make it easier. > > Thanks in advance. > > --- > Chris Kay, Eleet Internet Services > [EMAIL PROTECTED] > --- > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Php.ini
Once upon a time on another (Windows) server I could place a php.ini in a directory and it would choose that one first before it defaulted to c:\windows\php.ini. It doesn't work on my Apache server today, but who knows? Chris Kay wrote: > Question I have is, > > Is it possible to specify a php.ini in each virtual host? > That way allowing each website to run a different configuration. > > Cause I have a website that I want to use > Session_set_save_handler = user but I want another website to use the > default php > Files handle. > > Also for things like session auto start ect > > Just a thought that it would make it easier. > > Thanks in advance. > > --- > Chris Kay, Eleet Internet Services > [EMAIL PROTECTED] > --- -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php.ini
In Win98 at least it should be in C:\Windows. php.ini could also be run out of the directory where the *.php is running. Jeremiah Jester wrote: > Does it matter where my php.ini file is located on a windows2000 system? > Does it always need to be on the root of the volume where the files are > being served or can it be located on another volume? > Thanks, > JJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: php.ini question
document root is where your webserver gets his files from. Default on Apache is htdocs. Hope this helps, Andy http://www.globosapiens.net Global Travellers Network! "Taylor Lewick" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When setting doc_root in the php.ini section, should that be the cgi-bin directory, or the doc-root of the webserver, i.e. htdocs..? Thanks, Taylor Taylor Lewick Unix System Administrator Fortis Benefits 816 881 6073 "Help Wanted. Seeking Telepath..." "You Know where to apply." Please Note The information in this E-mail message is legally privileged and confidential information intended only for the use of the individual(s) named above. If you, the reader of this message, are not the intended recipient, you are hereby notified that you should not further disseminate, distribute, or forward this E-mail message. If you have received this E-mail in error, please notify the sender. Thank you * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php.ini executable
go for it...even if someone did a visual tool for that. my question goes, has anyone made a *nix program to configure php.ini ? ;) before i "Jtjohnston" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Has anyone made a Windows executable to configure the php.ini? ... just > asking, before I find myself doing it myself. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: php.ini not being read
Is php.ini readable? Any messages in your Apache error log? Are you 100% sure you really killed Apache and restarted?... I've had cases where I managed to install the new Apache in a different location, and ended up with two different sets of httpd's running. Quite disconcerting. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Brett <[EMAIL PROTECTED]> Newsgroups: php.general To: Php-General@Lists. Php. Net <[EMAIL PROTECTED]> Sent: Sunday, August 12, 2001 2:47 AM Subject: php.ini not being read > Changes made to my php.ini file are not showing up upon a restart of apache. > I compiled php to use the php.ini in a directory of my choosing and this is > the directory which phpinfo() reports the php.ini file to be found. Yet all > changes are ignored. > > Any ideas why? > > >brett newman >[EMAIL PROTECTED] > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: php.ini not being read
>Is php.ini readable? > >Any messages in your Apache error log? No messages in the apache error logs. >Are you 100% sure you really killed Apache and restarted?... I've >had cases >where I managed to install the new Apache in a different location, >and ended >up with two different sets of httpd's running. Quite disconcerting. I am positive. /etc/rc.d/init.d/httpd stop /etc/rc.d/init.d/httpd start I have never touched the apache installation. I am currently under the impression that compiling with --with-config-file-path=/etc/httpd/conf/php.ini has screwed up the install. That is unless someone has any other ideas? My first question really is if the php install doesn't find the php.ini does it use built in defaults? That would help explain why my changes aren't active. I asked this because I noticed when I made changes to the session configuration they were never realised in the pages I am running. brett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: php.ini not being read
> I am positive. > /etc/rc.d/init.d/httpd stop > /etc/rc.d/init.d/httpd start > I have never touched the apache installation. I am currently under the > impression that compiling > with --with-config-file-path=/etc/httpd/conf/php.ini has screwed up the > install. That is unless someone has any other ideas? > > My first question really is if the php install doesn't find the php.ini does > it use built in defaults? That would help explain why my changes aren't > active. > > I asked this because I noticed when I made changes to the session > configuration they were never realised in the pages I am running. Yes, the built-in default will be used if you have no php.ini file. Or if PHP can't find it. The phpinfo() page will tell you where it is looking for it to be. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]