Run PhpMyAdmin:
- download and install xampp
- open Applications/XAMPP/manager-osx
- run mysql & apache
- if can't run apache:
-
- sudo apachectl stop
-
- change ports from 80 to 81
- if can't run mysql:
-
- sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
- or:
-
- sudo /usr/local/mysql/support-files/mysql.server stop
- or:
-
- 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