Run WordPress on Local PC

PREPARATION

1. Download XAMPP: https://www.apachefriends.org/index.html
2. Download WordPress: https://wordpress.org/download/#download-install 3. Run SERVICES.MSC and DISABLE Internet Information service and World Wide Web Publishing service
4. From the Control Panel, open WINDOWS FIREWALL, then ADVANCED SETTINGS
5. Click INBOUND then NEW RULE
6. Click PORT then TCP. In SPECIFIC PORTS enter: 80,443
7. Click NEXT then ALLOW CONNECTION
8. Click NEXT then enter name LOCALHOST1, then click FINISH
9. Repeat for 2nd inbound rule called LOCALHOST2
10. Create folder: c:\xampp
11. Add folder exclusion for c:\xampp to any AV software
12. Reboot PC SETUP
13. Run XAMPP installer
14. Select ONLY Apache, MySQL, PHP, phpMyAdmin
15. Select installation folder c:\xampp
16. Untick Learn more about Bitnami for XAMPP
17. Tick start control panel” and click Finish
18. If NO red messages are shown, click the START buttons for Apache and MySQL
19. If red messages appear, read this article: https://premium.wpmudev.org/blog/setting-up-xampp/
20. Check new local server is installed here: http://localhost
21. In XAMPP Control Panel, click the ADMIN button in the MySQL scetion
22. Click DATABASES, enter name for db, eg, WP1, click CREATE button, then close the browser window
23. Unzip WordPress.zip from 2 above in c:\xampp\htdocs\WP1 (same as db name in 22 above)
24. Open c:\xampp\htdocs\WP1 folder, rename wp-config-sample.php > wp-config.php
25. Edit wp-config.php
26. Change define(‘DB_NAME’, ‘database_name_here’); to define(‘DB_NAME’, ‘WP1’);
27. Change define(‘DB_USER’, ‘username_here’); to define(‘DB_USER’, ‘root’);
28. Change define(‘DB_PASSWORD’, ‘password_here’); to define(‘DB_PASSWORD’, ”);
29. Save and close wp-config.php
30. Open web browser and go to http://localhost/wp
31. Select appropriate language, enter username and password and complete WP installation
 
Run WordPress on Local PC