Forum

PHP-FCGI Problem

Julius
6 May 2012, 12:36
Hey,
today I have a problem with my php-fcgi server.
When I would start the system came this:
root@localhost:~# service php-fcgi start
Starting FastCGI server: error!

The log say this:
Sun 06 May 2012 12:32:31 +0200|syntax error in /etc/hiawatha/php-fcgi.conf on line 11

This is my Configuration:
# PHP FastCGI configuration

# Path to PID-file.
# PidFile = <filename>
#
PidFile = /var/run/php-fcgi.pid

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

# Number of maximum requests per fork before respawning.
# MaxRequests = <number>
#
MaxRequests = 100

# Set environment variables for the FastCGI processes.
# Setenv <key> = <value>
#

# PHP FastCGI servers to start.
# Server = <php-cgi executable>;<binding>;<UID>[:<GIDs>][;<PHP configuration file>]
#
#Server = /usr/bin/php5-cgi ; /var/lib/hiawatha/php-fcgi.sock ; www-data
#Server = /usr/bin/php5-cgi ; 127.0.0.1:2005 ; 1000:100,101
Server = /usr/bin/php5-cgi ; 127.0.0.1:2005 ; www-data ; /etc/php5/cgi/php.ini
#Server = /usr/chroot|usr/bin/php5-cgi ; 127.0.0.1:2005 ; www-data

The strange thing is that the server was already rum before that with this configuration.

Where is the mistake?

Sry for my bad english.

Julius


Hiawatha version: 8.2
Operating System: Debian Squeeze
Hugo Leisink
6 May 2012, 12:38
Read the changelog?
Julius
6 May 2012, 13:17
This is my new configuration but the mistake isn't away.
# PHP FastCGI configuration

# Path to PID-file.
# PidFile = <filename>
#
PidFile = /var/run/php-fcgi.pid

# Number of maximum requests per fork before respawning.
# MaxRequests = <number>
#
MaxRequests = 100

# Set environment variables for the FastCGI processes.
# Setenv <key> = <value>
#

# PHP FastCGI servers to start.
# Server = <php-cgi executable>;<forks>;<binding>;<UID>[:<GIDs>][;<PHP configuration file>]
#
#Server = /usr/bin/php5-cgi ; 3 ; /var/lib/hiawatha/php-fcgi.sock ; www-data
#Server = /usr/bin/php5-cgi ; 2 ; 127.0.0.1:2005 ; 1000:100,101
Server = /usr/bin/php5-cgi ; 3 l 127.0.0.1:2005 ; www-data ; /etc/php5/cgi/php.ini
#Server = /usr/chroot|usr/bin/php5-cgi ; 1 ; 127.0.0.1:2005 ; www-data
Hugo Leisink
6 May 2012, 13:18
You have an error in the new configuration:
Server = /usr/bin/php5-cgi ; 3 l 127.0.0.1:2005 ; www-data ; /etc/php5/cgi/php.ini

should be
Server = /usr/bin/php5-cgi ; 3 ; 127.0.0.1:2005 ; www-data ; /etc/php5/cgi/php.ini
Julius
6 May 2012, 13:20
Thank you very much, this was the error
Hugo Leisink
6 May 2012, 13:22
You're welcome. But next time, RTFM and do some debugging yourself before posting
Klemens
7 May 2012, 19:20
The l vs. ; typo derives from the examples in the default php-fcgi.conf.
Hugo Leisink
7 May 2012, 20:52
Thanks for letting me know.
This topic has been closed.