Run Mejiro without a Server

Deploying Mejiro (or any PHP-based application for that matter) for production use usually requires a dedicated web server like Apache or lighttpd. However, it’s possible to run Mejiro using PHP’s built-in server. To do this, you need to install PHP, PHP-GD, and Git packages on your system. On Debian and Ubuntu, this can be done by running the apt-get install php5-cli php5-gd git command as root. Once you’ve done that, reboot the machine.

Clone then the Mejiro GitHub repository using the git clone command. In the terminal, switch to the mejiro directory and start the server by running the php -S command. Point the browser to to access Mejiro (replace with the actual IP address or domain name of the machine running Mejiro).


Running Mejiro using the built-in server is not recommended for production use, but this option can be useful if you need to test Mejiro or instantly publish a handful of photos on a local network.

Tech writer covering Linux and open source software

Tagged with: ,
Posted in Open Source, Scribbles, Software
2 comments on “Run Mejiro without a Server
  1. EK says:

    Web servers developed for a reason. Apart from huge difference in performance try running your solution on port 80 instead of 8080 and feel the difference.

    • Dmitri Popov says:

      You are absolutely right. That’s why I made it clear that using the built-in server is not recommended for production use.

Comments are closed.

Recipes for automated and streamlined photographic workflow on Linux

Use digiKam? Get this book!

Practical advice for nighttime photography

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

%d bloggers like this: