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 that helped a little bit. It is just a pain in the butt trying to set stuff like this when you have no clue how to work it in the first place. Also forgot to set the preferences on the Apache to the MAMP/htdocs as the root where the php page was.
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.
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
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.