[Nottingham] Debian/apache2/suphp problems

Richard Morris richard at tannery.co.uk
Mon Mar 12 11:34:56 GMT 2007


Richard,

Try putting the following into the VertualHost for the time being:

  AddHandler x-httpd-php .php .php3 .php4 .php5
  suPHP_AddHandler x-httpd-php

It's the wrong place for it to go to apply it globally but it should make it
start processing php pages.

Regards

Richard Morris


-----Original Message-----
From: nottingham-bounces at mailman.lug.org.uk
[mailto:nottingham-bounces at mailman.lug.org.uk] On Behalf Of Richard Hayes
Sent: 12 March 2007 10:47
To: nottingham at mailman.lug.org.uk
Subject: Re: [Nottingham] Debian/apache2/suphp problems

> Richard,

Hello :)

> The config files should have been left in place, or at least backup
> copies made if changed by the new installs.
>
> Have you got the relevant "Options ExecCGI" in the configs?
>
> Or can you pull the whole lot back from last night's backups?
>

No nightly backups I'm afraid :(

Here is the VHOST block from the file domainarena.com in 
/etc/apache2/sites-available/

<VirtualHost *>

   ServerAdmin webmaster at domainarena.com
   ServerName  www.domainarena.com
   ServerAlias domainarena.com
   SuexecUserGroup da_user web

# Indexes + Directory Root.
   DirectoryIndex index.php index.htm index.html
   DocumentRoot /var/www/domainarena.com/htdocs/

# CGI Directory
   ScriptAlias /cgi-bin/  /var/www/domainarena.com/cgi-bin/
   <Location /cgi-bin>
        Options +ExecCGI
   </Location>

# Webstats Directory
    ScriptAlias /tools/webstats/ 
/var/www/domainarena.com/htdocs/tools/webstats/
    Redirect /awstats 
"http://www.domainarena.com/tools/webstats/awstats.pl?config=domainarena.com
"
    Alias /tools/webstatscss "/usr/share/awstats/html/"
    Alias /tools/webstatsicons "/usr/share/awstats/icon/"
    <Location /tools/webstats>
        Options +ExecCGI
    </Location>

# phpMyAdmin Redirect
    Redirect /phpmyadmin  "http://www.domainarena.com/tools/myphpadmin"

# Logfiles
    ErrorLog   /var/www/domainarena.com/logs/error.log
    CustomLog  /var/www/domainarena.com/logs/access.log combined

</VirtualHost>

I don't believe it needs the Options +ExecCGI because that's for suexec? 
This uses suPHP with an addHandler in the 
/etc/apache2/mods-available/suphp.conf ....

I might be wrong!

The config files haven't been changed though ....

I put in Options +ExecCGI at the start of the vhost block and it still 
offers the download box.

> ps: DON'T PANIC! (In pink friendly letters ;-) )

I'm trying not to! ;)

Would it be woth me tarring up /etc/apache2/ and making it available online?

--Ricky 


_______________________________________________
Nottingham mailing list
Nottingham at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/nottingham





More information about the Nottingham mailing list