cannot start apache after fresh install

5 posts / 0 new
Last post
#1 Mon, 09/08/2014 - 16:13
peterg

cannot start apache after fresh install

Ive installed virtualmin on a fresh install of Ubuntu 14 and Apache wont start. The system error logs gives:

No such file or directory: mod_fcgid: Can't create shared memory for size 1200712 bytes

I dont know if this is related but there is no fcgid in var/run.

any ideas how to get apache running?

Edit: I have found a related issue telling that var/lib/apache2 needs to have owner and group set to www-data (was root), but this does not change the error. https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-fcgid/+bug/1266400

Tue, 09/09/2014 - 10:27
andreychek

Howdy,

What is the output of these commands:

ls -ld /var/lib/apache2
ls -ld /var/lib/apache2/fcgid
ls /etc/apache2/mods-enabled/
Fri, 09/12/2014 - 01:37 (Reply to #2)
peterg

Any idea yet, i still cant figure this out! fresh install so im not sure what to do. (i did chance the apache dir from root to www-data and one try).

drwxr-xr-x 6 www-data www-data 4096 Sep 9 07:42 /var/lib/apache2

drwxr-xr-x 3 www-data www-data 4096 Sep 9 07:49 /var/lib/apache2/fcgid

$: ls /etc/apache2/mods-enabled/

access_compat.load autoindex.load filter.load proxy_http.load actions.conf dav_fs.conf mime.conf proxy.load actions.load dav_fs.load mime.load rewrite.load alias.conf dav.load mpm_prefork.conf setenvif.conf alias.load dav_svn.conf mpm_prefork.load setenvif.load auth_basic.load dav_svn.load negotiation.conf socache_shmcb.load auth_digest.load deflate.conf negotiation.load ssl.conf authn_core.load deflate.load php5.conf ssl.load authn_file.load dir.conf php5.load status.conf authz_core.load dir.load proxy_balancer.conf status.load authz_host.load env.load proxy_balancer.load suexec.load authz_user.load fcgid.conf proxy.conf autoindex.conf fcgid.load proxy_connect.load

Wed, 09/10/2014 - 02:12
peterg

drwxr-xr-x 6 www-data www-data 4096 Sep 9 07:42 /var/lib/apache2 drwxr-xr-x 3 www-data www-data 4096 Sep 9 07:49 /var/lib/apache2/fcgid

ls /etc/apache2/mods-enabled/ access_compat.load autoindex.load filter.load proxy_http.load actions.conf dav_fs.conf mime.conf proxy.load actions.load dav_fs.load mime.load rewrite.load alias.conf dav.load mpm_prefork.conf setenvif.conf alias.load dav_svn.conf mpm_prefork.load setenvif.load auth_basic.load dav_svn.load negotiation.conf socache_shmcb.load auth_digest.load deflate.conf negotiation.load ssl.conf authn_core.load deflate.load php5.conf ssl.load authn_file.load dir.conf php5.load status.conf authz_core.load dir.load proxy_balancer.conf status.load authz_host.load env.load proxy_balancer.load suexec.load authz_user.load fcgid.conf proxy.conf autoindex.conf fcgid.load proxy_connect.load

i will note that i did add the /var/lib/apache2/fcgid directory and changed the apache2 to www-data (from root).

Thanks!!!

By the way, the whole output in the apache error log during attempted start:

[Wed Sep 10 07:03:49.665368 2014] [suexec:notice] [pid 30236] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec) [Wed Sep 10 07:03:49.684476 2014] [auth_digest:notice] [pid 30237] AH01757: generating secret for digest authentication ... [Wed Sep 10 07:03:49.684664 2014] [fcgid:emerg] [pid 30237] (17)File exists: mod_fcgid: Can't create shared memory for size 1200712 bytes

Tue, 01/17/2017 - 22:54
telemanagain

This Just happened to me on a deb 7 install everything worked great then got the license now no apache. The apache log shows this [fcgid:emerg] [pid 4439] (2)No such file or directory: mod_fcgid: Can't create shared memory for size 1200712 bytes

Topic locked