Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- === Log messages ===
- [Mon Apr 25 21:53:02 2011] [notice] mod_fcgid: call /home/kevin/public_html/sitename/index.php with wrapper /home/kevin/fcgi-bin/php5.fcgi
- [Mon Apr 25 21:53:02 2011] [warn] [client 96.251.116.217] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
- [Mon Apr 25 21:53:02 2011] [error] [client 96.251.116.217] Premature end of script headers: index.php
- [Mon Apr 25 21:53:05 2011] [notice] mod_fcgid: process /home/kevin/public_html/sitename/index.php(11527) exit(communication error), terminated by calling exit(), return code: 255
- ==== end log ===
- FILE: /etc/apache2/sites-available/www.sitename.wiz
- ---
- <VirtualHost 46.4.154.224:80>
- Include /home/kevin/apache/fcgid-remove-php.conf
- ServerName www.sitename.wiz
- ServerAdmin user@domain.com
- DocumentRoot /home/kevin/public_html/sitename/
- Include /home/kevin/apache/replace-robots.conf
- <Directory /home/kevin/public_html/sitename/>
- AuthType Basic
- AuthName "Private Test Site"
- AuthUserFile /etc/apache2/pass/pass
- Require user sitename
- AllowOverride All
- Order allow,deny
- allow from all
- Include /home/kevin/apache/fcgid-php5.conf
- </Directory>
- </VirtualHost>
- FILE: /home/kevin/apache/fcgid-remove-php.conf
- ---
- # Include this file outside of <Directory> directives
- SuexecUserGroup kevin kevin
- RemoveHandler .php
- RemoveHandler .php5
- IPCCommTimeout 31
- FILE: /home/kevin/apache/fcgid-php5.conf
- ---
- AddHandler fcgid-script .php
- AddHandler fcgid-script .php5
- FCGIWrapper /home/kevin/fcgi-bin/php5.fcgi .php
- FCGIWrapper /home/kevin/fcgi-bin/php5.fcgi .php5
- Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
- FILE: /home/kevin/fcgi-bin/php5.fcgi (fcgi-bin is a symlink to /home/kevin/apache/fcgi-bin directory)
- ---
- #!/bin/bash
- PHPRC=$PWD/../etc/php5
- export PHPRC
- umask 022
- export PHP_FCGI_CHILDREN
- SCRIPT_FILENAME=$PATH_TRANSLATED
- export SCRIPT_FILENAME
- exec /usr/bin/php5-cgi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement