I've deployed a new LAMP server through DigitalOcean and successfully deployed WordPress with minimal customizations or configurations beyond installing Virtualmin/Webmin running this website: theportlandcompany.com
The problem is that (as many users experience) WordPress cannot upload or update files such as Plugins and Themes or htaccess.
FCGI is enabled, the user and group of the files and folders is the account user. The directories /files have 755 / 644. I even tried changing the permissions to 775 and group to www-data without success.
Changing the owner from anything but the account owner (such as apache or www-data) doesn't seem to be an option because this server is, ultimately, going to host multiple private and separate websites for a few customers.a
I'm at a lost as to how to resolve the issue, can anyone advise?
Tags: virtualmin, wordpress, upload, uploading, update, updating, plugins, themes, permissions, fcgi, mod_php, chmod, chown, chgrp, write, group writeable, www-data, apache, php
First a question, when you say you "deployed a LAMP server", did you use the Virtualmin installer script? It's highly recommended to do that on a minimal and clean grade-A supported OS as per Virtualmin's download page.
Since you have FCGI enabled (which is good), the owner of the directories where Wordpress needs to write files needs to be the virtual server owner user, since the PHP scripts will run as that user, and permissions to that (and all parent directories starting at /home!) need to allow write operations to it. Since Apache is usually added to the virtual server owner group, the group owner of the directory should be the server owner group, and the group needs read access to Apache can read the folder if required (for non-PHP access).
If that doesn't help, can you elaborate the problem? What directories/files does Wordpress try to write, what errors do you get, does it really run as the virtual server owner user (verify the
ps aux
output for the fcgi wrapper process)?Greetings,
Kindly appreciate any help on this issue.
I installed Virtualmin with installer script. I installed on a minimal and clean grade-A supported OS . My OS is Centos7.2. I also did the same tests with Centos 6.9. The FCGI enabled as well. The Wordpress installed under /home/domainname/public_html. The owner of the directories where Wordpress needs to write files IS the virtual server owner user, all parent directories starting at /home. Is the same user. The owner of the domain. The permissions set to 755 on all the files of the domain home directory.
Here is the output:
[root@srv public_html]# pwd /home/example/public_html
[root@srv public_html]# ls -lah total 208K drwxr-xr-x 6 example example 4.0K Mar 12 15:51 . drwxr-xr-x 11 example example 4.0K Mar 12 15:38 .. -rwxr-xr-x 1 example example 35 Mar 12 15:38 .htaccess -rwxr-xr-x 1 example example 418 Mar 12 15:37 index.php -rwxr-xr-x 1 example example 20K Mar 12 15:50 license.txt -rwxr-xr-x 1 example example 7.3K Mar 12 15:50 readme.html drwxr-xr-x 2 example example 4.0K Mar 12 15:36 stats -rwxr-xr-x 1 example example 5.4K Mar 12 15:37 wp-activate.php drwxr-xr-x 9 example example 4.0K Mar 12 15:37 wp-admin -rwxr-xr-x 1 example example 364 Mar 12 15:37 wp-blog-header.php -rwxr-xr-x 1 example example 1.6K Mar 12 15:37 wp-comments-post.php -rwxr-xr-x 1 example example 3.1K Mar 12 15:37 wp-config.php -rwxr-xr-x 1 example example 2.8K Mar 12 15:37 wp-config-sample.php drwxr-xr-x 6 example example 4.0K Mar 12 15:51 wp-content -rwxr-xr-x 1 example example 3.6K Mar 12 15:37 wp-cron.php drwxr-xr-x 18 example example 12K Mar 12 15:37 wp-includes -rwxr-xr-x 1 example example 2.4K Mar 12 15:37 wp-links-opml.php -rwxr-xr-x 1 example example 3.3K Mar 12 15:37 wp-load.php -rwxr-xr-x 1 example example 36K Mar 12 15:37 wp-login.php -rwxr-xr-x 1 example example 7.9K Mar 12 15:37 wp-mail.php -rwxr-xr-x 1 example example 16K Mar 12 15:37 wp-settings.php -rwxr-xr-x 1 example example 30K Mar 12 15:37 wp-signup.php -rwxr-xr-x 1 example example 4.6K Mar 12 15:37 wp-trackback.php -rwxr-xr-x 1 example example 3.0K Mar 12 15:37 xmlrpc.php
I'm not able to publish the website from wordpress. Error message:
Looks like something’s gone wrong. Wait a couple seconds, and then try again.
Also I'm not able to upload any image on the site.
Here is the error message:
HTTP error.
Please share some light on this.
Alexei Neboga
Greetings,
Kindly appreciate any help on this issue.
I installed Virtualmin with installer script.
I installed on a minimal and clean grade-A supported OS .
My OS is Centos7.2. I also did the same tests with Centos 6.9.
The FCGI enabled as well.
The Wordpress installed under /home/domainname/public_html.
The owner of the directories where Wordpress needs to write files IS the virtual server owner user, all parent directories starting at /home. Is the same user.
The owner of the domain. T
he permissions set to 755 on all the files of the domain home directory.
Here is the output:
[root@srv public_html]# pwd
/home/example/public_html
[root@srv public_html]# ls -lah
total 208K
drwxr-xr-x 6 example example 4.0K Mar 12 15:51 .
drwxr-xr-x 11 example example 4.0K Mar 12 15:38 ..
-rwxr-xr-x 1 example example 35 Mar 12 15:38 .htaccess
-rwxr-xr-x 1 example example 418 Mar 12 15:37 index.php
-rwxr-xr-x 1 example example 20K Mar 12 15:50 license.txt
-rwxr-xr-x 1 example example 7.3K Mar 12 15:50 readme.html
drwxr-xr-x 2 example example 4.0K Mar 12 15:36 stats
-rwxr-xr-x 1 example example 5.4K Mar 12 15:37 wp-activate.php
drwxr-xr-x 9 example example 4.0K Mar 12 15:37 wp-admin
-rwxr-xr-x 1 example example 364 Mar 12 15:37 wp-blog-header.php
-rwxr-xr-x 1 example example 1.6K Mar 12 15:37 wp-comments-post.php
-rwxr-xr-x 1 example example 3.1K Mar 12 15:37 wp-config.php
-rwxr-xr-x 1 example example 2.8K Mar 12 15:37 wp-config-sample.php
drwxr-xr-x 6 example example 4.0K Mar 12 15:51 wp-content
-rwxr-xr-x 1 example example 3.6K Mar 12 15:37 wp-cron.php
drwxr-xr-x 18 example example 12K Mar 12 15:37 wp-includes
-rwxr-xr-x 1 example example 2.4K Mar 12 15:37 wp-links-opml.php
-rwxr-xr-x 1 example example 3.3K Mar 12 15:37 wp-load.php
-rwxr-xr-x 1 example example 36K Mar 12 15:37 wp-login.php
-rwxr-xr-x 1 example example 7.9K Mar 12 15:37 wp-mail.php
-rwxr-xr-x 1 example example 16K Mar 12 15:37 wp-settings.php
-rwxr-xr-x 1 example example 30K Mar 12 15:37 wp-signup.php
-rwxr-xr-x 1 example example 4.6K Mar 12 15:37 wp-trackback.php
-rwxr-xr-x 1 example example 3.0K Mar 12 15:37 xmlrpc.php
I'm not able to publish the website from wordpress. Error message:
Looks like something’s gone wrong. Wait a couple seconds, and then try again.
Also I'm not able to upload any image on the site.
Here is the error message:
HTTP error.
Please share some light on this.
This is for better view.
Alexei Neboga