💡 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).
1{
2"php.validate.executablePath": "C:\\\\wamp64\\\\bin\\\\php\\\\php7.0.4\\\\php.exe",
3"php.executablePath": "C:\\\\wamp64\\\\bin\\\\php\\\\php7.0.4\\\\php.exe"
4}
- Create a new database
testing_db
(remember to chooseutf8_general_ci
before pressing Create)
- Create a new user
thi
withALL PRIVILEGES
(click on Check all).
- Download Wordpress.
- Create a folder
thi
inC:\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/thi
and follow the instructions.
- Type the username and password you created (
thi
andthipassword
).
- 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
username
andpassword
given in the downloaded database instead of the one you created on localhost.
- Enable the downloaded theme in
/wp-admin
.