Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old September 17th, 2006   #1
locoHost
Just Give Me the Beans!
 
Join Date: Feb 2006
Beans: 55
Send a message via AIM to locoHost Send a message via MSN to locoHost Send a message via Yahoo to locoHost
Question Apache/PHP running but PHP not parsing

When I enter http://localhost in FF, I see a list of files and at the bottom is this...


Apache/2.0.55 (Ubuntu) PHP/5.1.2 Server at localhost Port 80


This tells me Apache and PHP are both running. However my PHP files are not parsing. When I enter URL to an existing PHP file, it tries to start a download of that file. What does this mean?

Thanks for your help
locoHost is offline   Reply With Quote
Old September 17th, 2006   #2
L0c0
First Cup of Ubuntu
 
Join Date: Sep 2006
Beans: 1
Re: Apache/PHP running but PHP not parsing

Hi,

In /etc/apache2/apache2.conf find the line that reads:

#AddType application/x-httpd-php .php

and uncomment it so it reads:
AddType application/x-httpd-php .php


HTH,

L0c0
L0c0 is offline   Reply With Quote
Old September 17th, 2006   #3
locoHost
Just Give Me the Beans!
 
Join Date: Feb 2006
Beans: 55
Send a message via AIM to locoHost Send a message via MSN to locoHost Send a message via Yahoo to locoHost
Re: Apache/PHP running but PHP not parsing

L0c0 you're a genius!

That was your first post too. You're batting 1000!

Thank you!
locoHost is offline   Reply With Quote
Old February 4th, 2007   #4
BigDaddyEBK
First Cup of Ubuntu
 
BigDaddyEBK's Avatar
 
Join Date: Feb 2007
Location: SoCal
Beans: 3
Ubuntu 7.04 Feisty Fawn
Wink Re: Apache/PHP running but PHP not parsing

This helped me a lot!

BigDaddyEBK is offline   Reply With Quote
Old January 16th, 2008   #5
lobo-tuerto
Just Give Me the Beans!
 
Join Date: Dec 2007
Beans: 65
Re: Apache/PHP running but PHP not parsing

Where would you put that line for Apache2 in Ubuntu 7.10?

Because that line doesn't exist in that file anymore
__________________
Blog: Lobo tuerto
Zen hunting
lobo-tuerto is offline   Reply With Quote
Old January 16th, 2008   #6
scizzo
Just Give Me the Beans!
 
scizzo's Avatar
 
Join Date: Dec 2007
Location: Sweden
Beans: 78
Ubuntu Jaunty Jackalope (testing)
Re: Apache/PHP running but PHP not parsing

Quote:
Originally Posted by lobo-tuerto View Post
Where would you put that line for Apache2 in Ubuntu 7.10?

Because that line doesn't exist in that file anymore
Do you really have the package:

libapache2-mod-php5

installed?

Since that should be pretty much all you need to get for it to run in apache2. After restarting the apache2 server that is.
scizzo is offline   Reply With Quote
Old January 16th, 2008   #7
scizzo
Just Give Me the Beans!
 
scizzo's Avatar
 
Join Date: Dec 2007
Location: Sweden
Beans: 78
Ubuntu Jaunty Jackalope (testing)
Re: Apache/PHP running but PHP not parsing

If you do have it installed:

Check in /etc/apache2/mods-available/ for the files php5.conf and php5.load

You can also check so that they are in the mods-enabled folder.

NOTE: php5.conf includes the AddType
scizzo is offline   Reply With Quote
Old January 16th, 2008   #8
MJN
Iced Blended Vanilla Crème Ubuntu
 
MJN's Avatar
 
Join Date: Jan 2006
Location: United Kingdom
Beans: 2,783
Kubuntu 6.06 Dapper
Re: Apache/PHP running but PHP not parsing

Quote:
Originally Posted by scizzo View Post
You can also check so that they are in the mods-enabled folder.
Not 'can', but must!

Modules are not enabled until they are symlinked from mods-enabled - merely existing in mods-available is insufficient (since that folder is not directly parsed).

Mathew
__________________
www.NewtonNet.co.uk - Now supporting IPv6!

~ Please don't use PM's to request assistance - post your query on the forum and share the discussion - if you've got a problem chances are you won't be the only one! ~
MJN is offline   Reply With Quote
Old January 16th, 2008   #9
lobo-tuerto
Just Give Me the Beans!
 
Join Date: Dec 2007
Beans: 65
Re: Apache/PHP running but PHP not parsing

Thanks guys, problem solved
__________________
Blog: Lobo tuerto
Zen hunting
lobo-tuerto is offline   Reply With Quote
Old January 21st, 2008   #10
Gangles
First Cup of Ubuntu
 
Gangles's Avatar
 
Join Date: Jan 2008
Location: Montreal
Beans: 2
Ubuntu 5.10
Re: Apache/PHP running but PHP not parsing

Hello,

I am having the same problem (php script not parsing in Firefox), but unfortunately the term "sym-linked" is a little over my head!

php5.conf and php5.load are present in both my mods-available and mods-enabled folders. Could I get a simple explanation as to what I should do next?

Regards
Gangles is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:26 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry