Wordpress environment for Theme development.
These instructions will help you to install MAMP & Wordpress locally for a really easy to use build environemnt, with loads of cool build tools.
To build your testing environment, you will ned to install some bits & bobs locally, follow steps below.
First we need the latest WordPress version, click the link above and place the ZIP file in your 'Sites' folder. Pick wherever you want to keep your working directory, but it's 'Sites' for this tutorial.
Download MAMP from the link above, install in your Applications folder. (Mac OS X 10.6.6 or later.) You'll probably need the admin password.
Launch MAMP, Go into your Applications folder and click the MAMP folder. Click on the elephant MAMP icon, which will open MAMP control panel. Ignore MAMP Pro, stick to the grey, standard MAMP. This will open the MAMP control panel.
Click Preferences, and make sure the Ports tab is selected. Ports should be set on the default: 8888 for Apache, and 8889 for MySQL. If not, either enter manually or click 'Set MAMP ports to default'.
Now, you'll need to set the document root. The default document root is:
Macintosh HD > Applications > MAMP > htdocs
Let's change that to the folder you picked in Step 1.
To change/set the document root, click the gray folder icon with the three white dots. A finder window will appear, where you can select the document root.
The folder path would be: Users > user.name > Sites
Click 'Start Servers' from the MAMP control panel. You should see in the top right of the window, the boxes next to Apache Server and MySQL sever are filled green.
If the start page does not open automatically, just click 'Open start page'.
There are two options of getting to phpMyAdmin:
Visit the URL http://localhost:8888/phpMyAdmin Or on the MAMP start page in your browser, click the phpMyAdmin link
You should see these three in the side panel:
- New
- information_schema
- mysql
- performance_schema
Now you want to create a database for your local WordPress site. Click on the databases tab on the far left of the top navigation, or the 'New' tab.
Underneath 'Create database', enter the database name and click "create".
babeZine_db
Remeber the ZIP from Step 1, I know right?? Well unzip that, and rename the resulting "wordpress" folder, "BabeZine". You should now have a folder within your working directory, in our case 'Sites', called "BabeZine" with the guts of WordPress within.
~/Sites/BabeZine/
OK, your server should still be up, if not click the 'Start Servers' button & wait for your servers to start up.
You can now, in your preferred browser, go to https://localhost:8888/BabeZine
Select your Language, then on the next screen, your Database info from Step 6.
- Database Name = babeZine_db
- User Name = root
- Password = root
- Table Prefix = _wp
Click "submit"
Now, enter the Site Title and your preferred credentials. This is what you will use to log in to the WordPress dashboard later, so make a note of these. (Your site is local so don't worry about Privacy)
- Site Title = Missguided
Click "Install WordPress"
Now, let's run through what we've done. You now have a local server running on your machine, which hosts a MySQL database and WordPress. The database has stored your login credentials, and WordPress is at your beck-and-call. To create a carbon copy of the live Missguided Blog, we will now replace some of the core WordPress files with those fo the real thing.
In terminal run the following commands;
$ git clone https://github.com/ishiiprints/MG-Blog.git```
### Step 10: Replace
Does git overwrite everything it needs to? I dunno I'm too tired now.