Lamp Finder For Mac

12.03.2020
Lamp Finder For Mac

$ sudo vim /etc/apache2/users/username.conf ServerName dev DocumentRoot /Users/username/Sites VirtualDocumentRoot /Users/username/Sites/%-2/htdocs UseCanonicalName Off AllowOverride All Order allow,deny Allow from all $ sudo vim /etc/apache2/users/username.conf ServerName dev DocumentRoot /Users/username/Sites VirtualDocumentRoot /Users/username/Sites/%-2/htdocs UseCanonicalName Off AllowOverride All Order allow,deny Allow from all Now Apache serves your projects from your home directory’s Sites folder. Blank family tree template download in french free editable. Apache will serve files from the htdocs folder like “/Sites/projectname/htdocs”.

Now just restart Apache and check that it’s running.

Lamp Finder For Mac Free

For development and testing reasons, I wanted to set up a local server on my Mac Pro so that I could operate a local copy of PCMech.com. I thought I would document how I went about it for the benefit of others down the road. The easiest method to set up a quick LAMP server under OS X is to use. MAMP stands for Mac, Apache, MySQL and PHP. Now, both Apache and PHP do come bundled with OS X, but you’re going to get into command line hell if you want to set it up.

Hue Lamp Finder For Mac/linux

MAMP is much easier because you just download, drag to the Applications folder, and you’re done. Once you’ve done this, let’s do the following:. Navigate to the new MAMP folder and start the MAMP app. Change any preferences you might want to change, but otherwise go ahead and click “Start Servers”. Click on “Open Start Page” and your default web browser will load up the default homepage at localhost.

You will see a menu of options, too, because MAMP has PHPMyAdmin and other utilities built right in. Being that MAMP is completely independent, it does not run in the background.

Lamp Finder For Mac Download

So, you’ll need to start up MAMP like any other application in order for your server to be operational. To remove MAMP, just drag the MAMP folder to Trash. No config files for OS X are altered, so a simply drag to Trash means everything is gone. To work with any files, you will need to place your website files into the “htdocs” sub-folder off of the MAMP folder.

Yes, this means your website files reside in the Applications folder which is odd. But, this is how MAMP maintains its independent nature. Lastly, you might want to get command line access to MySQL so that you can run MySQL commands via Terminal.

For instance, I needed to import the PCMech database into my local database and it was way too large to be imported via PHPMyAdmin. The tedious way would be to manually split up your SQL file. The much easier way is to set up the MAMP version of MySQL to be able to take commands via Terminal. To do so, execute the following commands in Terminal: sudo mkdir /var/mysql sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock sudo chown mysql /var/mysql/mysql.sock sudo chmod 777 /var/mysql/mysql.sock Once that is done, you can import an SQL file via the following command via Terminal: /Applications/MAMP/Library/bin/mysql -hlocalhost -uroot -proot DBNAME.

Comments are closed.