cannot access /etc/apache2/apache2.conf

Asked by D Chaney

Installed the Ubunto 10.10 package. Checked apache2 and got the message: It Works! But, cannot access the /etc/apache2/apache2.conf file. permission denied. how do I change the settings in apache? thank you

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apache2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
joopbraak (joopbraak) said :
#1

Open terminal and type:

gksudo gedit /etc/apache2/apache2.conf

type in your password and then you can edit the file.

It's a system file, that's why you need sudo (root) rights to be able to edit it.

Instead of sudo you have to use gksudo because you are opening a GUI application (gedit) with root rights.

Can you help with this problem?

Provide an answer of your own, or ask D Chaney for more information if necessary.

To post a message you must log in.