Enable PHP on Mac OS X 10.4.x

10.4.9

  1. Edit the httpd.conf file
  2. Uncomment the lines that contain php
  3. Restart apache
  4. Confirm it works via phpinfo.php
  5. fix PEAR – see Enable PEAR on Mac OS X 10.4.x

command summary of the above (assuming you know what to do in vim)

$ sudo vim /etc/httpd/httpd.conf
$ sudo apachectl restart
$ vim /Library/WebServer/Documents/phpinfo.php

phpinfo.php contents

<?php phpinfo(); ?>

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">