apache - PHP not loading php.ini -
running php/apache on redhat 6.5 environment. running issues php installation. php installed , compiles source , used following command configure it.
'./configure' '--prefix=/u/g/php' '--with-libxml-dir=/u/g/util/libxml2/' '--with-apxs2=/u/g/apache/bin/apxs' '--with-config-file-path=/u/g/php/config' '--enable-mbstring'
this works can run php , appache. trying enable extension , php.ini file have configured not getting read.
in php_info() has
configuration file (php.ini) path /u/g/php/config
however understand it, should contain file /u/g/php/config/php.ini
started/stopped service..
any ideas?
most servers have more 1 php.ini file. best guess you're editing wrong one. see 1 being used php, run this:
<?php $inipath = php_ini_loaded_file(); if ($inipath) { echo 'loaded php.ini: ' . $inipath; } else { echo 'a php.ini file not loaded'; } ?>
edit: if returned 'not loaded', try in ssh:
php --ini
or in php:
phpinfo();
http://php.net/manual/en/function.php-ini-loaded-file.php
also, sure restart apache after changing php.ini file.
Comments
Post a Comment