Enable PHP on OS X El Capitan

Enable PHP module on OS X 10.11 El Capitan

OS X 10.11 El Capitan Beta 5 which was released on August 19 comes pre-built with PHP 5.5.27 and Apache 2.4.16. You can start Apache web server using ‘apachectl‘ command as root / super user. However by default the PHP module is not enabled.

If you are new to web development using Mac, you may ask how to enable PHP module on OS X 10.11 El Capitan along with Apache web server.

Install Apache, PHP with SSL and MySQL support on PC-BSD 8.0 / FreeBSD 8.0

I want to share you on how to install Apache and PHP with SSL support on PC-BSD 8.0. I use the current stable version of Apache (version 2.2.14) and PHP (version 5.3.2) using PC-BSD 8.0 as the operating system. This article should be applicable to install them on Linux (Slackware, Centos, Ubuntu, Fedora, Redhat, etc) or other BSD varian (NetBSD, OpenBSD). The MySQL database was installed during system installation.