Thread: Apache Not Reading PHP....
03-28-2006, 04:38 AM #1liberal123GuestApache Not Reading PHP....
Ok, So I go to my local IP, and I get my directory listing, all good so far....
But when I click a PHP file, it just displays the code, or better still, asks me to download the php file.
I installed Zend Studio Server yesterday, with php5, but still no luck.
Web sharing is enabled. Using a Mac Mini 1.42 with 512MB of RAM
Any help is much appreciated as always
03-29-2006, 08:31 AM #2JunMacTechGuest
What is the extension of the file that you wrote the php on? If it is anything other than .php, you are probably going to have to set it up to parse PHP in that type of file. For example, if it is a .htm or .html file.
03-30-2006, 09:37 PM #3
- Member Since
- Jan 13, 2006
- Chicago, IL
- MacBook Pro 2.8Ghz, 4GB RAM, 500GB HDD
try adding these statements to the httpd.conf file -
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Do a search of it, drop them in right after AddHandler server-parsed .shtml
Then restart the webserver.
Also, create a file called something like test.php and put this in it: <?phpinfo()?>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By giszzmo in forum OS X - Operating SystemReplies: 3Last Post: 09-24-2011, 04:16 PM
By Mac4Work in forum Web Design and HostingReplies: 5Last Post: 12-23-2008, 11:07 AM
By gab1982 in forum Running Windows (or anything else) on your MacReplies: 5Last Post: 08-31-2004, 03:41 PM
By psychotoe in forum OS X - Development and DarwinReplies: 2Last Post: 08-12-2004, 06:10 PM
By Emrys in forum OS X - Development and DarwinReplies: 2Last Post: 11-14-2003, 01:30 AM