Ken Tozier wrote:
Ken Tozier wrote:

I can't get even the test script <?php phpinfo() ?> to run on my Mac. I turned personal web sharing on, checked the httpd.config file (all is well) type 127.0.0.1/test.php in the browser and get a "source view" of the page (ie: <?php phpinfo() ?> shows up in the browser winbdow).
What am I doing wrong?
Thanks
Ken

> Got a line like this in your httpd.conf....? > AddType application/x-httpd-php .php Yeah. both of these are uncommented in httpd.conf: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps


Restarted Apache?


Yep. same result.

Possibly have another httpd.conf file that Apache is reading?


Possibly. I used the package installer from Marc liyannage's web site which seems to have done something odd to the httpd.conf file but I don't know enough unix yet to fix it without possibly screwing up. there are the following config files in the /private/etc/httpd directory:
httpd.conf
httpd.conf.applesaved
httpd.conf.bak
httpd.conf.default
httpd.conf.entropy-backup.1059884513
httpd.conf.entropy-temp


In addition to these, there is another config file named "httpd.conf.php" in the "/usr/local/php/" directory

Which one Apache is using is a mystery to me.

Anything in the error logs when you start Apache?


No. this appears to be in order.


Odd. To be sure it's using the conf file you want, have you tried starting Apache with the command.....?


/path/to/httpd -f /path/to/httpd.conf

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to