You are here:--How to Install WordPress on Mac without xampp

How to Install WordPress on Mac without xampp

 

How to Install WordPress on Mac without xampp

* First .. you need to Install Full Webserver (Apache, PHP, MySQL, phpMyAdmin) :

 

– Open Terminal and write :

  •  sudo apachectl start
  •  your mac password
  •  open safari and go to (localhost)
  •  go back to terminal
  •  sudo nano /etc/apache2/httpd.conf
  •  remove “#” before #LoadModule php5…
  •  sudo apachectl restart
  •  sudo nano /etc/apache2/httpd.conf
  •  Add index.php in DirectoryIndex line
  •  sudo apachectl restart
  •  sudo nano /Library/WebServer/Documents/index.php
  • add the code seen on the screen

 

– MySQL

  •  download Mysql: https://dev.mysql.com/downloads/
  •  SAVE YOUR PASSWORD!
  •  go back to terminal
  •  sudo mkdir /var/mysql
  • sudo ln =s /tmp/mysql.sock /var/mysql/mysql.sock
  •  Start mysql Server
  • cd /usr/local/mysql/bin
  •  sudo ./mysql =u root =p
  • Alter user ’root’@‘localhost identified by ‘newpassword’;

 

– PHP

  • Download phpmyadmin: https://www.phpmyadmin.net
  •  Copy paste it into Documents folder and rename to phpMyAdmin
  •  cd /Library/Webserver/Documents/
  •  cd phpMyAdmin
  •  sudo mkdir config
  •  sudo chmod o+x config
  •  open localhost/phpmyadmin
  •  Under Authentication, enter mysql password
  •  Download Config
  •  Copy/Paste config into config folder

 

to Install wordpress :

  • Go to wordpress.org
  • get wordpress and download
  • copy the wordpress folder and paste in Library/Webserver/Documents/
  •  go to http://localhost/phpmyadmin/index.ph
  •  new > Create Database
  •  go to localhost/wordpress

 

By |2019-09-25T09:54:45+00:00September 24th, 2019|Categories: WordPress|Tags: , , , |0 Comments

Leave A Comment