I plan to first import the data to the local machine .... So I started to make a fuss .. I thought it would be easy to install lnmp0.4 and it would be worth the trouble. lnmp0.4 does not support Ubuntu very well. After installation, I found that php was not compiled at all ...... As a result, I started to make some preparations. I found some documents that were completely installed with one click. The error 502 was the same as that on the official website. It turns out that PHP is not installed properly. The following general operations are available for new users. Download PHPwgethttp: // www.php.net
I plan to first import the data to the local machine .... So I started to make a fuss .. I thought it would be easy to install lnmp0.4 and it would be worth the trouble. lnmp0.4 does not support Ubuntu very well. After installation, I found that php was not compiled at all ...... So I started to get involved. I found some documents.
The one-click installation is complete. The error 502 is displayed as prompted on the official website.
It turns out that PHP is not installed properly. The following general operations are available for new users.
Download
PHP wget http://www.php.net/get/php-5.2.13.tar.gz/from/this/mirror
Download FCGI
Wget http://php-fpm.org/downloads/php-5.2.13-fpm-0.5.13.diff.gz
(If you download other PHP versions, such as PHP5.3.X, FPM must be the same version; otherwise, an error occurs)
(Http://php-fpm.org/downloads/ FPM full series Version)
Decompress:
Tar zxvf php-5.2.13.tar.gz
Install FPM on PHP:
Gzip-cd php-5.2.13-fpm-0.5.13.diff.gz | patch-d php-5.2.13-p1
Enter the directory:
Cd php-5.2.13/
Load parameters
. /Configure-prefix =/usr/local/php-with-config-file-path =/usr/local/php/etc-with-mysql =/usr/local/mysql- with-mysqli =/usr/local/mysql/bin/mysql_config-with-iconv-dir =/usr/local-with-freetype-dir-with-jpeg-dir-- png-dir-with-zlib-with-libxml-dir =/usr-enable-xml-disable-rpath-enable-discard-path-enable-safe-mode-enable-bcmath -enable-shmop-enable-sysvsem-enable-inline-optimization-with-curl-with-curlwrappers-enable-mbregex-enable-fastcgi-enable-fpm-enable-force-cgi -redirect-enable-mbstring-with-mcrypt-with-gd-enable-gd-native-ttf-with-openssl-with-mhash-enable-pcntl-enable-sockets- -ldap-with-ldap-sasl-with-xmlrpc-enable-zip-enable-soap
If the directory name has not been changed, the test passes theoretically.
Compile:
Make
Make install
Complete.
Restart lnmp:
Sudo/root/lnmp restart
Display a pile of text:
================================
......
Starting MySQL
.*
Shutting down php_fpm. done
Starting php_fpm done
==================================
It indicates that P is successfully installed. Open the browser.
Http: // localhost/phpinfo. php
PHP Version 5.2.13
Php solved the problem, and then phpmyadmin encountered another problem. Through 127.0.0.1/phpmyadmin/, you cannot log on to mysql. The prompt #2002 cannot connect to the mysql server, after searching online for half a day, I finally found a solution.
In config. inc. php
$ Cfg ['servers'] [$ I] ['host'] = 'localhost ';
Change to $ cfg ['servers'] [$ I] ['host'] = '2017. 0.0.1 ′;
Add
$ Cfg ['servers'] [$ I] ['hide _ db'] = 'information _ scheme'; // The information_schema database is invisible after login.
Finally, the world is better ....