Re: How to force mod_php to load php.ini ?
| From: | Curt Zirzow | Date: | Sat, 26 Jun 2004 03:50:52 +0000 |
| Subject: | Re: How to force mod_php to load php.ini ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189099@lists.php.net to get a copy of this message | ||
* Thus wrote Nico Sabbi:
>
> Hi,
> is there a way configure mod_php4 (for apache) so as to be *absolutely* sure
> that it will always load all definitions in php.ini when apache starts up?
> Maybe with some directive in http.conf ?
As far as I know, there isn't a php directive in apache to tell it
which ini to load.
>
> Almost every time I reboot my pc apache and php start, but php is not
> running with /etc/php.ini, so I have to execute
The php loading goes as follows:
apache starts
apche request from php to load
php gets loaded using its compile path to locate php.ini (see
output from phpinfo())
>
> /etc/init.d/httpd restart
You might want to evaluate your startup procedures to make sure it
starting apache correctly.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!