php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29824 The apache-module doesn't load php.ini
Submitted: 2004-08-24 21:08 UTC Modified: 2004-08-25 10:12 UTC
From: mp at 247net dot de Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.0.1 OS: OpenBSD
Private report: No CVE-ID: None
 [2004-08-24 21:08 UTC] mp at 247net dot de
Description:
------------
The ini-file isn't loaded by the apache module (the 
cli-version works fine). 
Seemingly it's fixed in CVS (5.1.x-dev) php5-200408241630! 
 
# ./configure \ 
  --with-config-file-path=/var/www/conf/php.ini \ 
  --with-apxs=/usr/sbin/apxs 
 
# cat /var/www/conf/httpd.conf | grep php5 
LoadModule php5_module /usr/local/lib/php/libphp5.so 
 
# ls -l /var/www/conf/php.ini 
-rw-r-----  1 root  www  44.1K Aug 24 
19:05 /var/www/conf/php.ini 
 
# php -f phpinfo.php 
phpinfo() 
PHP Version => 5.0.1 
 
System => OpenBSD www 3.5 GENERIC#34 i386 
Build Date => Aug 24 2004 18:57:18 
Configure Command =>  './configure'  
'--with-config-file-path=/var/www/conf/php.ini'  
'--with-apxs=/usr/sbin/apxs' 
Server API => Command Line Interface 
Virtual Directory Support => disabled 
Configuration File (php.ini) Path => /var/www/conf/php.ini 
PHP API => 20031224 
PHP Extension => 20040412 
Zend Extension => 220040412 
Debug Build => no 
Thread Safety => disabled 
IPv6 Support => enabled 
Registered PHP Streams => php, file, http, ftp 
Registered Stream Socket Transports => tcp, udp, unix, udg 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-25 02:47 UTC] edink@php.net
--with-config-file-path is the *path* where php.ini lives, not the filename.
 [2004-08-25 10:12 UTC] mp at 247net dot de
it's the same problem with 
--with-config-file-path=/var/www/conf. And as mentioned 
before it's (--with-config-file-path=/var/www/conf/php.ini) 
running with php5-200408241630. So maybe the stable version 
could also be fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 11:01:31 2024 UTC