This will open the page, and you can click on No thanks, just start my download. Step 2: Click on the download button to download the DMG package for MacOS. This page says that your index.php file serves the information that you enter to this file: Install the MySQL You need to see the following from the image below. Open the Safari and go to localhost address. Do not close the Terminal and type: sudo apachectl restart Save the changes with Ctrl+O, and exit from nano editor with Ctrl+X. Use shortcut Ctrl+W to search this file, and type in Library in order to search for Library. In Terminal type in the following: sudo nano /etc/apache2/nf When you finish that, go to folder Sites, and create a new file with the index.php name. A folder will automatically get the Safari icon: Create a new folder and name it as Sites. Step 5: In the Terminal type in sudo apachectl restart and press Enter, then type in your password in order to restart the Apache. Step 4: Press Ctrl+O to WriteOut and then press Enter to save the settings. Step 3: In front of the row that looks like this: LoadModule php7_module libexec/apache2/libphp7.so Search will place you into the part where are the PHP settings. Step 2: That command will in nano editor open the file nf so press Ctrl+W to start the search in nano editor and then type in the “PHP” and press Enter. Step 1: Opet the Terminal and type in: sudo nano /etc/apache2/nf Here is how to turn on the PHP on your MacOS: PHP also goes with MacOs and in the 7.1 version if you are on the High Sierra. If you see It Works! then the Apache is up and ok. Open your Safari (or any browser) and go to localhost. User password will be requested, so you need to type in the password and then press Enter. Open the Terminal and type the following: sudo apachectl start Turn on the ApacheĪpache is already on your Mac, you just need to turn it on. Here you can read how to set your Mac in order to have a development environment for your needs. In this way, you can create a website or application and then upload it to web hosting. If you want to do a website development on your MacOS you also need to set localhost environment on your Mac.
0 Comments
Leave a Reply. |