What is Pancake?
Pancake is a lightweight and fast web server created by Yussuf Khalil, mainly written in C, PHP and Moody. The main goal of Pancake is achieving the best possible PHP script execution performance using its own PHP SAPI, however, you may use nearly any server-side scripting language using the FastCGI and AJP13 interfaces. Thanks to the non-blocking server architecture Pancake can also handle very high concurrency loads. Try it out!
- PHP 5.4.0 or newer (PHP 5.4.10 or newer recommended)
- i686 or x86_64 processor or Raspberry Pi (no official support for other ARM architectures)
- OpenSSL 0.9.8 or newer required for HTTPS
Installing Pancake is quite easy. Simply download the current version and extract it anywhere on the target computer. Then add the executable flag to the Pancake/sys/pancake.sh file and run it. On most systems the following commands should do the job:
wget http://github.com/pp3345/Pancake/tarball/<version> tar -zxvf <version> mv pp3345-Pancake-* Pancake cd Pancake/sys chmod +x pancake.sh sudo ./pancake.sh
As you can see,
sudo is used to run
pancake.sh as root user. In case you're already root or your system uses another command (for example
please choose the appropriate command. Make sure you are allowed to write in the directory you want to install Pancake in.
Upgrading from older versions
You can simply overwrite your old Pancake. No configurations or vHosts will go lost. However, if there is an
UPGRADING file in the root directory
of the new Pancake, please make sure to read it first. It usually contains information about possible incompatibilities when upgrading.
Documentation and information about the configuration of Pancake can be found at the Pancake Wiki.
Bundled init script
Pancake now has an official init script for Debian GNU/Linux (and Debian-derived distributions like Ubuntu or Raspbian) bundled. The script is located in the main directory of Pancake. Run the following commands to use it:
cd <PancakeDirectory> sudo cp init /etc/init.d/pancake sudo chmod +x /etc/init.d/pancake sudo update-rc.d pancake defaults enable
In case your Pancake is not installed in /usr/local/Pancake, please change the
DAEMON line in the script to match your Pancake installation path.
You can then start your Pancake using
sudo /etc/init.d/pancake start
and stop it again using
sudo /etc/init.d/pancake stop
Pancake will also be automatically run when your computer starts up.
The script is bundled with kind permission of Jan Erik Petersen.
If you need help or have a question about Pancake, please feel free to write a mail to email@example.com. I love to hear from you. :-)