mercredi 2 juillet 2014

My user php.ini is not being read


Vote count:

0




My website, instead of being installed on /var/www, is in some folder of my /home/. Let's suppose my document root is in folder:



/.../root


With its corresponding



/.../root/index.php
/.../root/php.ini


index.php contains a line like:



<a href="test/tests.php">Test</a>


I use the tests.php file for making tests. In this case, I'm trying to notify to the browser compiler errors (debugging purposes). For achieving that, I need to configure display_errors=On and error_reporting = E_ALL in a php.ini, because if I set both variables with ini_set, and the file has compiler errors, this sentences are not executed (since a ill-formed php script is not executed).


My problem is that my php.ini is not being read. I have tried to enable/disable display_error and I see no changes. I've also added a syntactic errors to php.ini a /etc/apache/error.log says nothing. Even, with phpinfo, my local php.ini doesn't appear.


What is happening?


Some info from phpinfo() (in tests.php):



System Linux peregringlk-Ubuntu 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:25:33
UTC 2013 i686
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
Additional .ini files parsed /etc/php5/apache2/conf.d/10-pdo.ini,
/etc/php5/apache2/conf.d/20-gd.ini,
/etc/php5/apache2/conf.d/20-mysql.ini,
/etc/php5/apache2/conf.d/20-mysqli.ini,
/etc/php5/apache2/conf.d/20-pdo_mysql.ini
Debug Build no
Apache Version Apache/2.2.22 (Ubuntu)
Server Root /etc/apache2
Loaded Modules core mod_log_config mod_logio mod_version prefork http_core mod_so
mod_alias mod_auth_basic mod_authn_file mod_authz_default
mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex
mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation
mod_php5 mod_reqtimeout mod_setenvif mod_status
HTTP_REFERER http://localhost/
DOCUMENT_ROOT /.../root // Changed by me.
SCRIPT_FILENAME /.../root/test/tests.php
GATEWAY_INTERFACE CGI/1.1
PHP Version 5.4.9-4ubuntu2.4


asked 43 secs ago






Aucun commentaire:

Enregistrer un commentaire