httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Silvio Siefke <siefke_lis...@web.de>
Subject Re: [users@httpd] Apache2, Fastcgi and PHP
Date Fri, 04 Feb 2011 12:44:37 GMT
Hello,


so i have found the mistake. It was the short_open_tag Problem. In the
Script stand <? phpinfo(); ?>, in Standard of php.ini must write
<?php phpinfo(); ?> or the Directive "short_open_tag = On".


Okay the installation in Detail for FreeBSD i think in Linux is same
with the package tool of distribution.


cd /usr/ports/www/mod_fastcgi && make install clean
cd /usr/ports/www/spawn-fcgi && make install clean

Activate in httpd.conf
LoadModule fastcgi_module libexec/apache22/mod_fastcgi.so
AddHandler php5-fastcgi .php
FastCgiExternalServer /usr/local/www/apache22/data -host localhost:9000

spawn-fcgi Config: (detailed Directive can see in rc Script
echo 'spawn_fcgi_enable="YES"'

Service start:
service spawn-fcgi start
service apache22 start

Its easy to use PHP-CGI with Apache.


Regards
Silvio

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message