Apache will not start after app install

kent
Posts: 9
Joined: Sun Aug 16, 2009 2:02 pm

Apache will not start after app install

Postby kent » Thu May 09, 2013 7:54 pm

Hi,

I installed the bible super search web app and now i cannot access my dashboard. I rebooted and saw that the apache2 service failed.
When i try to restart the service i get the following errors.

* Restarting web server htcacheclean ...not running
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Thu May 09 22:45:41 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu May 09 22:45:41 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
/var/lock/apache2 already exists but is not a directory owned by apache.
Please fix manually. Aborting.

I am running ubuntu 12.04

Can anyone help?

User avatar
cpg
Administrator
Posts: 2604
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Apache will not start after app install

Postby cpg » Thu May 09, 2013 8:53 pm

Sounds unrelated to Amahi. Amahi does not touch that file.

Have you updated your Ubuntu OS?

Can you show us the output of:

Code: Select all

ls -la /var/lock/apache2
Then, and only then, you could try this to try to see if it fixes it

Code: Select all

chown www-data:root /var/lock/apache2
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
bigfoot65
Project Manager
Posts: 11419
Joined: Mon May 25, 2009 4:31 pm

Re: Apache will not start after app install

Postby bigfoot65 » Fri May 10, 2013 4:39 am

I have seen this issue with Ubuntu 12.04.2 only. Users who install a previous version then do OS updates to 12.04.2 have the same problem.

This bug is something I hope Ubuntu will fix eventually. More info can be found here in the issue tracker.

https://bugs.amahi.org/issues/1023
ßîgƒσστ65
Applications Manager

kent
Posts: 9
Joined: Sun Aug 16, 2009 2:02 pm

Re: Apache will not start after app install

Postby kent » Fri May 10, 2013 4:44 pm

This is the output of the ls -la /var/lock/apache2 command.

Code: Select all

kent@clarkes:~$ ls -la /var/lock/apache2/ total 0 drwxr-xr-x 2 www-data root 40 May 10 19:38 . drwxrwxrwt 4 root root 80 May 10 19:38 ..[/b]

User avatar
cpg
Administrator
Posts: 2604
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Apache will not start after app install

Postby cpg » Fri May 10, 2013 4:51 pm

Try the workaround in the bug, as mentioned.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

kent
Posts: 9
Joined: Sun Aug 16, 2009 2:02 pm

Re: Apache will not start after app install

Postby kent » Fri May 10, 2013 6:13 pm

I tried the work around in the bug.. .Didn't work for me..I also tried changing the permissions to owner and group as www-data...

Can you tell me if uninstalling apache and reinstalling apache is safe... i have a few web apps inatalled....

User avatar
bigfoot65
Project Manager
Posts: 11419
Joined: Mon May 25, 2009 4:31 pm

Re: Apache will not start after app install

Postby bigfoot65 » Fri May 10, 2013 7:38 pm

I would say probably not. Did you do commands as root as described in the work around? I have had this issue and the removal of that directory worked for me.

[ Post made via Android ] Image
ßîgƒσστ65
Applications Manager

kent
Posts: 9
Joined: Sun Aug 16, 2009 2:02 pm

Re: Apache will not start after app install

Postby kent » Sat May 11, 2013 4:25 am

i did the command as root and it didn't work... i even removed the /var/lock/apache2 folder and rebooted... At some point also when i remove the folder after a while without me doing anything it re-appears on it's own...this is really strange... one thin to note though the /var/lock folder is linked to /run/lock.

Do you think the installation of a one click app would cause this? It all occured when i installed the bible super search app.

User avatar
cpg
Administrator
Posts: 2604
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Apache will not start after app install

Postby cpg » Sat May 11, 2013 4:36 am

This file is unrelated to Amahi per se. It's part of the base OS. Did you update the OS? It appears it may be due to an update in the OS picking up a bad update from upstream Ubuntu.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
bigfoot65
Project Manager
Posts: 11419
Joined: Mon May 25, 2009 4:31 pm

Re: Apache will not start after app install

Postby bigfoot65 » Sat May 11, 2013 7:00 am

Trying to remember how I did it. I think I stopped apache first, then did the remove of that directory followed by starting apache.

It is an odd OS bug and can be a pain. Once I got rid of it, all has been fine since. Not sure what else to recommend at this point if it does not work for you.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 1 guest