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)

  1. 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!)

  1. 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 :

  1. 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.

  1. 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

 

Similar Posts