note 72212 added to configuration
| From: | cduke420 at gmail dot com | Date: | Mon, 08 Jan 2007 06:16:32 +0000 |
| Subject: | note 72212 added to configuration | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121411@lists.php.net to get a copy of this message | ||
[ When php run as Apache Module ]
DOCUMENT_ROOT .htaccess
+======================================+
SetEnv PHPRC /home/user/dir-containing-phpinifile
+======================================+
[ When php run as CGI ]
Place your php.ini file in the dir of your cgi'd php binary, in this case /cgi-bin/
DOCUMENT_ROOT .htaccess
+======================================+
AddHandler php-cgi .php .htm
Action php-cgi /cgi-bin/php5.cgi
+======================================+
[ PHP run as cgi with wrapper (for FastCGI) ]
Your wrapper script should look something like:
+======================================+
#!/bin/sh
export PHP_FCGI_CHILDREN=3
exec /user/htdocs/cgi-bin/php.cgi -c /home/user/php.ini
+======================================+
original article:
http://www.askapache.com/2007/php/custom-phpini-tips-and-tricks.html
----
Server IP: 64.71.164.2
Probable Submitter: 24.172.164.205
----
Manual Page -- http://www.php.net/manual/en/configuration.php
Edit -- https://master.php.net/note/edit/72212
Del: integrated -- https://master.php.net/note/delete/72212/integrated
Del: useless -- https://master.php.net/note/delete/72212/useless
Del: bad code -- https://master.php.net/note/delete/72212/bad+code
Del: spam -- https://master.php.net/note/delete/72212/spam
Del: non-english -- https://master.php.net/note/delete/72212/non-english
Del: in docs -- https://master.php.net/note/delete/72212/in+docs
Del: other reasons-- https://master.php.net/note/delete/72212
Reject -- https://master.php.net/note/reject/72212
Search -- https://master.php.net/manage/user-notes.php