diff options
Diffstat (limited to 'tiny/etc/apache2/conf-available/php5_fastcgi.conf')
-rw-r--r-- | tiny/etc/apache2/conf-available/php5_fastcgi.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tiny/etc/apache2/conf-available/php5_fastcgi.conf b/tiny/etc/apache2/conf-available/php5_fastcgi.conf new file mode 100644 index 0000000..982974a --- /dev/null +++ b/tiny/etc/apache2/conf-available/php5_fastcgi.conf @@ -0,0 +1,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 + |