[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Cannot access website FF tries to download application/x-httpd-php

Posted on 2010-01-04
10
Medium Priority
?
670 Views
Last Modified: 2013-12-16
I tried installing a mail client on my server and somehow the regular site got messed up. I played around a bit with Postfix, Sendmail and Squirrelmail. My server uses Debian, Apache2. I'm not sure where I went wrong. Every time I try to visit the site Firefox tries to download a application/x-httpd-php file. I tried adding AddType and others to the .htaccess page, but nothing works.
0
Comment
Question by:kiannack55
  • 6
  • 4
10 Comments
 
LVL 2

Expert Comment

by:sapparod
ID: 26178603
I think you hoave to make sure that you enable mod_php if you are using apache with prefork.
In case, you are using apache-worker, you need to check the cgi setting and enable module fcgid(for example).
Finally make sure that you config apache to the right folder with +execcgi option.
0
 

Author Comment

by:kiannack55
ID: 26180085
I tried to enable mod_php and it said it was already enabled. Then I enabled the mod_fcgid and I can't visit the site using the url, but when I visit it using its ip address it still tries to download the application/x-httpd-php file. Then I tried adding
<Directory /home/*/public_html>
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>

to the httpd.conf file and restarted the server and nothing changed.
0
 

Author Comment

by:kiannack55
ID: 26180155
I checked the Apache2 error.log and it had multiple messages like this
[Tue Jan 05 08:29:28 2010] [warn] child process 8619 still did not exit, sending a SIGTERM
[Tue Jan 05 08:29:35 2010] [notice] caught SIGTERM, shutting down
[Tue Jan 05 08:34:09 2010] [notice] FastCGI: process manager initialized (pid 8873)
[Tue Jan 05 08:34:10 2010] [notice] Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 PHP/5.2.6-1+lenny4 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Jan 05 08:34:44 2010] [notice] caught SIGTERM, shutting down
[Tue Jan 05 08:34:46 2010] [notice] FastCGI: process manager initialized (pid 8919)
[Tue Jan 05 08:36:23 2010] [error] [client 213.180.#.#] File does not exist:....
0
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 
LVL 2

Expert Comment

by:sapparod
ID: 26180230
if you have mod php. don't use cgi. choose one of them.
0
 

Author Comment

by:kiannack55
ID: 26180520
I disabled the cgi mod using "a2dismod cgi" and nothing has changed.
0
 

Author Comment

by:kiannack55
ID: 26183368
I have reinstalled apache 2, bind and webmin and have gotten nowhere, any advice is gratefully appreciated.
0
 
LVL 2

Expert Comment

by:sapparod
ID: 26186855
Do the problem exists when access with other browser IE, chrome?
0
 

Author Comment

by:kiannack55
ID: 26189816
Yes, but they don't specify the file type like FF does.
0
 
LVL 2

Expert Comment

by:sapparod
ID: 26190744
please  see the config file of mod php
you should see something like :

        <FilesMatch "\.ph(p5?|tml)$">
                SetHandler application/x-httpd-php
        </FilesMatch>

In case, you cannot see it please turn on mod info and access to http://localhost/server-info it should show all of your config there post it here thanks.
0
 

Accepted Solution

by:
kiannack55 earned 0 total points
ID: 32986029
Iptables blocked web traffic. Had to reconfigure iptables
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question