Problems with FastCGI/Apache & PHP
"Lee Mehlhorn" <lee.mehlhorn-rozJN9s07XirG/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to get PHP running under Apache using FastCGI however, I'm
running into a problem.. It seems that when I try to process a php
script it runs the php binary instead of processing the script??? I've
verified that php has fastcgi compiled into it with php -v . Below are
my Apache settings.. Any help would be appreciated.. Thanks.
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp
AddHandler fastcgi-script .fcgi
FastCgiConfig -singleThreshold 100 -killInterval 300 -autoUpdate
-idle-timeout 240 -pass-header HTTP_AUTHORIZATION
</IfModule>
<VirtualHost 192.168.0.1:80>
DocumentRoot /www
ServerName test.myserver.com
ScriptAlias /fcgi-bin/ /www/cgi-bin/
<Location /fcgi-bin/>
Options ExecCGI
SetHandler fastcgi-script
</Location>
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /fcgi-bin/php
<Directory "/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Output result from running my simple php script "does nothing more than
phpinfo()".
Warning: Unexpected character in input: (ASCII=15) state=1 in
/www/cgi-bin/php on line 3049
Warning: Unexpected character in input: ' in /www/cgi-bin/php on line
3049
Parse error: parse error, unexpected T_STRING in /www/cgi-bin/php on
line 3049
DISCLAIMER: This confidential e-mail message is intended only for the
named recipient(s). If you are not the intended recipient, be advised
that disclosing, copying, distributing, or any other use of this
message, is strictly prohibited. In such case, destroy this message and
notify the sender.
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/