The project is jointly managed by a group of volunteers located around the world, using the Internet and the Web to communicate, plan,.
I mainly do web development on my 15 in Macbook Pro. Mac runs on base Unix foundation so mainly you could install almost all Linux/Unix software on Mac very easily.
Mac OS X comes by default with ApacheWeb Server and PHP. In this tutorial we will go over steps on how to enable those on Mac.
Let’s get started:
- Click on the link above to download Apache Directory Studio for macOS. The download appeares in the Downloads folder in Finder. Double-click on the disk image to open it. Drag-and-drop the Apache Directory Studio application on the Applications folder to install it.
- The Apache HTTP Server ('httpd') was launched in 1995 and it has been the most popular web server on the Internet since April 1996. It has celebrated its 25th birthday as a project in February 2020. The Apache HTTP Server is a project of The Apache Software Foundation. Apache httpd 2.4.46 Released 2020-08-07 ¶.
Apache Web Server Download For Mac Os X
Enable Apache Web Server
Step-1
Open terminal App and run below command:
Step-2
Open browser and check with URL:
http://localhost
Enable PHP Module and verify Perl module
Step-1
Open
Terminal
App. Mac OS X comes by default with Perl library
. Just type below commands to check Perl and PHP Setup.Terminal Commands
2 4 6 8 10 12 14 16 18 | /usr/bin/perl bash-3.2# pwd total120 -rw-r--r--1root wheel13077Sep92014magic drwxr-xr-x14root wheel476Sep92014extra -rw-r--r--1root wheel20786Sep92014httpd.conf -rw-r--r--1root wheel20786Jun913:55httpd.conf.bak bash-3.2# vi httpd.conf |
Step-2
Open file
httpd.conf
file. You may use any Text Editor
also.Uncomment the following line (remove #):
LoadModule php5_module libexec/apache2/libphp5.so
Step-3
Restart Apache Web Server:
Step-4
- Find
DocumentRoot
fromhttpd.conf
file. In my case it’s/Users/crunchify/Documents/Blogs/MAMP
as I’m using MAMP on my Mac. - You may have diff folder something like
/Library/WebServer/Documents/
. - Create below file
crunchify-php-on-mac.php
under your DocumentRoot folder. - If you don’t see folder
Web Server
then just create it ?
crunchify-php-on-mac.php
2 4 6 8 | <head> </head> <?phpecho'<p>Hello World - PHP Testcase on Mac OS X by Crunchify.com...</p><br>Have a fun.. Enjoy..';?> </html> |
Step-5
Now visit this URL:
http://localhost/crunchify-php-on-mac.php
and you should see php file loaded successfully on browser.How to Kill Apache httpd process on Mac?
Just incase if you need to kill apache httpd process on Mac then you could use below commands.
2 | sudo launchctl unload/System/Library/LaunchDaemons/org.apache.httpd.plist |
Enjoy and Happy coding…
Join the Discussion
If you liked this article, then please share it on social media or leave us your comments. Limited time 3 months free WPEngine hosting.
Other Popular Articles...
The Apache HTTP Server Project is an effort to develop and maintain anopen-source HTTP server for modern operating systems including UNIX andWindows. The goal of this project is to provide a secure, efficient andextensible server that provides HTTP services in sync with the current HTTPstandards.
The Apache HTTP Server ('httpd') was launched in 1995 and it has been the most popular web server on the Internet sinceApril 1996. It has celebrated its 25th birthday as a project in February 2020.
The Apache HTTP Server is a project of The Apache SoftwareFoundation.
The Apache Software Foundation and the Apache HTTP Server Project arepleased toannounce therelease of version 2.4.46 of the Apache HTTP Server ('httpd').
This latest release from the 2.4.x stable branch represents the best availableversion of Apache HTTP Server.
Apache HTTP Server version 2.4.43 or newer is required in order to operate a TLS 1.3 web server with OpenSSL 1.1.1.
Download | ChangeLog for2.4.46 | Complete ChangeLog for2.4 | New Features in httpd2.4
As previously announced, the Apache HTTP Server Project has discontinuedall development and patch review of the 2.2.x series of releases.
The Apache HTTP Server Project had long committed to provide maintenancereleases of the 2.2.x flavor through June of 2017. The final release 2.2.34was published in July 2017, and no further evaluation of bug reports orsecurity risks will be considered or published for 2.2.x releases.
Great! We have updated our download page in an effort tobetter utilize our mirrors. We hope that by making it easier to use our mirrors, we will be able to provide a better download experience.
Please ensure that you verify your downloads usingPGP or MD5 signatures.
Install Apache Web Server Mac Os X
Awesome! Have a look at our current 'Help Wanted' listings then: