note 71238 added to configuration

From: Date: Sat, 18 Nov 2006 12:21:24 +0000
Subject: note 71238 added to configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-119849@lists.php.net to get a copy of this message
Setting php.ini location for PHP working as Apache module (without use SetEnv directive in httpd.conf): Before start Apache, set the PHPRC environment variable to the path where php.ini should be loaded, for example: PHPRC=/etc/php4/apache-another-path export PHPRC In Debian we can do this way: In /etc/init.d/apache (the script that loads apache web server) we have this line: ENV="env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin" Set to this: ENV="env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin PHPRC=/etc/php4/apache-another-path" Then wen you reload apache the php.ini will be loaded in the directory configured in PHPRC environment variable. ---- Server IP: 200.185.109.13 Probable Submitter: 200.168.0.58 ---- Manual Page -- http://www.php.net/manual/en/configuration.php Edit -- https://master.php.net/note/edit/71238 Del: integrated -- https://master.php.net/note/delete/71238/integrated Del: useless -- https://master.php.net/note/delete/71238/useless Del: bad code -- https://master.php.net/note/delete/71238/bad+code Del: spam -- https://master.php.net/note/delete/71238/spam Del: non-english -- https://master.php.net/note/delete/71238/non-english Del: in docs -- https://master.php.net/note/delete/71238/in+docs Del: other reasons-- https://master.php.net/note/delete/71238 Reject -- https://master.php.net/note/reject/71238 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119849) next »