In the recent version of Mac OS X, the web server is one of the component that is built-in by default. Prior to Mountain Lion, users can easily turn on the web server via the “Web Sharing” option in the Sharing Preference pane. That component was removed in Mountain Lion. In this tutorial, we will show you how to activate the web server in Mountain Lion, as well as setting up PHP, MySQL and PhpMyAdmin. At the end of this tutorial, you will have a MAMP (Mac, Apache, MySQL, Php) server running on your Mac.
Mysql Install Instructions Mac Os X Mountain Lion On Pc From Usb Read/Download LAMP means - Linux - Apache - MySQL - PHP. LAMP installation is a Mac OS x file: This file use to create bootable usb disk. Download link: 6. Click on OK and follow instructions how to install mac os x mountain lion in intel pc. Os x mountain lion free download - Apple OS X Bash Update Mountain Lion, Mountain Lion Cache Cleaner, Apple OS X Mountain Lion 10.8.2 Supplemental Update, and many more programs Navigation open search.
Starting the Apache server Apache server is pre-installed in Mac OS X, so there is no need to install it. However, to start the Apache server, we will have to use command line in the Terminal. Sudo apachectl restart The PHP module is now activated. Configuring Sites folder By default, Apache serves files that are in the folder location “/Library/WebServer/Documents”. On a multiple users system, you can setup the web server to serve files for different users using the URL “ 1. Open the Finder and go to your Home folder (the folder with a Home icon and your username). Create a new folder “Sites” if it is not available.
Back to the Terminal, type the command. Sudo apachectl restart 5. In your browser, type “ You should see the PHP info page, if everything is running fine.
Setting up MySQL MySQL is not included in Mountain Lion, so you will need to download and install it manually. Go to and download the MySQL installer for Mac.
For easier installation, you might want to grab the.DMG image than the one in.tar.gz format. Note: You don’t have to sign up for an account to download the file. Just click the “No thanks, just start my download.” will do. Once the download is completed, open up the installer, you should see two.pkg files and one.prefPane file. Install all three of them. After the installation, you can go to “System Preferences - mySQL” and start the MySQL instance. Setting upi MySQL root password In the Terminal, type the command.
![]()
Sudo rm /usr /local /mysql sudo rm -rf /usr /local /mysql. sudo rm -rf /Library /StartupItems /MySQLCOM sudo rm -rf /Library /PreferencePanes /My. rm -rf /Library /PreferencePanes /My.
![]()
sudo rm -rf /Library /Receipts /mysql. sudo rm -rf /Library /Receipts /MySQL. sudo rm -rf /private /var /db /receipts /.mysql. Open the file “hostconfig” with the command “ sudo nano /etc/hostconfig” and remove the line MYSQLCOM=-YES. Installing PhpMyAdmin PhpMyAdmin is basically a bunch of PHP files, so installing them is a breeze.
PhpMyAdmin from its website. Extract the compressed file to your Sites folder and rename it as “phpmyadmin”. Open the “phpmyadmin” folder and create a new folder call “config”. Change its permission with the command.
I am trying to install MySQL 5.1. I am on Lion, and when I remove all files associated with MySQL on my machine it still tells me that I have a newer version installed when I try to install it from the DMG file.
Has anyone successfully installed MySQL 5.1 on Lion?
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |