💡 Update: Using Local! You can create very quickly a simple wordpress on localhost with a domain
website.local. You can also backup your site and drag-n-drop into Local for using locally.I create Math2ITwp theme for math2it.com from scratch. This note contains the basic things to create a theme like that.
Below are the short steps from this post.
- Download and install WampServer.
- By default, after installing, your site will be at
C:\wamp64\www.
- Run WarmServer, an green icon on the right of taskbar will appear.
- Install MAMP.
- Follow this post.
Just for running PHP +
PHP IntelliSense on Visual Studio Code.- Download PHP (Windows, portable).
- Put below lines in VSC setting file (change the path to yours).
- Create a new database
testing_db(remember to chooseutf8_general_cibefore pressing Create)
- Create a new user
thiwithALL PRIVILEGES(click on Check all).
- Download Wordpress.
- Create a folder
thiinC:\wamp64\www(Windows),/var/www/html(Linux).
- Extract the content (
wp-admin,wp-content,...) of the zip file downloaded in step 1 to/thi/.
- Go to
http://localhost/thiand follow the instructions.
- Type the username and password you created (
thiandthipassword).
- Press Install and wait.
- Login with username and password.
- All the configuration is at
http://localhost/texmath/wp-admin/.
- Install Apache + MySQL + PHP.
- At least, you have a workable site at
http://localhost/thi/.
- Download the current theme on the remote to local. The theme is located at
/wp-content/themes/.
- Clone database from remote site to local by using plugin All-in-One WP Migration. More detailed guid: English, Vietnamese. If your site's too big, exlude the media files and copy them later. They're all in
wp-content/uploads.
- Note that, you have to use
usernameandpasswordgiven in the downloaded database instead of the one you created on localhost.
- Enable the downloaded theme in
/wp-admin.