Apache and Php5 on OS X Leopard

OS X comes with apache and php installed, but not enabled.  While it's quite easy to get the Apache server up and running, through system preferences -> Sharing ->  check "Web Sharing".  You still have to then enable the php5 module.  This is done by editing the file /etc/apache2/httpd.conf and uncommenting (removing the # from) the line "LoadModule php5_module        libexec/apache2/libphp5.so"

Don't forget to restart apache with "sudo apachectl restart"
 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption>
  • Lines and paragraphs break automatically.

More information about formatting options