How to get permission to edit the file apache2.conf? [Ubuntu] How to get permission to edit the file apache2.conf? [Ubuntu] apache apache

How to get permission to edit the file apache2.conf? [Ubuntu]


The simplest way is to open the file with the sudoedit program, as in

sudoedit /etc/apache2/apache2.conf

which will prompt for your password and then open your editor.


After the installation has completed, add phpmyadmin to the apache configuration.

sudo nano /etc/apache2/apache2.conf

Add the phpmyadmin config to the file. Include

/etc/phpmyadmin/apache.conf

Restart apache:

sudo service apache2 restart


If you are a beginner in GNU/Linux, I want to notice, for run command with root privileges run it with sudo:

sudo <your_command>

If you want to get root privileges for current terminal session (no need to type sudo each command) run:

sudo -i