Skip to content

Instantly share code, notes, and snippets.

@ahmed-rezk-dev
Forked from dreamsparkx/More-links.txt
Created July 26, 2020 21:42
Show Gist options
  • Select an option

  • Save ahmed-rezk-dev/4cbc0b8b24c9229632a0b8bef58c5ff5 to your computer and use it in GitHub Desktop.

Select an option

Save ahmed-rezk-dev/4cbc0b8b24c9229632a0b8bef58c5ff5 to your computer and use it in GitHub Desktop.
Install Apache, PHP, MySQL and phpMyAdmin on Mac OS X

1. Enable Apache

Open Terminal and run the following Code: sudo apachectl start

Open your browser and access http://localhost. If it says It Works, then you are set otherwise see if your apachectl has started or not.

2. Enable PHP for Apache

Let's make a backup of the default Apache configuration. This will help you to cross check later what you changed or in case you want to restore the configuration to default.

cd /etc/apache2/
cp httpd.conf httpd.conf.bak

Now edit the httpd.conf with vi or any other text editor: vi httpd.conf

Now uncomment the following line (Remove #): LoadModule php5_module libexec/apache2/libphp5.so

Now Restart apache: sudo apachectl restart

3. Install MySQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment