The following record my configuration process, a statement, I small white one, the whole structure is not very understanding, just record their own operation of the process, the wrong place please master correct.
1. Connect Pcduino to Internet, open LX terminal in Pcduino, download and install related software, execute command in turn:
(1) sudo apt-get update # #更新源, it is recommended that you do this before you start the installation
(2) sudo apt-get install apache2 # #安装apache, faster
(3) sudo apt-get install libapache2-mod-php5 php5 # #安装PHP, faster
(4) sudo apt-get install Mysql-server # #安装MySQL, very slow
(5) sudo apt-get install Php5-mysql # #较快
(6) sudo apt-get install phpMyAdmin # #安装phpmyadmin, easy to manage the database with GUI operation
2. Problems that may be encountered during configuration
(1) # # # Apache2 Start error
Sudo/etc/init.d/apache2 start
###
Error hint: Apache2:could not reliably determine the server ' s fully qualified domain name ....
sudo leafpad/etc/apache2/apache2.conf
After opening, add the following to the front of the file:
ServerName localhost:80
(2) Error message:No such file or directory:apache2:could not open error log File/var/log/apache2/error.log
Workaround: Generally in the/var/log/path is missing apache2 This folder, so you manually create a apache2 under the/var/log/path
3. How to verify the installation success:
(1) Apache: After installation in the local browser access: localhost, if you can display it works
(2) PHP:
Create a new any.php file under the/var/www path to verify that you can access the file by following these steps:
Enter command in terminal: sudo leafpad/var/www/any.php
After opening, enter the following in the file:
?
1 2 3 4 5 6 7 8 9 |
<body> <?php echo "Hello World" ; ?> </body>
|
Close files after saving
Access to localhost/any.php in the browser, if normal access means that the installation is successful
(3) MySQL:
Enter the command:
sudo service MySQL start
can start MySQL normally
Input command: Mysql-u root-p
Prompt to enter a password, entered after the normal login
(4) phpMyAdmin
Access Localhost/phpmyadmin in the browser, if you can enter the login interface correctly, the installation is successful
The following links are mainly referenced:
1, Http://wenku.baidu.com/link?url=B5mD0Rn0DR5Qunqut98lmX8d1rXyouil3rfwcSVQ5A0NFOqNjJd2S5sazduht98f_f1Vv8N86zuZ _1vzcuginki-hhcnb3b6dq4-fnnhjwk
2, Http://askubuntu.com/questions/257237/i-always-get-no-such-file-or-directory-apache2-could-not-open-error-log-file