Super Lightweight Local Web Server – USBWebserver
Iāve covered the setting up of local web server for the development of websites onĀ https://willtan.com/setting-up-local-web-server-aka-localhost-to-develop-websites using XAMPP. I like XAMPP. But it (XAMPP) was unable to run in one of my labs with older PCs installed withĀ Win XP. Plus, those PCs are installed with DeepFreeze (an application to remove all non-admin installed software upon reboot). After a couple of troubleshooting and configurations, I was still unable to get XAMPP to work with Win XP. That led me to conduct another round of online research for alternative ways to set up local web server.
After some thorough tries, one local web server software stands out (funny why Iād let this one skip through my āfingersā on the first round). This one Iām referring to is ā USBWebserver fromĀ https://www.usbwebserver.net.
USBWebserver is an ultra lightweight local web server software that is even able to be installed and run from an USB stick or flashdrive. That solved the above 2 issues ā (i) I can now set up local web server on PCs running Win XP and (ii) the websites/WordPress created will be on the flashdrive.
Below are the step-by-step instructions on how to create/install WordPress on an USB flashdrive running USBWebserver :
WordPress Web Development (USBWebServer)
- Start USBWebServer
ā Go to https://www.usbwebserver.net/en/download.php and download USBWebserver.
ā Unzip USBWebserver and copy the entire folder to the USB flashdrive.
ā USB flashdriveĀ > USBWebserver folder and startĀ usbwebserver (.exe application).
ā Ensure that both Apache and Mysql modules are running (green ticks).
ā Start your browser ie. Google Chrome or Firefox > https://localhost:8080 ā you should see the USBWebserver page.
(Remarks : Your PC is now running as a web server!)
- Prepare your WordPress folder
ā Go to https://wordpress.org and download the latest WordPress (.zip).
ā Unzip the wordpress-x.x.x.zip to your Desktop.
ā COPY the āwordpressā folder and PASTE it at the USBWebserver folder > root folder (Important; do this step correctly!)
ā Rename the āwordpressā folderĀ to your name ie. āwillāĀ (use lower case; no spacing)
ā Double-click on the renamed folder and you should see these WordPress directories and files :
- Setup Database for WordPress
Before continuing further, you will need to first prepare a database for your new WordPress installation.
ā Browser > https://localhost:8080/phpmyadmin/ > Username : root and Password : usbw
ā Click āUserā tab >Ā Add userĀ > use the following settings :
User nameĀ :Ā mynameĀ <ā (this will be the username for the database)
HostĀ : localhost
PasswordĀ : passwordĀ (Hint: For practice purpose, just use āpasswordā as the password)
Check/tick āCreate database with same name and grant all privilegesā
Check/tick āGrant all privileges on wildcard name (username\_%)ā
Check/tick āCheck Allā forĀ Global privileges
Click the āGoā button at bottom-right
Now, the database for your WordPress installation is ready.
- Installing WordPress
ā Go toĀ https://localhost:8080/myname
ā Select āEnglish (United States)ā > Continue
ā Fill in the database detailsĀ which you have just created earlier then click āSubmitā.
Fill in the following database details required :
Database Name :Ā myname
User Name :Ā myname
Password : password
Database Host : localhost
Table Prefix : wp_
ā Next, click āRun the installā.
ā Enter theĀ WordPress installation detailsĀ as below :
Site Title :Ā My First WordPress
Username : userĀ <ā (use this common username so that you will not forget it)
Password : passwordĀ <ā (use this common passwordĀ so that you will not forget it) (Check/tick to confirm the use of āweakā password.)
Your E-mail :Ā [email protected]
Privacy : (Let the search engine know your site of course)
Click āInstall WordPressā
Thatās it. Congratulation! Your WordPress should have installed successfully.
See your WordPress (User view) : https://localhost:8080/myname
Administrator Dashboard : https://localhost:8080/myname/wp-admin