Apache Server configuration support - Apache - Problem reading PHP

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2006 > Apache - Problem reading PHP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache - Problem reading PHP
chateaux

2006-07-29, 7:20 am

Dear All,

I am hoping this is the right place for some Apache help.

I have just switched from Centos to Fedora Core 5 and am using CPanel as the cp.

The server seems to be mostly working except for:

1. Ftp - which is not litening for requests.
2. php - php pages are not being displayed

When I try and open my website I get the following error message:

"You have chosen to open

which is an application/x-httpd-php..."

if you go to the domain: www.southeasterdesign.com you will see what I am talking about.

I guess apache is not reading php correctly.

I have checked for AddType directives in httpd.conf:

------------------------------------------

# AddHandler allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into the server
# or added with the Action command (see below)
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
AddHandler cgi-script .cgi .pl
AddType text/html .shtml
AddType application/x-tar .tgz
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlc .wmlc
AddType application/vnd.wap.wmlscriptc .wmlsc
--------------------------------------------------

Any help, suggestions links to documentation etc. would be greatly appreciated.

Regards,

- c
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com