Running Drupal on a USB drive with USBWebserver

Last updated on
26 January 2024

This documentation needs review. See "Help improve this page" in the sidebar.

It is recommended to use DDEV for local Drupal development on Windows.

UsbWebserver provides a fully functional, portable WAMP stack that may be used to distribute or store a production Drupal site on a USB drive, while retaining write-to-database functionality.

Getting and setting up UsbWebserver:

  1. Download the zip file (SourceForge may have a more recent version).
  2. Read the manual.
  3. Extract the downloaded file into your USB drive and click the usbwebserver application Icon.
  4. You will get a pop-up with the option of phpmyadmin and localhost.
  5. Clear the root folder on the USB drive and paste the Drupal files and folders from the parent directory of the respective Drupal version.
  6. Click phpmyadmin and create the database (database port no: 3307).
  7. Click localhost to install your Drupal website (database port no: 3307).

Notes:

  • Stop both services before disconnecting the USB drive, or it may cause the database to crash. If you want more execution time, go to the settings folder and edit the PHP configuration file (php.ini).
  • After beginning a new Drupal installation you may see an error, "PHP Extensions - Disabled .gd". This can be resolved by enabling ;extension=gd in the php.ini file, by removing the semi-colon.
  • You may also see an error, "Database support Disabled. Your web server does not appear to support any common PDO". The attached php.ini (phpini.txt) file may provide a clue to the reason and solution.

Help improve this page

Page status: Needs review

You can: