mephisto23
New Member
Hello Community,
I tried to setup lighttpd with execwrap on my debian etch server but I
can not get it working. It would be great, if someone could help me,
because this damn problem stops my development process... I have tried
a lot of configurations and read a lot of articles, tutorials, forums...
I can not find a solution by my own.
Please help. I am desperate ;-/ ...
Ok this is my configuration:
the rights of execwrap ...
php5-cgi is also installed ...
the execwrap_config ...
and lighttpd says ...
Thank you for reading!
I tried to setup lighttpd with execwrap on my debian etch server but I
can not get it working. It would be great, if someone could help me,
because this damn problem stops my development process... I have tried
a lot of configurations and read a lot of articles, tutorials, forums...
I can not find a solution by my own.
Please help. I am desperate ;-/ ...
Ok this is my configuration:
Code:
fastcgi.server = (
".php" => ((
"socket" => "/tmp/lighttpd/test.sock",
"bin-path" => "/usr/bin/execwrap",
"check-local" => "disable",
"max-procs" => 1,
"broken-scriptfilename" => "enable",
"bin-copy-environment" => ("PATH", "SHELL", "USER"),
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "1000",
"UID" => "1001",
"GID" => "1001",
"TARGET" => "/usr/bin/php5-cgi",
"CHECK_GID" => "1"
))))
}
Code:
-rwx--x--- 1 root lighttpd 5.1K 2007-09-09 11:02 /usr/bin/execwrap
Code:
-rwxr-xr-x 1 root root 5.0M 2007-07-02 17:46 /usr/bin/php5-cgi
Code:
/* Our parent must have this UID, or we will abort. */
#define PARENT_UID 33
/* Minimum UID we can switch to. */
#define TARGET_MIN_UID 1000
/* Minimum GID we can switch to. */
#define TARGET_MIN_GID 1000
/* Path prefix all targets must start with. */
#define TARGET_PATH_PREFIX "/"
/* Default UID to switch to, if none given. */
#define DEFAULT_UID 65534
/* Default GID to switch to, if none given. */
#define DEFAULT_GID 65534
and lighttpd says ...
Code:
2007-09-09 11:28:48: (mod_fastcgi.c.1018) child exited with status 0
/usr/bin/execwrap
2007-09-09 11:28:48: (mod_fastcgi.c.1021) if you try do run PHP as
FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing 'php -v' and it
should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
For more information check
http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program Docs - lighttpd - secure, fast, compliant, and very flexible web-server - Trac
2007-09-09 11:28:48: (mod_fastcgi.c.1026) If this is PHP on Gentoo add
fastcgi to the USE flags
2007-09-09 11:28:48: (mod_fastcgi.c.1322) [ERROR]: spawning fcgi failed.
2007-09-09 11:28:48: (server.c.849) Configuration of plugins failed.
Going down.
Last edited by a moderator: