Article: | PHP 4.3 and Mac OS X | |
Subject: | where is php.ini | |
Date: | 2003-01-17 00:45:01 | |
From: | anonymous2 | |
Anyone know where php.ini is installed after completing this process? I couldn't find it in /etc or /usr/lib/php. |
Showing messages 1 through 4 of 4.
- where is php.ini
2003-02-28 18:40:14 tychay [Reply | View]The default compile of php no longer installs a php.ini file.
There are two included with the php distribution php.ini.dist and php.ini.recommended(?).
The place to put the config file is in /etc/php.ini (if using Apple's directives) or /usr/local/etc/php.ini (if using the default configure, or Mark's compile). The quick way to find out (assuming php4.3+) is
bash-2.05a$ php -r "phpinfo();" | grep Configuration
Configuration File (php.ini) Path => /etc
Configuration
If you can't do that (because you are using pre 4.3, for shame!) then try the script another post mentioned.
Hope this helps,
terry chay
tychay at php dot net
บน linux
หาได้โดย php -r "phpinfo();" | grep Configuration หรือ echo ""|php |grep Configuration ดีเนอะ
No comments:
Post a Comment