[ubuntu-uk] apache not correctly running php scripts

Glen Mehn glen.mehn at oba.co.uk
Sat Oct 23 13:17:07 BST 2010


did you do

a2enmod

to enable your php module?

On 22/10/10 21:35, Jacob Mansfield wrote:
> still nothing I'm afraid
> Jacob Mansfield
> Programmer
>
>
>
> On 20 October 2010 23:42, Marc Deslauriers 
> <marcdeslauriers at videotron.ca <mailto:marcdeslauriers at videotron.ca>> 
> wrote:
>
>     On Wed, 2010-10-20 at 22:29 +0100, Jacob Mansfield wrote:
>     > I am trying to install squirrelmail onto my new mail server, however
>     > it appears that Apache is not running the server-side php scripts as
>     > when I try to open the squirrelmail page FireFox reports that
>     the file
>     > will be downloaded as it's mime type is
>     application/x-httpd-suphp if i
>     > open the downloaded file I can see that none of the php has been
>     > phrased is is clearly visible, which it should not be. I'd like some
>     > help on this one as I'm a web developer not a mail server admin
>
>     I've seen this happen before if php was installed after, or at the
>     same
>     time as Apache. You need to restart the apache server for it to start
>     serving php pages.
>
>     Once you visit it with firefox once, it's now in firefox's cache,
>     so it
>     will always offer you to download that page from now on, even if you
>     restarted your apache server. You might need to completely clear out
>     firefox's cache, or try from a different computer.
>
>     Marc.
>
>
>
>     --
>     ubuntu-users mailing list
>     ubuntu-users at lists.ubuntu.com <mailto:ubuntu-users at lists.ubuntu.com>
>     Modify settings or unsubscribe at:
>     https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>

-- 
Glen Mehn
glen.mehn at oba.co.uk
skype: glenmehn | blog: http://glen.mehn.net/mba
UK: +44(0)7942 675 755 | US: +1 415 704 4737




More information about the ubuntu-uk mailing list