Gremlyn1
October 13th, 2010, 08:54 PM
So I was foolish and while upgrading to 10.10, I opted to keep my apache conf files as they were (since I forgot to back them up before starting) and now apache isn't happy at all. At first it just wasn't working, so I backed up my entire /etc/apache2 dir, ran
'sudo apt-get purge apache2'
and then deleted all references and left over config files, then ran
'sudo apt-get install apache2'
and still apache wasn't working - in fact it did not seem to properly/completely reinstall with all dependencies.
Next I went through in Synaptic and removed a bunch of stuff myself, tried another apt-get purge and install, and still nada. Next I tried
'sudo aptitude purge apache2'
which seemed to run a little more robustly. So naturally next I ran
'sudo aptitude install apache2'
and though it seemed to install everything appropriately, apache was not started and trying to run
'sudo service apache2 start'
I get an unrecognised service error.
When trying to directly run
'sudo /usr/sbin/apache2'
I get
'apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory'
which is true... it does not exist but I don't understand why it's not reinstalling properly.
Luckily this is just a local test server and I don't need to right now, but it would be good to get it back up and running... Any help would be greatly appreciated!
PS: could this really be all because I didn't replace my old files with the new conf files?
'sudo apt-get purge apache2'
and then deleted all references and left over config files, then ran
'sudo apt-get install apache2'
and still apache wasn't working - in fact it did not seem to properly/completely reinstall with all dependencies.
Next I went through in Synaptic and removed a bunch of stuff myself, tried another apt-get purge and install, and still nada. Next I tried
'sudo aptitude purge apache2'
which seemed to run a little more robustly. So naturally next I ran
'sudo aptitude install apache2'
and though it seemed to install everything appropriately, apache was not started and trying to run
'sudo service apache2 start'
I get an unrecognised service error.
When trying to directly run
'sudo /usr/sbin/apache2'
I get
'apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory'
which is true... it does not exist but I don't understand why it's not reinstalling properly.
Luckily this is just a local test server and I don't need to right now, but it would be good to get it back up and running... Any help would be greatly appreciated!
PS: could this really be all because I didn't replace my old files with the new conf files?