I have a server and a local version of it on my hard drive.
I am trying to access the local version through localhost.
Entering localhost works, I enter the base html file and all that.
The problem is that I can't load my server's php.ini file. The system always just loads the default one and nothing else.
When I run phpinfo() it says:
(php.ini) Path: /etc/php5/apache2
Loaded Configuration File: /etc/php5/apache2/php.ini
I don't think there's any problem with my .htaccess file for that's identical to the one on the server.
I am suspecting there is something missing in /etc/apache2.
In it I have changed /etc/apach2/sites_enabled/000-default by changing document root and directory from /var/www to the path to my local instance of the server.
I find it a bit bizarre that the filename is 000-default and not just 'default'.
I have also changed document root and directory in /etc/apache2/sites_available/default.
I did by accident install first apache2, and then lamp, which i think also installs apache2 so maybe there could have been some misconfiguration due to that?
I have already restarted apache and the computer, but to no avail. The localhost-server-folder is always loading the php.ini in /etc/php5/apache2/php.ini.
How do I change which php.ini file is loaded locally?