I am installing a server for PHP using FCGI and apache with worker MPM here is what I have done so far:

sudo port install apache2 +workermpm
sudo port install php5 +fastcgi
sudo port install mod_fcgid

when I tried to load apache2 with

sudo port load apache2

changes on httpd.conf settings:

LoadModule fcgid_module modules/mod_fcgid.so

<IfModule mod_fcgid.c>
        AddHandler fcgid-script .php
        DefaultMaxClassProcessCount 4
        DefaultInitEnv PHP_FCGI_MAX_REQUESTS 0
        DefaultInitEnv PHP_FCGI_CHILDREN 0
        FCGIWrapper /opt/local/bin/php-cgi .php
        <Files *.php>
                Options +ExecCGI
        </Files>
       SharememPath /opt/local/apache2/fcgid/shm
</IfModule>

I got this error on /opt/local/apache2/logs/error_log

[Mon Sep 05 09:54:00 2011] [emerg] (17)File exists: mod_fcgid: Can't create shared memory for size 682600 bytes

Anybody has encountered this problem? please tell me how to solve this.

Thank You

link|improve this question

feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.