Advertisement
wizonesolutions

fcgid issues with this

Apr 26th, 2011
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. === Log messages ===
  2.  
  3. [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
  4. [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
  5. [Mon Apr 25 21:53:02 2011] [error] [client 96.251.116.217] Premature end of script headers: index.php
  6. [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
  7.  
  8.  
  9. ==== end log ===
  10.  
  11. FILE: /etc/apache2/sites-available/www.sitename.wiz
  12. ---
  13. <VirtualHost 46.4.154.224:80>
  14.   Include /home/kevin/apache/fcgid-remove-php.conf
  15.     ServerName www.sitename.wiz
  16.     ServerAdmin user@domain.com
  17.     DocumentRoot /home/kevin/public_html/sitename/
  18.   Include /home/kevin/apache/replace-robots.conf
  19.     <Directory /home/kevin/public_html/sitename/>  
  20.     AuthType Basic
  21.     AuthName "Private Test Site"
  22.     AuthUserFile /etc/apache2/pass/pass
  23.     Require user sitename
  24.         AllowOverride All
  25.         Order allow,deny
  26.         allow from all
  27.     Include /home/kevin/apache/fcgid-php5.conf
  28.     </Directory>
  29. </VirtualHost>
  30.  
  31. FILE: /home/kevin/apache/fcgid-remove-php.conf
  32. ---
  33. # Include this file outside of <Directory> directives
  34. SuexecUserGroup kevin kevin
  35. RemoveHandler .php
  36. RemoveHandler .php5
  37. IPCCommTimeout 31
  38.  
  39. FILE: /home/kevin/apache/fcgid-php5.conf
  40. ---
  41. AddHandler fcgid-script .php
  42. AddHandler fcgid-script .php5
  43. FCGIWrapper /home/kevin/fcgi-bin/php5.fcgi .php
  44. FCGIWrapper /home/kevin/fcgi-bin/php5.fcgi .php5
  45. Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
  46.  
  47. FILE: /home/kevin/fcgi-bin/php5.fcgi (fcgi-bin is a symlink to /home/kevin/apache/fcgi-bin directory)
  48. ---
  49. #!/bin/bash
  50. PHPRC=$PWD/../etc/php5
  51. export PHPRC
  52. umask 022
  53. export PHP_FCGI_CHILDREN
  54. SCRIPT_FILENAME=$PATH_TRANSLATED
  55. export SCRIPT_FILENAME
  56. exec /usr/bin/php5-cgi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement