How to run Apache on raspberry (raspberry) PI

Source: Internet
Author: User
Tags socket mysql database

Raspberry Pi (Raspberry Pi) is produced in the UK. Raspberry Pi is a credit card size computer, and the price is very cheap, there are two models, type A and type B.

A type has 256M memory, a USB interface, no network cable socket, B is an upgraded version, 512M memory, 2 USB ports, there is a network cable socket.

Although this small, but the Raspberry Pi can be used to do a lot of things, is the veritable "though small, spite"

The Raspberry Pi can install Linux system, can download various system mirrors on the official net, for instance Raspbian. On the Raspberry Pi motherboard there is an SD card interface, the SD card is used as a "hard drive", and the Raspberry Pi is started from the SD card.

The procedure for running the Apache server on the Raspberry Pi is simple,

To run on the command line:

sudo apt-get install apache2 php5 libapache2-mod-php5

This command installs Apache and PHP, and index.html is the default home page after the/var/www is installed.

Run (optional):

sudo apt-get install mysql-server mysql-client php5-mysql

The MySQL database will be installed.

After loading the Apache server, you can access the IP address of the Raspberry Pi in the browser.

Is it simple?

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.