I want to use my new Macbook Pro as a development platform for work,
so I went looking for info on installing Apache, PHP, Postgres, etc on
Leopard. I discovered in my search that Apache and PHP are already
installed by default, but disabled, so I'd just have to enable the
already-installed versions.
Getting Apache up and running was no problem. You just check "enable
web sharing" in the Sharing control panel and away you go. getting
PHP working is proving not to be so simple.
I made sure Apache was not running, started a terminal and followed
the instructions I had found online. Namely I CD'd to /etc/apache2,
then sudo pico httpd.conf and uncommented the line that loads
php5_module.so. I saved my changes and restarted the server. No
joy. The server was serving HTML no trouble, but PHP files were not
executing and just echoing their source code back.
I'm obviously missing something, but what? Do I need to add the PHP
MIME type to httpd.conf? None of the websites with instructions for
enabling PHP mentioned needing to do so. Or is there some other step
that I'm missing?
so I went looking for info on installing Apache, PHP, Postgres, etc on
Leopard. I discovered in my search that Apache and PHP are already
installed by default, but disabled, so I'd just have to enable the
already-installed versions.
Getting Apache up and running was no problem. You just check "enable
web sharing" in the Sharing control panel and away you go. getting
PHP working is proving not to be so simple.
I made sure Apache was not running, started a terminal and followed
the instructions I had found online. Namely I CD'd to /etc/apache2,
then sudo pico httpd.conf and uncommented the line that loads
php5_module.so. I saved my changes and restarted the server. No
joy. The server was serving HTML no trouble, but PHP files were not
executing and just echoing their source code back.
I'm obviously missing something, but what? Do I need to add the PHP
MIME type to httpd.conf? None of the websites with instructions for
enabling PHP mentioned needing to do so. Or is there some other step
that I'm missing?
Comment