Many developer use mac for web development. I myself has seen several tutorials where trainer used apple system for training, but when I baught macbook, I found it bit difficult to set up the environment. I believe that many new developer face such issues so i decided to write this tutorial to help them. I have been using Linux (mostly Ubuntu/Linux Mint) for quite a time prior to switching to Mac.
Set up Web Server (Apache)
Apache is the most popular webserver. and the good news is that Mac OS (macOS 10.13 onwards) comes preinstalled with Apache and you just need to start the webservices. run following command to start apache
sudo apachectl start
To test if apache is working, just open your favorite webbrowser and type localhost on its address if you see page as follows, your webserver is working perfectly.
chmod +a "_www allow execute" ~
sudo apachectl restart
Inbuilt Apache server works perfeclty fine if you do not intend to use php. But If you plan to develop using PHP as a server side language you must know that MacOS depricated PHP and stopped supporting it implicitely since MacOS Montery. So if you are PHP lover like me you must stop the inbuilt apache
- Show Hidden Files :Click the Finder icon in your dock to open Finder. Navigate to the folder where you want to find hidden files. Press Command + Shift + . (the period key). This will show hidden files in the folder.
- Show Macintosh HD :It's really easy to show hard drive on your Desktop Mac. Open the Finder and select the main Finder menu. Then, click Settings. Under the General tab, under the Show these items on the Desktop, ensure Hard disks is selected.
No comments:
Post a Comment