Hey!
I've read all threads regarding the suPHP and tried to install it myself...
But I am stuck :-(
The current status is that when I run a PHP-Script, I get a "500 Internal Server Error".
What I did was to rename /etc/httpd/conf.d/php.conf to php.xxx so that it is not processed any more.
(As suPHP calls PHP right?)
Then I edited /etc/httpd/conf.d/suphp.conf .
This is the current suphp.conf:
---
# This is the Apache server configuration file providing suPHP support..
# It contains the configuration directives to instruct the server how to
# serve php pages while switching to the user context before rendering.
# For directives see <URL:
http://httpd.apache.org/docs-2.0/mod/mod_suphp.html>
LoadModule suphp_module modules/mod_suphp.so
# To use suPHP to parse PHP-Files
#AddHandler x-httpd-php .php
AddHandler x-httpd-php .php .php4 .php3 .phtml
#AddHandler php5-script .php
#AddType text/html .php
# This option tells mod_suphp if a PHP-script requested on this server (or
# VirtualHost) should be run with the PHP-interpreter or returned to the
# browser "as it is".
suPHP_Engine on
# This option tells mod_suphp which path to pass on to the PHP-interpreter
# (by setting the PHPRC environment variable).
# Do *NOT* refer to a file but to the directory the file resists in.
#
# E.g.: If you want to use "/path/to/server/config/php.ini", use "suPHP_Config
# /path/to/server/config".
#
# If you don't use this option, PHP will use its compiled in default path.
#suPHP_ConfigPath /etc
# If you compiled suphp with setid-mode "force" or "paranoid", you can
# specify the user- and groupname to run PHP-scripts with.
# Example: suPHP_UserGroup foouser bargroup
# suPHP_UserGroup apache apache
---
When I look into the suphp.log-File I see s.th. like this which looks perfectly correct:
---
[Wed Sep 27 20:53:13 2006] [info] Executing /var/www/vhosts/xxx.com/httpdocs/who.php as user xxx_com (10001), group psacln (10001)
---
Why am I getting the "Internal Server Error"?
I think it has somehow s.th. do to with the "AddHandler"/"AddType" in the suphp.conf. If I play around with those,
I either get the "Internal Server Error" or absolutely no output is displayed
Do I need to check s.th. regarding PHP? (When I type "php -v" on the console, php answers this here:
----
PHP 5.0.4 (cli) (built: Jan 29 2006 21:37:43)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
with eAccelerator v0.9.4, Copyright (c) 2004-2004 eAccelerator, by eAccelerator
----)
Can please anybody help me? I need the suPHP to get Typo3 4.0 working correctly...
Thanks a lot in advance!
Chris