In this tutorial we will learn to install Apache, MySQL, PHP on macOS Mojave 10.14.
MySQL Workbench is available for Mac OS X and is distributed as a DMG file. The file is named mysql-workbench-oss-version-osx10.5-i686.dmg, where version is the MySQL Workbench version. To install MySQL Workbench on Mac OS X, simply download. MySQL Cluster is a real-time open source transactional database designed for fast, always-on access to data under high throughput conditions. MySQL Cluster Plus, everything in MySQL Enterprise Edition. (mysql-workbench-community-8.0.21-src.zip) MD5: 92a3395f089235b28e7a3f07bdc14489 Signature Red Hat Enterprise Linux 8 / Oracle Linux 8 (Architecture Independent. MySQL Workbench is available on Windows, Linux and Mac OS. MySQL Workbench simplifies database design and maintenance, automates time-consuming and error-prone tasks, and improves communication among DBA and developer teams.
macOS Mojave
Apple released the new macOS Mojave 10.14 on 24th September 2018 and it includes Apache and PHP.
We will be using the pre-installed Apache and PHP and we will download and setup MySQL database.
Lets go ahead and configure our LAMP stack development environment on macOS Mojave.
Apache
The new macOS Mojave comes with Apache pre-installed. All we have to do is switch it on.
Open Terminal using macOS Spotlight or go to /Applications/Utilities and open Terminal.
To check the version of Apache installed run the following command in the Terminal.
macOS Mojave comes with Apache/2.4.34.
To start Apache web server run the following command.
This command will start Apache server.
When you use
sudo in the terminal then you will be prompted to enter your admin password to proceed.
If you want to stop the Apache server then run the following command.
And to restart Apache server run the following command.
After starting Apache server go ahead and test it by opening a browser like Safari or Chrome and visit
http://localhost .
You will get to see the following output in your browser.
In case you don't get to see the above output then run the following command to check the error.
Document Root
This is the location in the computer file system from where the files are accessed when we visit the localhost in a browser.
Document Root is a directory where we put our website files.
On Mac we have two document root. One is at the system level and the other is at the user level.
System level document root
The system level document root in macOS Mojave is located in the following directory.
User level document root
For the user level we can create a directory called
Sites in user directory.
Creating
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |