saintperez
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Upgrade 4.9.5 issueThank you Rajan, when you say everything, you mean everything under the wordpress folder? I would need to chown on that folder in linux in order to do that. My concern is would I need to set it back to what it is now for everything under that folder or are there different permissions in different folders that I would need to worry about. I’m self hosting on Amazon AWS Linux server on nginx.
I’ve done as you suggested and still have the same problem
I have created a new user with the following call and assigned it the owner of the wp-content directory.useradd -g nginx -d /var/www/html -s /sbin/nologin a2vuser
chown -R a2vuser /var/www/html/wordpress/wp-content
ls -lart /var/www/html/wordpress/wp-content
-rwxr-xr-x 1 a2vuser nginx 28 Jan 8 2012 index.php
drwxr-xr-x 3 a2vuser nginx 4096 Feb 16 20:51 uploads
drwxr-xr-x 3 a2vuser nginx 4096 Feb 16 20:52 cache
drwxr-xr-x 2 a2vuser nginx 4096 Mar 16 02:10 w3tc-config
drwxr-xr-x 6 a2vuser nginx 4096 Mar 16 02:11 themes
drwxr-xr-x 5 ec2-user nginx 4096 Mar 19 10:13 ..
-rwxr-xr-x 1 a2vuser nginx 0 Mar 19 10:36 debug.log
drwsr-xr-x 8 a2vuser nginx 4096 Mar 19 15:20 plugins
drwxr-xr-x 2 a2vuser nginx 4096 Mar 19 15:20 upgrade
-rw-r–r– 1 a2vuser nginx 1188 Mar 19 15:20 advanced-cache.php
drwxr-xr-x 8 a2vuser nginx 4096 Mar 19 15:20 .As per your original response I’ve checked PHP
[root@ip-172-30-0-119 ec2-user]# ps -ef |grep php
root 2487 1 0 Mar04 ? 00:00:41 php-fpm: master process (/etc/php-fpm.conf)
nginx 2488 2487 0 Mar04 ? 00:02:14 php-fpm: pool www
nginx 2489 2487 0 Mar04 ? 00:02:13 php-fpm: pool www
nginx 2490 2487 0 Mar04 ? 00:02:13 php-fpm: pool www
nginx 2491 2487 0 Mar04 ? 00:02:15 php-fpm: pool www
nginx 2492 2487 0 Mar04 ? 00:02:13 php-fpm: pool www
nginx 2589 2487 0 Mar04 ? 00:02:12 php-fpm: pool www
nginx 2793 2487 0 Mar04 ? 00:02:07 php-fpm: pool www
root 3707 3693 0 23:09 pts/0 00:00:00 grep –color=auto php
[root@ip-172-30-0-119 ec2-user]#How do I assign my user as the identity for which php-fpm runs under?
Ok figured it out chown to root for everything under wp-content
Please let me know if that’s a no no for security.
Thanks @sterndata for security reasons, which directories specifically? All the ones I listed or just plugins?
Forum: Fixing WordPress
In reply to: What version of WP am I on?Thanks that worked. I’m self hosting on Amazon AWS and new to WP so not familiar with wp-cli yet.
Thanks again.