pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ap2-fcgid not working



Roy Marples schrieb:
The issue is that fcgid needs to be able to write it's sockets in a
certain way. It defaults to the log directory for apache, but the pkgsrc
install permissions are wrong for this.


Roy
Hi Roy!

Thanks for your help! I got it now working :-)

For reference
I set in httpd.conf:

<Directory "/usr/pkg/share/httpd/htdocs">
   Options Indexes FollowSymLinks
   Options ExecCGI
   FCGIWrapper /usr/pkg/libexec/cgi-bin/php .php
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>


LoadModule fcgid_module lib/httpd/mod_fcgid.so
<IfModule mod_fcgid.c>
AddHandler fcgid-script .php
SocketPath /tmp/fcgidsockd
SharememPath /tmp/fcgid_shm
MaxRequestsPerProcess 500
</IfModule>

You need to set
   Options ExecCGI
   FCGIWrapper /usr/pkg/libexec/cgi-bin/php .php
in other php-application locations (i.e. <Directory ...> in order to be able to execute the php-scripts there.

Have a nice day!

Damian


Home | Main Index | Thread Index | Old Index