[suPHP] Help needed for installing suPHP
Jason Bhalla-Gaunt
jason.gaunt at mademedia.co.uk
Wed Aug 22 10:38:06 CEST 2007
Okay, I disabled the suPHP module by commenting out the LoadModule
element, and php was still being processed, I traced it down to
another config file activating it and disabled it there and re-
enabled suPHP, now no php gets processed, instead it tries to offer
it as a download to me, this is my config file for suPHP (this gets
executed immediately after the LoadModule blocks in httpd.conf):
# This is a apache config file for suPHP, first we load the module
LoadModule suphp_module modules/mod_suphp.so
# Now we register extensions
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# Register index.php as a valid index page
DirectoryIndex index.php
# Enable suPHP on all websites:
suPHP_Engine on
I have also tried interchanging AddType with AddHandler, if I do so
then all I get is the raw PHP contents returned as text. I have also
tried removing "application/" from each one, if I do that I get the
source returned but interpreted as HTML so it displays nothing.
How can I fix this?
On 21 Aug 2007, at 15:56, Simon Boulet wrote:
> Jason,
>
> On 21-Aug-07, at 10:47 AM, Jason Bhalla-Gaunt wrote:
>
>> Hi again Simon,
>>
>> Yes, PHP4 was running prior to suPHP being installed, although I
>> can't find any LoadModule or AddModules that reference PHP in any
>> way in the config file.
>>
>> On 21 Aug 2007, at 15:32, Simon Boulet wrote:
>>
>>>
>>> Did you had PHP running as a module before installing SuPHP?
>>>
>>> If so, have you disabled the PHP module form config file? see
>>> LoadModule and AddModule in your httpd.conf
>>>
>>>
>
>
> First, you need to make sure SuPHP is called instead of the
> previous PHP module you had. Try disabling mod_suphp from your
> httpd.conf, and see if PHP is still being interpreted. Also try
> running "httpd -l" on your server, perhaps PHP is built-in.
>
> Another trick to check is if PHP is being run as a CGI (SuPHP runs
> PHP scripts as CGIs...) or as an Apache module from a phpinfo().
> Have a look at "Server API", it must say "CGI".
>
> Simon
>
> !DSPAM:1,46cafdec318341113612667!
>
>
___________________
Jason Bhalla-Gaunt
+44 (0)121 233 4838 (Direct Dial)
+44 (0)121 200 2627 (Main Line)
Made Media Ltd
105 Carver St, Birmingham B1 3AP
http://www.mademedia.co.uk/
Registered in England & Wales: 4530365
___________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.marsching.biz/pipermail/suphp/attachments/20070822/b2eaea60/attachment.htm
More information about the suPHP
mailing list