PCduino + LAMP (LinuxApacheMysqlPHP) configuration

Source: Internet
Author: User
Tags fully qualified domain name
PCduino + LAMP (LinuxApacheMysqlPHP) configure ApacheLAMP

Refer to the following links:

Http://wenku.baidu.com/link? Url = B5mD0Rn0DR5Qunqut98lmX8d1rXyouil3rfwcSVQ5A0NFOqNjJd2S5sazduht98f_f1Vv8N86zuZ_1vzcuGINki-HhcNb3b6dQ4-FnnhJwK

The following is a record of my configuration process, and I declare that I am a little bit white, but I do not know much about the entire architecture. I just want to record my own operation process. if not, please correct me.

1. connect pcduino to the Internet, open the LX terminal in pcduino, download and install related software, and execute the following commands in sequence:

(1) sudo apt-get update # update Source. we recommend that you do this before each installation.

(2) sudo apt-get install apache2 # install apache quickly

(3) sudo apt-get install libapache2-mod-php5 php5 # install PHP, fast

(4) sudo apt-get install mysql-server # install MySQL

(5) sudo apt-get install php5-mysql # Fast

(6) sudo apt-get install phpmyadmin # install phpmyadmin and perform interface-based operations to facilitate database management

2. problems that may occur during configuration

(1) ### apache2 startup error

Sudo/etc/init. d/apache2 start

###

Error message: apache2: cocould not reliably determine the server's fully qualified domain name ....

Sudo leafpad/etc/apache2/apache2.conf

After opening the file, add the following content at the beginning:

ServerName localhost: 80

(2) error message: No such file or directory: apache2: cocould not open error log file/var/log/apache2/error. log

Solution: generally, the apache2 folder is missing under the/var/log/path, so you can manually create an apache2 folder under the/var/log/path.

3. verify that the installation is successful:

(1) Apache: Access: localhost in the local browser after installation. if it works is displayed

(2) php:

Create an any. php file in the/var/www path to verify whether the file can be accessed. The process is as follows:

Enter the command in the terminal: sudo leafpad/var/www/any. php

After opening the file, enter the following content:

 

Close the file after saving

Access localhost/any. php in the browser. if access is normal, the installation is successful.

(3) mysql:

Enter the following command:

Sudo service mysql start

Mysql can be started normally

Run mysql-u root-p.

The system prompts you to enter the password. after entering the password, you can log on normally.

(4) phpmyadmin

Access localhost/phpmyadmin in the browser. if you can access the logon interface normally, the installation is successful.

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.