PDA

View Full Version : Lamp on ubuntu 10.10


norelpy
March 13th, 2011, 05:51 AM
Hi I am using ubuntu 10.10 and I have installed lamp recently. I accidently deleted the /etc/apache2 folder I did not get it back. I tried reinstall apache but the result is same. How can I back it back.

Syirrus
March 13th, 2011, 12:52 PM
Hi I am using ubuntu 10.10 and I have installed lamp recently. I accidently deleted the /etc/apache2 folder I did not get it back. I tried reinstall apache but the result is same. How can I back it back.

How exactly did you try to reinstall LAMP? I assume you tried

sudo apt-get install apache2

for just installing apache2 right?

norelpy
March 13th, 2011, 03:36 PM
How exactly did you try to reinstall LAMP? I assume you tried

sudo apt-get install apache2for just installing apache2 right?

I have tried sudo apt-get install apache2 but this is not working.Then I manually create the apache2 folder via root. But after evry trying to reinstall apache it is empty. The /etc/apache2 folder is still empty

p_j_flynn
March 21st, 2011, 05:27 PM
I did the same thing, Tried removing, reinstalling, creating the directory manually. Eventually solved it.

1. If you have a directory /etc/apache2 then remove it.

2. get aptitude package manager by

sudo apt-get install aptitude

3. Now use aptitude to get a fresh copy of apache2

sudo aptitude -y install apache2

Regards

Paul