![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
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 |
|
|
#1 |
|
Just Give Me the Beans!
![]() |
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 |
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() |
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! |
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Feb 2007
Location: SoCal
Beans: 3
Ubuntu 7.04 Feisty Fawn
|
This helped me a lot!
|
|
|
|
|
|
#5 |
|
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 |
|
|
|
|
|
#6 | |
|
Just Give Me the Beans!
![]() Join Date: Dec 2007
Location: Sweden
Beans: 78
Ubuntu Jaunty Jackalope (testing)
|
Re: Apache/PHP running but PHP not parsing
Quote:
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. |
|
|
|
|
|
|
#7 |
|
Just Give Me the Beans!
![]() 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 |
|
|
|
|
|
#8 |
|
Iced Blended Vanilla Crème Ubuntu
![]() Join Date: Jan 2006
Location: United Kingdom
Beans: 2,783
Kubuntu 6.06 Dapper
|
Re: Apache/PHP running but PHP not parsing
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! ~ |
|
|
|
|
|
#9 |
|
Just Give Me the Beans!
![]() Join Date: Dec 2007
Beans: 65
|
Re: Apache/PHP running but PHP not parsing
Thanks guys, problem solved
|
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() 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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|