Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm a beginner Ruby on Rails Programmer and I'm trying to install Apache2 + Passenger(That's for Rails Deployment).. and at the end of the installation process, Passenger gave me a few lines to add to the file apache2.conf at /etc/apache2/ but I can't override this file.. I have no permission =( I've also uploaded an image showing me the error.

P.S => I'm logged into Ubuntu with my username and password.

Please help! and thanks, Rodrigo.

like image 816
rodrigo3n Avatar asked Oct 28 '09 23:10

rodrigo3n


2 Answers

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.

like image 134
Josh Lee Avatar answered Nov 04 '22 19:11

Josh Lee


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
like image 32
Stef Avatar answered Nov 04 '22 18:11

Stef