The first is the installation of LNMP, this is very simple, directly according to the official program is good, Link: http://lnmp.org/install.html
Originally want to use Lnmpa, but considering I this small blog estimate also have no traffic or not so toss, in the principle of simple and easy to get up. Lnmpa Installation Link: http://lnmp.org/lnmpa.html
LNMP installed, the browser directly into the IP can be accessed, and then open the phpMyAdmin to create a WordPress database is good.
After the database creation OK is the WordPress installs, the installation need first through LNMP to create the virtual host, the creation process is also very simple, see http://lnmp.org/faq/lnmp-vhost-add-howto.html
Then download the wordpress installation package, and then extract the content into the directory just created, this process is not described, using a few commands:
1, wget
2, cp-r original directory/* target directory
You can then access the IP (or bound domain name) to start the installation.
Installed after the discovery of a variety of updates, there are WordPress itself also has plug-ins, and translation, now the problem, update plug-in prompts to enter the FTP information, update translation prompts success, but refresh also prompts update, update WordPress itself directly failed.
After various attempts Baidu, summed up the following two schemes, if they are using a VPS or server, or have the right to change the ownership of the site directory so 1 commands to complete most of the problems.
installation directory for Chown-r www/home/wwwroot/blog
After that, everything else is resolved except for the translation of the updated questions.
If you do not have permission to modify the directory, modify the wp-config.php file. Edit with VI or VIM and add the following at the end of the file:
Define ("Fs_method", "direct");
Define ("Fs_chmod_dir", 0777);
Define ("Fs_chmod_file", 0777);
You can resolve the issue of prompting for FTP information when updating.
The following fixes a problem that still prompts for updates after a successful translation update.
Modify the PHP configuration file, edit/usr/local/php/etc/php.ini this file, and then find "disable_functions=" this field to delete the following scandir.
Tip: Vim to find in the non-edit mode Press "/" and then enter the lookup field and then return.
Only one theme is displayed in the background.
This problem is mainly related to the Scandir function, the solution is relatively simple, modify
/usr/local/php/etc/php.ini. Can be modified by the VI command, or download to the local to modify, to find the disable_functions behind the Scandir delete this function. Then restart PHP.
PHP.ini Path/usr/local/php/etc/php.ini
Reboot command:/ETC/INIT.D/PHP-FPM restart
2, background installation plug-ins or topics are prompted to enter the FTP information
This problem occurs because of file directory permissions issues. Solution, SSH Login VPS, execute the following two commands can be
Chmod-r 755/home/wwwroot
Chown-r Www/home/wwwroot
PS: If your site's installation directory is not/home/wwwroot, please replace it with your installation directory can be
WordPress pseudo Static Rule error
Is there a situation like the one above? The solution is simple, only in WordPress pseudo static configuration file to add a judgment, if the URL reached the page directory, and the last character of the URL is not a slash "/", then 301 jump to the end of the site to add a slash after the URL. The code is:
if (-D $request _filename) {rewrite ^/(. *) ([^/]) $/$1$2/permanent; The final wordpress.conf should be:
Location/{if (D-$request _filename) {rewrite ^/(. *) ([^/]) $/$1$2/permanent;} if (-F $request _filename/index.html) {RE Write (. *) $1/index.html break; } if (f $request _filename/index.php) {rewrite (. *) $1/index.php} if (!-f $request _filename) {rewrite (. *)/index.php;} }