Installing a web server
The first instinct may be to install Apache. However, nginx performs better on lower-end hardware. It should be noted that Apache can work just as well if the unnecessary plugins are removed and Apache is configured appropriately. For something that works fairly well out of the box, nginx is a great start.
- First, install nginx and php with an accelerator and a MySQL server with the following command:
# apt-get install nginx php5-fpm php5-mysql php-apc mysql-server
Note
You will be prompted to set a password for MySQL; please make sure you remember it, as you will need it later.
- Then, start the
nginx
service:# service nginx start
- In order to ensure nginx is working, open up a browser and connect to the Raspberry Pi's IP. You ...
Get Learning Raspberry Pi now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.