Raspberry Pi (Raspberry) to build a simple lamp service

Source: Internet
Author: User

Raspberry Pi (Raspberry) to build a simple lamp service;

1. LAMP Installation

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

– Install MySQL, Apache, PHP

sudo chmod 777/var/www/

– Set permissions for the Web directory

2. phpMyAdmin Installation

sudo apt-get install phpMyAdmin

– Select Apache2 after installation

3. Configuration

sudo a2enmod rewrite

– Enable the Apahce mod_rewrite module

sudo ln-s/usr/share/phpmyadmin/var/www Establish connection

Combine Apache with phpMyAdmin (modify according to your web directory)

vi/var/www/test.php

<?php

Phpinfo ();

?>

Build a test page in the/var/www/directory to see if the Web site is successful

Sudo/etc/init.d/apache2 restart

– Restart the Web service

Raspberry Pi (Raspberry) to build a simple lamp service

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.