Use Raspberry Pi to build your own web server (I) install LAMP

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.