MAMP Set Up
# July 11, 2008 at 11:15 am
I am a designer looking to learning PHP, WordPress and Drupal. I have MAMP installed on my computer to view the pages locally. However, for some reason I guess I do not know how to set it up. I am using Dreamweaver to design and code my sites. I guess I need to know exactly how to set it up and then know how to view the PHP pages locally. Can anyone help?
Thanks# July 11, 2008 at 1:59 pm
This reply has been reported for inappropriate content.
I’ll try to explain this.
1 – Start MAMP. You should see the start up page. Leave it open.
2 – Create a folder for your site in applictations/MAMP/htdocs/. This will be the site root.
3 – Define a new site in dreamweaver.
4 – In "local info" point everything to the folder you created in the htdocs folder. The http address should be this.
5 – in "remote info" choose Local/Network from the access menu. Point the remote folded to the folder you created in the htdocs folder.
6 – in "testing server" choose PHP/mySQL under server model, Local/Network from the access menu and testing server to he folder you created in the htdocs folder. The URL prefix should look like this.
7 – Hit OK then Done.
Create a new php file in dreamweaver. Paste
<? php echo ‘Hello World!’; ?>
into the body. Save it.Test in browser from dreamweaver. Done!!!!
Installing WordPress locally is the same. Put the WordPress folder into htdocs in MAMP. Create a database in phpmyadmin on the MAMP startup page. Open wp-config-sample.php.
The info should be changed to this
define(‘DB_NAME’, ‘your data base name’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username
define(‘DB_PASSWORD’, ‘root’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
Change wp-config-sample.php to wp-config.php.
Install WordPress by opening
http://localhost:8888/your site folder/wp-admin/install.php.
That should work. It’s all a bit of a faff in dreamweaver. I’m not sure if it likes wordpress tags but don’t quote me on that. Coda is better for me at this sort of thing.
The first part should at least let you test php locally. The htdocs folder in MAMP is essentially the server. That’s how I did it anyway.
Hope that helps a bit. :)
You must be logged in to reply to this topic.