apache - PHP.ini does not load automatically even though it exists at the config location -


ok me not knowing enough php here goes.

i'm on ubuntu hardy. have custom compiled version of php have compiled these parameters.

./configure --enable-soap --with-zlib --with-mysql --with-apxs2=[correct path] --with-config-file-path=[correct path] --with-mysqli --with-curlwrappers --with-curl --with-mcrypt 

i have used command pecl install pecl_http install http.so extension. in correct module directory php.ini. php.ini loading , can change things within ini , effect php. have included extension=http.so line in php.ini.

that worked fine. until added these compilation options in order add imap

--with-openssl --with-kerberos --with-imap --with-imap-ssl 

which failed because needed c-client library fixed apt-get install libc-client-dev after php compiles fine , have working imap support, woo.

however, calls httprequest part of pecl_http extention in http.so result in fatal error: class 'httprequest' not found errors. figure http.so module no longer loading 1 reason or cannot find errors showing reason.

you might "have tried undoing new imap setup?" answer. yes have. directly undid config changes , uninstalled c-client library , still can't work. thought that's weird... have made no changes have resulted in issue. after looking @ have discovered not http extension no longer loading extensions loaded via php.ini no longer loading.

can @ least give me further debugging steps? far have tried enabling errors including startup errors in php.ini works other errors, i'm not seeing startup errors either on command line or via apache. , yet again php.ini appears being parsed given if run php_info() settings in php.ini.

edit appears of php.ini settings being listened to. there way test php.ini?

edit edit appears mistaken again , php.ini not being loaded @ longer. however, if run php_info() it's looking php.ini in correct location.

edit edit edit config @ config file path location below says no config file loaded. wtf permission issue? 644 should able read if not write it. tried making 777 , didn't work.

configuration file (php.ini) path   /etc/php.ini loaded configuration file   (none) 

edit edit edit edit loading ini on command line using -c command able run files , using -m shows modules load nothing wrong php.ini

edit edit edit edit edit have had pointed out me ini directory config should path find php.ini file in not file itself. end have tried settings /etc,/etc/, , letting php set default directory moving ini file directory. fail :(

edit edit edit edit edit have had pointed out me ini directory config should path find php.ini file in not file itself. end have tried settings /etc,/etc/, , letting php set default directory moving ini file directory. fail :(

edit edit edit edit edit edit further info, command line run of php --ini , ls of dir points @ in php settings. run -c option on command line run succeeds , not when don't include -c

j@j:/usr/local/lib$ php -ini | grep configuration configuration file (php.ini) path => /usr/local/lib loaded configuration file => (none) configuration j@j:/usr/local/lib$ ls /usr/local/lib php  php.ini  python2.5  site_ruby j@j:/usr/local/lib$ php -c /usr/local/lib/php.ini /var/www/toolbelt/test.php j@j:/usr/local/lib$ php /var/www/toolbelt/test.php  fatal error: class 'httprequest' not found in /var/www/toolbelt/test.php on line 7 jonathan@jonathan:/usr/local/lib$ 

edit edit edit edit edit edit edit further info. utilizing strace method shown in stack exchange article tested see if there attempts open ini file made in loading of php. there not

j@j:/usr/local/lib$ sudo strace  -e trace=open php -ini 2>&1 |grep  php.ini configuration file (php.ini) path => /usr/local/lib j@j:/usr/local/lib$ sudo strace  -e trace=open php -ini 2>&1 |grep  /usr/local/lib configuration file (php.ini) path => /usr/local/lib extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20060613 => /usr/local/lib/php/extensions/no-debug-non-zts-20060613 include_path => .:/usr/local/lib/php => .:/usr/local/lib/php 

ok prevent else banging head against wall hours.

i have found own solution in clean building php. turns out can alter with-config-file-path option , have alter path shows in phpinfo() , php -ini output. however, if don't clean build place setting gets used not rebuilt , f build.

note self: clean build. knew before got thrown off fact rebuild in fact change php tells me directory is.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -