Forum

fastcgi under opensuse 11.1

miller
23 March 2009, 12:15
Hi,

I don't get hiawatha v.6.11 under opnensuse 11.1 to work.
Here are my configuartion files:

1. /etc/hiawatha/httpd.conf
FastCGIserver {
FastCGIid = PHP5
ConnectTo = 127.0.0.1:2005
Extension = php
}

2. /etc/hiawatha/php-fcgi.conf
# PHP FastCGI configuration
PidFile = /var/run/php-fcgi.pid

# Forks = <number of forks per server>
#
Forks = 3

# Setenv <key> = <value>
#
# Server = <php-cgi executable>;<binding>;<UID>[:<GIDs>][;<PHP configuration file>]
#
#Server = /usr/bin/php5-cgi ; 127.0.0.1:2005 ; www-data
Server = /usr/bin/php-fcgi ; 127.0.0.1:2005 ; 1000:100,101 ; /etc/php5/cli/php.ini
#Server = /usr/bin/php-cgi ; 127.0.0.1:2005 ; www-data ; /etc/php5/cli/php.ini
#Server = /usr/chroot|usr/bin/php5-cgi ; 127.0.0.1:2005 ; www-data

phounfo.php is shown as text not as table:
<?php
phpinfo();
?>

Any mistakes in my configuration ?

Thanks!
Hugo Leisink
23 March 2009, 19:46
Yes, your mistake is that /usr/bin/php-fcgi is not PHP! It's the tool that starts PHP as a FastCGI daemon (the tools comes with Hiawatha). You have to install PHP and use php-cgi instead of php-fcgi in php-fcgi.conf.

If you use PHP as a FastCGI daemon, don't forget to enable it in your virtual host configuration. Read the HOWTO for more information about configuring Hiawatha with CGI / FastCGI.
Hugo Leisink
23 March 2009, 19:46
Yes, your mistake is that /usr/bin/php-fcgi is not PHP! It's the tool that starts PHP as a FastCGI daemon (the tools comes with Hiawatha). You have to install PHP and use php-cgi instead of php-fcgi in php-fcgi.conf.

If you use PHP as a FastCGI daemon, don't forget to enable it in your virtual host configuration. Read the HOWTO for more information about configuring Hiawatha with CGI / FastCGI.
This topic has been closed.