I got a server that runs : PHP Version 5.5.9-1 ubuntu 4.9
I wanted to edit the "correct" php.ini file so i can enable some features. First of all i used:
root@server ~ # find / -name php.ini /opt/psa/admin/conf/php.ini /opt/plesk/php/5.3/etc/php.ini /opt/plesk/php/5.5/etc/php.ini /opt/plesk/php/5.4/etc/php.ini /opt/plesk/php/5.6/etc/php.ini /var/www/vhosts/system/mysiteyo/etc/php.ini /etc/php5/cgi/php.ini /etc/php5/apache2/php.ini /etc/php5/cli/php.ini /etc/psa-webmail/horde/horde/php.ini /etc/psa-webmail/roundcube/php.ini
I read from a previous thread that I should edit the
I also created a
phpinfo(); script and run it from my browser.
The configuration file Path @ phpinfo was the
/etc/php5/cgi/php.ini but the loaded configuration file was :
As I opened the above file, I saw this:
; ATTENTION! ; ; DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY, ; SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
So I thought that this file is somehow generated from one of the other php.ini files.
Then i renamed both files (/etc/php5/cgi && /etc/php5/apache2) as
php_tmp.ini and loaded my new modified
After that i restarted apache2:
root@server ~ # /etc/init.d/apache2 restart
Although as i rerun the
phpinfo(); script, I can't see any changes. I changed kinda half of the scripts I found with the
find command, but I got the feeling that I'm doing something completely wrong.
Could someone enlighten me, if I've missed something or am doing something wrong? I think that this auto-generated file is the problem but I don't know from where it is getting generated to edit that file. Thanks for your time.