WSL: Unable to run Apache with fcgid - cannot create shared memory

I’m trying to configure Apache to run with fcgid, but Apache won’t start. I have tested this in a VM and it worked fine, but does not work in lxss.

sudo su
apt-get install apache2 apache2-suexec libapache2-mod-fcgid php5-cgi
a2dismod php5
a2enmod rewrite
a2enmod suexec
a2enmod include
a2enmod fcgid
/etc/init.d/apache2 restart

After 20 seconds Apache fails to start and the following error appears in /var/log/apache2/error.log

[Wed Jul 27 14:14:18.001784 2016] [fcgid:emerg] [pid 29715] (38)Function not implemented: mod_fcgid: Can't create shared memory for size 1200712 bytes

I’m on build 14393.5.

I’m not too sure, but this might be related to #135.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (1 by maintainers)

Most upvoted comments

I tried to reproduce this with the commands provided in the OP but Apache starts just fine. I can’t believe I’ve been running WSL for 18 months already… seems this is fixed.