I would stop Apache using sudo service apache stop
. Giving recursive 777 privileges is not recommended unless there is an absolute need.
Presuming that you issued that chmod
command for the /etc/php5/apache2
directory, you can reset the permissions to the default. Here's the contents of the same directory on my system which is configured as a LAMP server:
lrwxrwxrwx 1 root root 9 Apr 4 2012 conf.d -> ../conf.d
-rw-r--r-- 1 root root 67479 Apr 9 2013 php.ini
-rw-r--r-- 1 root root 68428 Jun 13 2012 php.ini.ucf-dist
You would need to chmod
the php.ini
and php.ini.ucf.dist
files with
sudo chmod 644 filename
The error you're getting from phpMyAdmin is for it's own configuration file - config.inc.php
found at the root level of your phpMyAdmin installation. Managing this file is explained in the phpMyAdmin Wiki here.
To edit the php.ini
file you will need to invoke sudo
when using your CLI text editor like vi
or pico
, such as sudo pico /etc/php5/apache2/php.ini