LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-10-2012, 02:07 AM   #1
rewards
Member
 
Registered: Dec 2010
Posts: 135

Rep: Reputation: 0
Question application/x-httpd-php download


Hello all,

When I try to access my site at www.mysite.com, I get this error message "application/x-httpd-php download" The browser tries to download a file instead of accessing the site. Does anyone know what the problem would be? Thank you
 
Old 09-10-2012, 02:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,827

Rep: Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866
Hi,

You didn't mention your distro and how you've installed php.
Anyway the error you get means that apache is not aware of php. Check apache config file and see if you have the following 2 lines:
Code:
LoadModule php5_module        modules/libphp5.so
AddType application/x-httpd-php .php
Regards
 
Old 09-10-2012, 12:47 PM   #3
rewards
Member
 
Registered: Dec 2010
Posts: 135

Original Poster
Rep: Reputation: 0
I have Centos 6.3 64bit with Parallel Plesk installed on a dedicated server from 1 & 1 Internet service provider. Before I did not have this problem. One time the website had problem, I had to backup, bring it down, upload the script and install the site without any problem. But now I get that message. I added this LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php at the bottom of the php.ini file and restated the httpd but still get the same problem.
 
Old 09-11-2012, 12:47 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,827

Rep: Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866
Quote:
Originally Posted by rewards View Post
I have Centos 6.3 64bit with Parallel Plesk installed on a dedicated server from 1 & 1 Internet service provider. Before I did not have this problem. One time the website had problem, I had to backup, bring it down, upload the script and install the site without any problem. But now I get that message. I added this LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php at the bottom of the php.ini file and restated the httpd but still get the same problem.
You are supposed to add those 2 lines in apache configuration file(s), not in php.ini!!!
For a default php installation on Centos those lines are included in /etc/httpd/conf.d/php.conf, but I don't know if Plesk changes that. You can search under /etc/httpd/conf and /etc/httpd/conf.d to see if they exist.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed php, httpd, but php does not work too well WoAnerges Linux - Networking 10 05-04-2012 05:53 AM
forwarding an application having port id 8080 to 80 using httpd.conf akash_softnotions Linux - Server 9 11-27-2010 11:19 AM
You have chosen to open which is a: application/x-httpd-php cucolin@ Linux - Server 4 02-02-2007 10:38 AM
Suse 9.3/apache2/php4 - Firefox tries to download index.php, other *php pages work stefanlasiewski SUSE / openSUSE 1 01-18-2006 06:12 PM
httpd-2.0.48 documentation download demmylls Linux - Software 1 02-08-2004 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration