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.
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 define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');
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.
Thanks
hope it helps
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.
http://localhost:8888/your-site-folder/
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.
http://localhost:8888/your-site-folder/
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
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
Change wp-config-sample.php to wp-config.php.
Install Wordpress by opening
http://localhost:8888/your site folder/wp-admin/install.php.
Install it!
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. :)