I have compiled PHP dozens of times, but never seen this.
Fedora core 6
Apache 2 (rpm)
PHP 5.2.1 (compiled from source)
I defined --with-config-file-path=/usr/local/lib
After install, moved a config file to that directory, named it php.ini, stopped and started Apache. Scripts run, but phpinfo()
reports php.ini not found, and displays only default settings.
I have changed ownership and permissions on php.ini, and recompiled with different configure parameters, but nothing works.
Has anyone seen this?
PHP will not read php.ini
Moderator: General Moderators
PHPIniDir
Thanks very much. I have been using Apache 1.3 before, but had to replicate a development environment that has Apache 2.
However, that change doesn't affect scripts run from the command line. It appears you can pass the path/php.ini to CLI with the -c switch, but
you cannot call the script directly using a shebang line. I always thought that was a cleaner way to call scripts from a cron.
Thanks.
However, that change doesn't affect scripts run from the command line. It appears you can pass the path/php.ini to CLI with the -c switch, but
you cannot call the script directly using a shebang line. I always thought that was a cleaner way to call scripts from a cron.
Thanks.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia