Index: [Article Count Order] [Thread]

Date:  Sun, 20 Jul 2008 12:49:50 -0700 (PDT)
From:  Dan Kriwitsky <webhosting (at mark) yahoo.com>
Subject:  [coba-e:13574] Re: php errors on site.
To:  coba-e (at mark) bluequartz.org
Message-Id:  <697087.29044.qm (at mark) web65616.mail.ac4.yahoo.com>
In-Reply-To:  <010001c8ea91$b3755db0$6501a8c0@systemax>
X-Mail-Count: 13574


> I have a client whose php pages are not working.
> I checked httpd.conf and vhosts/sitex all looks OK.
> looks like this;
> # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN
> BETWEEN.
> AddHandler cgi-wrapper .cgi
> AddHandler cgi-wrapper .pl
> AddHandler server-parsed .shtml
> AddType text/html .shtml
> AddType application/x-httpd-php .php4
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php5
> # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN
> BETWEEN.
> 
> yet when accessing a php script on the site, it wants to
> download it.
> http://www.bakewaredistributor.com/store/
> and click on any product
> There must be some dumb thing wrong.
> 

Everything looks correct. Are you sure they ran:
/etc/rc.d/init.d/httpd reload
After making those changes?
Is PHP selected in the site admin or was that change done just in the site# vhost file?

Is there a .htaccess file? It might have something interfering with it.

Trying with a text browser it looks like it's being served correctly:
--- 07/20/08 15:43:58 Eastern Daylight Time
--- reading URL http://www.bakewaredistributor.com/store/home.php?cat=252
--- contacting host www.bakewaredistributor.com [75.146.100.147] on port 80

HTTP/1.1 200 OK
Date: Sun, 20 Jul 2008 19:44:09 GMT
Server: Apache/2.0.52 (CentOS)
Last-Modified: Thu, 06 Dec 2007 01:24:40 GMT
ETag: "1534024-e79-fe708600"
Accept-Ranges: bytes
Content-Length: 3705
Connection: close
Content-Type: application/x-httpd-php


-- 
Dan Kriwitsky