View previous topic :: View next topic |
Author |
Message |
geeshock Moderator

Joined: 02 Nov 2025 Posts: 1017 Location: Hertford, NC
|
Posted: Tue Jul 15, 2025 2:22 am Post subject: Apache PHP problem |
|
|
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 |
|
jada Linux Guru

Joined: 13 May 2025 Posts: 3064 Location: Sun City, CA 92585
|
Posted: Tue Jul 15, 2025 2:33 am Post subject: |
|
|
Did you run the latest Apache 2.2.9 and the PHP5 5.2.6? Looks like you need to update  |
|
Back to top |
|
geeshock Moderator

Joined: 02 Nov 2025 Posts: 1017 Location: Hertford, NC
|
Posted: Tue Jul 15, 2025 3:25 am Post subject: |
|
|
well, php and apache should work well regardless of version as long as they are both pretty recent
|
|
Back to top |
|
mushroom Ultimate Member

Joined: 29 Jun 2025 Posts: 2128 Location: Queen Charlotte B. C. Canada
|
Posted: Tue Jul 15, 2025 4:44 am Post subject: Re: Apache PHP problem |
|
|
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 
_________________ 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 |
|
geeshock Moderator

Joined: 02 Nov 2025 Posts: 1017 Location: Hertford, NC
|
Posted: Tue Jul 15, 2025 5:08 am Post subject: |
|
|
redhat el5 and unfortunately it's running cpanel so cpanel requires it's on hack of apache
|
|
Back to top |
|
Stuka Sr. Member
Joined: 15 Oct 2025 Posts: 1271 Location: Houston, TX
|
Posted: Thu Jul 17, 2025 3:13 am Post subject: |
|
|
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 |
|
jbsnake Moderator

Joined: 02 Dec 2025 Posts: 1726 Location: Georgia
|
Posted: Thu Jul 17, 2025 6:01 pm Post subject: |
|
|
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 |
|
|