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 |
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 change the file you need to be root. Use 'su' (with root password when it asks you) and then open it in an editor.
|
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 |
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. |