LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache2.conf read-only? (https://www.linuxquestions.org/questions/linux-newbie-8/apache2-conf-read-only-327410/)

lPrentice 05-26-2005 03:07 PM

apache2.conf read-only?
 
Hello,

A few days ago I installed Apache2 on my Debian Sarge system. I was able to edit /etc/apache2/apache2.conf and httpd.conf with no problem.

But when I went into apache2.conf today to change ServerName, the system told me that the file was "read-only." Same when tried to edit httpd.conf.

What ignorant thing have I done now and how can I correct it?

Many thanks,

Lloyd

perfect_circle 05-26-2005 04:30 PM

When you are trying to edit the file, are you root?
Normal users should not be allowed to edit configuration files.

type:
Code:

ls -l /etc/apache2/apache2.conf
to see the file permissions. (the -l is a small L not a 1)

Mara 05-26-2005 04:33 PM

To change the file you need to be root. Use 'su' (with root password when it asks you) and then open it in an editor.

lPrentice 05-26-2005 05:24 PM

Many thanks, all.

I thought I was in root, but evidently wasn't. It's been a long day. Problem solved.

All the best,

Lloyd

khansen 05-26-2005 10:06 PM

Problem Solved!
 
Thank you all for the suggestions. It turns out it was a PHP/Mysql issue. After browsing about a million other forums, I came across one Here
that mentioned uncommenting a line in my /etc/php4/apache2/php.ini file. This is the line.
extension=mysql.so

I don't know if this is the best way to solve it, but it worked for me.


All times are GMT -5. The time now is 09:14 AM.