USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Apache PHP problem

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Servers and Server Administration
View previous topic :: View next topic  
Author Message
geeshock
Moderator


Joined: 02 Nov 2024
Posts: 1017
Location: Hertford, NC

PostPosted: Tue Jul 15, 2024 2:22 am    Post subject: Apache PHP problem Reply with quote

not sure if any of you have had this issue but i'm running Apache 2.x and php 5.x. Problem is when I test the server out i get this msg when I try and access a php page. application/x-httpd-php and it asks me if i wish to download, I did the google search and the top 5 fixes don't help, grrr. anyone fix this problem b4. thx


Back to top
View user's profile Send private message Visit poster's website AIM Address
jada
Linux Guru


Joined: 13 May 2024
Posts: 3064
Location: Sun City, CA 92585

PostPosted: Tue Jul 15, 2024 2:33 am    Post subject: Reply with quote

Did you run the latest Apache 2.2.9 and the PHP5 5.2.6? Looks like you need to update Wink



_________________
openSUSE 11.1 Desktop KDE 4.3.1 buildservice Factory
Linux Mint 7 Desktop Gnome
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
geeshock
Moderator


Joined: 02 Nov 2024
Posts: 1017
Location: Hertford, NC

PostPosted: Tue Jul 15, 2024 3:25 am    Post subject: Reply with quote

well, php and apache should work well regardless of version as long as they are both pretty recent


Back to top
View user's profile Send private message Visit poster's website AIM Address
mushroom
Ultimate Member


Joined: 29 Jun 2024
Posts: 2128
Location: Queen Charlotte B. C. Canada

PostPosted: Tue Jul 15, 2024 4:44 am    Post subject: Re: Apache PHP problem Reply with quote

geeshock wrote:
not sure if any of you have had this issue but i'm running Apache 2.x and php 5.x. Problem is when I test the server out i get this msg when I try and access a php page. application/x-httpd-php and it asks me if i wish to download, I did the google search and the top 5 fixes don't help, grrr. anyone fix this problem b4. thx

I have that problem with this site on occasion (when there is lots of traffic ), but never on any of my test servers.

What OS are you running Question



_________________
SuSE 8.0, 8.2, 9.0, 9.1, 9.2, 9.3, 10.0, 10.1, 10.2, 10.3, 11.0, 11.1
Live CDs Mepis 8.0, Puppy 4.3.1, netbook- Zenwalk 6.2
Back to top
View user's profile Send private message Visit poster's website
geeshock
Moderator


Joined: 02 Nov 2024
Posts: 1017
Location: Hertford, NC

PostPosted: Tue Jul 15, 2024 5:08 am    Post subject: Reply with quote

redhat el5 and unfortunately it's running cpanel so cpanel requires it's on hack of apache


Back to top
View user's profile Send private message Visit poster's website AIM Address
Stuka
Sr. Member


Joined: 15 Oct 2024
Posts: 1271
Location: Houston, TX

PostPosted: Thu Jul 17, 2024 3:13 am    Post subject: Reply with quote

That message usually means that the Apache configuration is not up to snuff - instead of passing the file through the PHP module, it's just dumping it to the browser. I've fixed this problem before, but it's been so darn long I can't remember *how*. It has to do with the handlers configured for Apache though, that much I do remember.


Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
jbsnake
Moderator


Joined: 02 Dec 2024
Posts: 1726
Location: Georgia

PostPosted: Thu Jul 17, 2024 6:01 pm    Post subject: Reply with quote

check the httpd.conf... make sure it's actually loading the php module...



_________________
laptop: Arch Linux - Kernel 2.6.24-ARCH
server: Arch Linux - Kernel 2.6.33-ARCH
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Servers and Server Administration All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse