PHP / Apache Help... OS X Server

clc2112

Registered
Im running OS X server ...

I downloaded the latest php and apache and used the OS X Server specific install directions from:

http://www.php.net/manual/en/install.macosx.php

I got no errors during ./configs, make or make install. The apache started right up. however the php test file doesnt work, the browser only shows the text of the file.

<?php phpinfo(); ?>

As i said I did it exaclty like the website stated...

Any body have any clues on how to figure out whats wrong and fix?
 
Post your apache config file dude.

It would appear that apache hasn't been made aware that .php files are, in fact, php files.
 
The whole /etc/httpd/httpd.conf file, all 1462 lines?

Or specific lines like: (some of these WERE NOT uncommented until just now. (thought the install/config was supposed to do that) but a restart of apache still didnt help)

#### For Mac OS X Server: To enable WebMail, or any other php functions,
#### uncomment the directive below and also the corresponding AddModule
#### directive further below.
#
LoadModule php4_module /usr/libexec/httpd/libphp4.so

#### For Mac OS X Server: To enable WebMail, or any other php functions,
#### uncomment the directive below and also the corresponding LoadModule
#### directive above.
#
AddModule mod_php4.c

#### For Mac OS X Server: Do not uncomment; this is already handled by
#### Server Settings app, with directives in mime_macosxserver.conf
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

#### For Mac OS X Server: To enable WebMail, or any other php functions,
#### uncomment the directive below and also the corresponding LoadModule
#### directive above.
#
AddModule mod_php4.c
 
Back
Top