Installing MySQL on OSX

By | November 10, 2020

There are 2 main ways to install mySQL on OSX. Using Homebrew or a .dmg installer from MySQL. Here I’ll go over the MySQL installer because you get a neat panel to start and stop the database. MySQL installer Head over to https://dev.mysql.com/downloads/mysql/ and download the latest community version and then run through the install… Read More »

Category: OSX

How to configure Apache to run PHP on OSX

By | November 8, 2020

Navigate to: /etc/apache2/httpd.conf and search for php. You should see: Remove the # which is uncommenting that line. Save the file and then restart Apache with the command: As a quick test, if you place a small php file in your web server directory (/Library/WebServer/Documents/) you should be able to run it. The other option… Read More »

Category: OSX

Apache 101 on OSX

By | November 8, 2020

Did you know that you have the Apache web server already installed on your Mac? To test, run this command: Great. So you have proved that you have Apache. Now what? Let’s practise starting and stopping it. To start it, the command is apachectl start, but if you are not a root user, you’ll get… Read More »

Category: OSX

Can’t find High Sierra in Apple Store

By | October 27, 2020

If you are searching for OSX how to install High Sierra and you can’t find it in the apple store, it is because it is not there. It has been removed. You’ll have to visit this link: http://updates-http.cdn-apple.com/2019/cert/061-39476-20191023-48f365f4-0015-4c41-9f44-39d3d2aca067/InstallOS.dmg which is referenced from Apple support at: https://support.apple.com/en-au/HT208202 in order to download it and then install it.… Read More »

Category: OSX

How to install MySQL on mac

By | August 7, 2020

To install and start MySQL on a mac, run these commands: brew install mysql mysql.server start Useful commands to start and log in. mysql.server stop mysql –version or mysql -V brew info mysql mysql -uroot //to log in. (No password needed). Useful commands within MySQL: show databases; create database <NAME_HERE> mysql -u username -p new_database… Read More »

Category: OSX

How to install Vagrant on MacOS

By | August 2, 2020

brew cask install vagrant It is pretty straight forward. Then to install virtualbox, just run: brew cask install virtualbox Create a vagrant folder and then run the init command: mkdir vagrant/ubuntu cd vagrant/ubuntu vagrant init ubuntu/xenial64 The ubuntu/xenial64 option is basically pointing to the vagrant “box” or the OS hosted at vagrantcloud.com. What happens is… Read More »

Category: OSX

How to test the brew instance of Apache

By | August 2, 2020

If you are looking to work with Apache on OSX you have probably been advised to not use the Apache 2.4 pre-installed version because Apple has removed some required scripts, especially in the macOS 10.15 Catalina release. Here are the commands to run to install Apache via brew. First shutdown Apache and unload any scripts.… Read More »

Category: OSX

How to install nodejs on Ubuntu

By | July 31, 2020

Nodejs is included in the Ubuntu repository by default. This means that if you run: sudo apt install nodejs your terminal screen will be swing into action downloading the current stable release of node. Currently it is v10.19.0. But what if you need another version? What if you need to guarantee a specific version? First… Read More »