Hello Devz, NGINX (pronounced engine x) is a popular lightweight web server application you can install on the Raspberry Pi to allow it to serve web pages. Like Apache, NGINX can serve HTML files over HTTP, and with additional modules can serve dynamic web pages using scripting languages such as PHP. INSTALL NGINX First install […]
Raspberry Pi – Useful commands for your web server
Hello Devz, Here are some simple steps to configure your own web server: INSTALL WORDPRESS sudo mkdir -p /var/www/html/mywebsite cd /var/www/html/mywebsite sudo wget http://wordpress.org/latest.tar.gz tar –strip-components=1 -xvf latest.tar.gz rm latest.tar.gz sudo chown -R www-data:www-data /var/www/html/mywebsite sudo chmod -R 755 /var/www/html/website KILL THE FIREWALL sudo iptables -F sudo iptables -X sudo iptables -t nat -F sudo […]
Pi Web Server – Part 2: Setting up your first website
Hello Devz, Here are the simple steps to configure your existing web server: Create the directory for your website’s files Lets make our first simple website. I’m hosting all mine on the external USB drive I mounted earlier. In the directory /data. Type: sudo mkdir -p /data/mysite.com/www sudo mkdir -p /data/mysite.com/logs All your PHP/HTML/CSS etc […]
Pi Web Server – Part 1: Install Nginx, PHP and MySQL
Install Nginx, PHP and MySQL I’m going to use nginx rather than the more traditional Apache2, because it is more efficient and on a low-power device like the Pi that’s going to be important. I’m also going to install PHP5 (with PHP APC to make it faster than normal) and MySQL as these are pretty […]