Re: FreeBSD6: php.ini not find in phpinfo

2007-06-11 Thread Richard Lynch
On Sun, June 10, 2007 7:49 pm, James liu wrote:
 i use ports to default setup...

 web£ºlighttpd

 php: php5+php5-extensions


 cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini

 restart lighttpd and phpinfo don't know php.ini.

 now i wanna config php moudel, but if no php.ini, i will do nothing.

 anyone know how to let phpinfo find php.ini?

phpinfo() output includes the directory name where it is looking for
php.ini

Put your php.ini file there.

You can also, in Apache2 and more recent versions of php, add a
configure directive to Apahce that tells PHP where to look for
php.ini.  It is named something like PHPIniDir, I believe.
http://apache.org

Note that PHP running as an Apache module reads the php.ini file only
once, when Apache STARTS UP.

You *must* re-start Apache to get your new or changed php.ini file
to be re-read.

If you are running as CGI, PHP is re-started on each page hit, and
reads php.ini at that time.

If you are running as FCGI, re-start the FCGI process should do it, I
would think, but never investigated...

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD6: php.ini not find in phpinfo

2007-06-10 Thread James liu

i use ports to default setup...

web:lighttpd

php: php5+php5-extensions


cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini

restart lighttpd and phpinfo don't know php.ini.

now i wanna config php moudel, but if no php.ini, i will do nothing.

anyone know how to let phpinfo find php.ini?


--
regards
jl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]