VPS Install WordPress Encounter problems (LNMP)

Source: Internet
Author: User
Tags ftp login vps install wordpress

1, to perform the requested operation, WordPress needs to access your Web server permissions. Please enter your FTP login xxxx perfect solution

Because the permissions of the newly uploaded plugins in WordPress are WWW users, not root or other users, and then you need to unzip the plugin compression package to install, but do not have its use rights, so there is "WordPress needs to access your Web server Permissions" issue.

Workaround:

If you do not compile the LNMP environment, then the root directory of the site will be/home/wwwroot/, then the WordPress extracted to this directory, the execution

chown -R www/home/wwwroot/chmod775 /home/wwwroot/

2, WordPress only display a default theme

After you install WordPress, you are ready to change a theme for your blog, but only one theme is displayed in the background and no other topics are displayed.

Reason: PHP.ini prohibits the Scandir function.
Since I am installing the LNMP package, which disables some of the dangerous functions: "PassThru, exec, System, chroot, Scandir, Chgrp, Chown, Shell_exec, Proc_open, proc_get_ Status, Ini_alter, Ini_alter, Ini_restore, DL, Pfsockopen ", and the Scandir function is also in this column, so the solution to this problem can only be to remove the scandir from the disabled function.

Vim/usr/local/php/etc/php.ini

Then search for Scandir and delete the restart service

/scandir/etc/init.d/php-fpm Restart


We can modify the php.ini file under/usr/local/php/etc by logging in to WinSCP or putty, and then restart the PHP process "/etc/init.d/php-fpm restart".

VPS Install WordPress Encounter problems (LNMP)

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.