have anyone seen a working fastcgi/php isntallation..?

=?Windows-1250?Q?Div=E1k_=C1d=E1m?= <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Organization near
Message-ID <[email protected]>
hello guys,

 i still have the problem of setting up a secure&fast webspace - it
 seems to be much more difficult than i thought.
 so what i have: a debian system (maybe the only constant thing in
 this setup..), apache2 (tried with
 2.0.54-5 and 2.0.55-4, both custom-built from the original deb
 sources to change the suexec docroot), php4 (4.3.10-16 from the
 stable release and 4.4.2 from testing), and fastcgi (2.4.2 and i
 tried the latest snap as well but i couldn't see any difference).
 what i'd like to have: a separate user for each virtual host, php
 under fastcgi&suexec, php using the owners uid/gid.
 and the problems: i was playing with the configurations a lot (and
 also tried fcgid but it didn't help much, it produced different
 errors and noone had any idea about them), i've reinstalled
 everything in connection with http several times, and so on. i've
 also tried using the php interpreter straight from /usr/bin/php4-cgi
 or copying
 everything to the user's cgi-bin dir, but that wasn't the solution
 either. what i
 could achieve is that i have a working config on my home computer and
 i have the same config on the server - where it produces a variety of
 errors... (well, at the moment this sentence is not true - the config
 WAS working on my home comp until i f*cked it up..).
 /cgi-bin/php is the shell script you can see everywhere,
 /usr/bin/php4-cgi is of course the normal php installation and
 /cgi-bin/php4 is the same file copied to the cgi-dir.
 so, if the config in my virtual host section points to the
 shell script, and i load my testpage ( phpinfo(); in fact), than
 i get the shell script printed out in the browser - wow, great.. so i
 thought to point directly to the php4 file in my vhost config, and it
 gives this error:
Warning: Unexpected character in input: '' (ASCII=15) state=1 in /data/files/near.hu/public/cgi-bin/php4 on line 3023
Parse error: parse error, unexpected '*' in /data/files/near.hu/public/cgi-bin/php4 on line 3023
(don't forget, this if a simple phpinfo page). the line number wasn't
always the same, but now it seems to be constant.
well, i have spent lots of hours playing with all these things - now
i'm begging you to give me at least a hint or any kind of help, 'cause
i just don't have any more ideas. i can offer a beer for any good
solution ( i can't guarantee it'll be served cold..)
thank you very much in advance
adam

/data/files/near.hu/public/cgi-bin/php:
#!/bin/sh
PHPRC="/etc/php4/near"
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php4-cgi

Vhost:
ScriptAlias /cgi-bin/ /data/files/near.hu/public/cgi-bin/
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /cgi-bin/php4
SuexecUserGroup user group
<Directory "/data/files/near.hu/public/cgi-bin">
        AllowOverride None
        Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
</Directory>

fastcgi.conf:
<IfModule mod_fastcgi.c>
  AddHandler fastcgi-script .fcgi
  FastCgiWrapper /usr/lib/apache2/suexec2
  FastCgiIpcDir /var/lib/apache2/fastcgi
  FastCgiConfig -singleThreshold 100 -killInterval 300 -autoUpdate -idle-timeout 240 -pass-header Authorization
</IfModule>
<Location /cgi-bin/>
  Options ExecCGI
  SetHandler fastcgi-script
 </Location>

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.