Use Raspberry Pi to build your own web server (I) install LAMP
1. Adjust the GPU memory usage of pi as the web server, and do not need to output video signals. Therefore, reduce the GPU memory usage as much as possible to maximize pi performance. Sudo raspi-config select Advanced Options-> Memory Split, enter 16, and restart after saving. update your pi sudo apt-get updatesudo apt-get upgrade. install the server software. Install the most commonly used LAMP, namely, Linux, Apache, mySql and PHP 3.1 install Apache and PHP sudo apt-get install apache2 php5 libapache2-mod-php5 3.2 install MySql (the Database Password needs to be set during installation) sudo apt-get install mysql-server mysql-client php5-mysql 3.3 After installation, You need to restart apache sudo service apache2 restart 4. after all the software required for the test is installed, the server is basically set up. In this case, open your browser and enter 127.0.0.1 to see a page like this: the root directory of the website is/var/www/html by default.