blob: 982974aca8697ae75a45645a33d67af93e4f4e87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#
# with FastCgiWrapper I'm running into weird perm issue
# -> might need to look at suexec?
#
<IfModule dir_module>
<IfModule fastcgi_module>
DirectoryIndex index.php index.html
AddType application/x-httpd-php .php
AddHandler fastcgi-script .php
FastCgiWrapper /srv/http/cgi-bin/fastcgi-php-wrapper
<Location /cgi-bin/>
Options +FollowSymLinks +ExecCGI
</Location>
<FilesMatch "\.php$">
Options +ExecCGI
</FilesMatch>
</IfModule>
</IfModule>
#
# # chown -R http.http /srv/http/cgi-bin/
# cat /srv/http/cgi-bin/fastcgi-php-wrapper
#
# #!/usr/bin/env bash
#
# PHP_FCGI_MAX_REQUESTS=1000
# export PHP_FCGI_MAX_REQUESTS
#
# exec /usr/bin/php-cgi
|