New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - Apache Not Reading PHP....


Post Reply New Thread Subscribe

 
Thread Tools
liberal123
Guest
 
Posts: n/a

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

Lee
QUOTE Thanks
JunMacTech
Guest
 
Posts: n/a

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.
QUOTE Thanks
petenet

 
petenet's Avatar
 
Member Since: Jan 13, 2006
Location: Chicago, IL
Posts: 81
petenet is on a distinguished road
Mac Specs: MacBook Pro 2.8Ghz, 4GB RAM, 500GB HDD

petenet is offline
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()?>
QUOTE Thanks

Post Reply New Thread Subscribe


« iPhoto with panther | Is there anyleft »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Apache PHP MYSQL SQL timboellis Switcher Hangout 2 10-16-2005 08:43 PM
Apache PHP Error Handlers vtupser Web Design and Hosting 4 04-15-2005 01:37 AM
Setting up PHP and PHP Nuke EvoMac Web Design and Hosting 2 02-18-2005 12:38 PM
Apache does not start plutonito OS X - Development and Darwin 3 07-28-2004 12:19 PM
Apache + PHP + MySQL Emrys OS X - Development and Darwin 2 11-14-2003 01:30 AM

All times are GMT -4. The time now is 07:45 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?