To install Maven on OS X, go to the Apache Maven website and download the binary zip file. Current Maven Version: 2.2.1 Use other versions at your peril. Note: Mac OS X comes pre-installed with a copy of Maven 2.2.1; be sure to double-check your version from the command line after following the steps below, or things will break. I tried to install Apache Ant on my Mac and I followed the next steps: I downloaded apache-ant-1.8.1-bin.tar.gz into my Downloads folder. I moved the file to /usr/local/ using this commands: sud.
- Download Apache JMeter for Mac - A fully portable Java desktop application designed to test the performance both on static and dynamic resources in your web apps and other software.
- Here are the steps to install Apache, MySQL and PHP on a Mac OS X Download the installation image from MySQL website here. Then double-click to mount and open the disk image.
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:
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.
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 |
How To Download Apache Maven Mac
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 🙂
Apache For Mac Os X
2 4 6 8 | <head> </head> echo' Hello World - PHP Testcase on Mac OS X by Crunchify.com.. 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 5 months free WPEngine hosting and Genesis themes.
Other Popular Articles..
The following instructions guide you thru the installation of the latest LAMP Stack (Apache, PHP and MySQL) on MacOS X Snow Leopard.
Sure, there are pre-packaged solutions like MAMP and MAMP Pro, but if you want to know the inner workings of a LAMP stack, you want to do the installation and configuration yourself.
Let's get started. Here are the steps to install Apache, MySQL and PHP on a Mac OS X
Mac Apache Restart
- Download the installation image from MySQL website here. Then double-click to mount and open the disk image.
- Install MySQL Server by double clicking the package 'mysql-5.1.*****.pkg' and follow the menu, accepting the default values, unless you want to change something and know exactly what you're doing.
- Install MySQL Startup Item by double-clicking the package 'MySQLStartupitem.pkg' and follow the menu.
- Install MySQL Preference Pane by double-clicking the file 'MySQL.prefPane' and follow the menu. This item will simplify the management of your SQL Server. You can now use the 'System Preferences' panel to start and stop the database server.
- Enable the php module in your Apache config file. You might know that Snow Leopard already ships with Apache 2.2 and PHP 5.3, but it needs a couple of tweaks to make it work smoothly. So, open /etc/apache2/httpd.conf and search for 'php5_module'. Remove the comment (#) in front of the line, save and close the file, then restart Apache (sudo apachectl restart)
- Testing Apache/PHP. Let's create an info file so we know what we got. Navigate to /Library/WebServer/Documents and create a file called phpinfo.php. Put the following line into the file, save and close. ''. Now open your favorite browser and hit it (http://localhost/phpinfo.php). You should see a page like the one below, which shows you configuration details, modules enabled and other useful information.
- There is no php.ini out of the box (as you may have discovered by looking at the phpinfo page), but there is a sample file called 'php.ini.default' which we're going to use. Copy this file and save it as php.ini.
- Set the default time zone. As PHP 5.3 requires the timezone to be set, let's do this inside php.ini, so we don't have to worry about it anymore. You can always override it in your application's bootstrap, if needed. Open /etc/php.ini and search for '[Date]'. Uncomment the line 'date.timezone = ' and add your timezone. Check the php manual for acceptable values. (example: date.timezone = ‘America/Los Angeles')
And that's it. You should now have a fully functional LAMP stack with Apache, PHP and MySQL server. Mac dre songs mp3 download.
Apache Server Mac
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.
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 |
How To Download Apache Maven Mac
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 🙂
Apache For Mac Os X
2 4 6 8 | <head> </head> echo' Hello World - PHP Testcase on Mac OS X by Crunchify.com.. 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 5 months free WPEngine hosting and Genesis themes.
Other Popular Articles..
The following instructions guide you thru the installation of the latest LAMP Stack (Apache, PHP and MySQL) on MacOS X Snow Leopard.
Sure, there are pre-packaged solutions like MAMP and MAMP Pro, but if you want to know the inner workings of a LAMP stack, you want to do the installation and configuration yourself.
Let's get started. Here are the steps to install Apache, MySQL and PHP on a Mac OS X
Mac Apache Restart
- Download the installation image from MySQL website here. Then double-click to mount and open the disk image.
- Install MySQL Server by double clicking the package 'mysql-5.1.*****.pkg' and follow the menu, accepting the default values, unless you want to change something and know exactly what you're doing.
- Install MySQL Startup Item by double-clicking the package 'MySQLStartupitem.pkg' and follow the menu.
- Install MySQL Preference Pane by double-clicking the file 'MySQL.prefPane' and follow the menu. This item will simplify the management of your SQL Server. You can now use the 'System Preferences' panel to start and stop the database server.
- Enable the php module in your Apache config file. You might know that Snow Leopard already ships with Apache 2.2 and PHP 5.3, but it needs a couple of tweaks to make it work smoothly. So, open /etc/apache2/httpd.conf and search for 'php5_module'. Remove the comment (#) in front of the line, save and close the file, then restart Apache (sudo apachectl restart)
- Testing Apache/PHP. Let's create an info file so we know what we got. Navigate to /Library/WebServer/Documents and create a file called phpinfo.php. Put the following line into the file, save and close. ''. Now open your favorite browser and hit it (http://localhost/phpinfo.php). You should see a page like the one below, which shows you configuration details, modules enabled and other useful information.
- There is no php.ini out of the box (as you may have discovered by looking at the phpinfo page), but there is a sample file called 'php.ini.default' which we're going to use. Copy this file and save it as php.ini.
- Set the default time zone. As PHP 5.3 requires the timezone to be set, let's do this inside php.ini, so we don't have to worry about it anymore. You can always override it in your application's bootstrap, if needed. Open /etc/php.ini and search for '[Date]'. Uncomment the line 'date.timezone = ' and add your timezone. Check the php manual for acceptable values. (example: date.timezone = ‘America/Los Angeles')
And that's it. You should now have a fully functional LAMP stack with Apache, PHP and MySQL server. Mac dre songs mp3 download.
Apache Server Mac
Thanks for posting, this is by far the easiest procedure, compared to compiling source code and stuff.