/osx-xampp-setup

Instructions to setup xampp with virtual hosts for OS X Sierra

Run PhpMyAdmin:

  • download and install xampp
  • open Applications/XAMPP/manager-osx
  • run mysql & apache
    • if can't run apache:
      1. sudo apachectl stop
      1. change ports from 80 to 81
    • if can't run mysql:
      1. sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
    • or:
      1. sudo /usr/local/mysql/support-files/mysql.server stop
    • or:
      1. sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
    • if error #2002: https://stackoverflow.com/a/4847526/4915059
    • then start again from app
  • open localhost:80/dashboard - if you have apache on another port put it here

On Nastya.Air port was changed to 81!

THEN FOLLOW TO PICTURES to setup virtual port and run applications from specific FOLDER, with specific URL, like hazantip.local:81/

to open httpd.conf:

go to xampp - manage servers tab - apache select - configure - open conf file

to get hosts:

sudo vi /etc/hosts

PhpMyAdmin permission denied(13):

Applications/XAMPP/ - CMD + I - add rights to user which you typed in httpd.conf or chmod -R 0775 XAMPP/ from the Applications directory
Applications/XAMPP/xamppfiles/temp - CMD + I - add rights to user which you typed in httpd.conf

Images


apache-port


httpd.conf.vhost-fix


httpd.conf-vhost-enable


etc/hosts


httpd.conf-fix2


phpmyadmin-temp-rights