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 https://github.com/dmpop/mejiro.git command. In the terminal, switch to the mejiro directory and start the server by running the php -S 0.0.0.0:8080 command. Point the browser to http://127.0.0.1:8080 to access Mejiro (replace 127.0.0.1 with the actual IP address or domain name of the machine running Mejiro).

php-server

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

Curve presets for digiKam and the GIMP

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

%d bloggers like this: