Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Can’t install plugins – Installation failed: Could not create...

Discussion in 'Misc WordPress Requests' started by saintperez, Mar 19, 2018.

  1. saintperez

    Guest

    Reply To: Can’t install plugins – Installation failed: Could not create directory., by saintperez

    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
    [[email protected] 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
    [[email protected] ec2-user]#

    How do I assign my user as the identity for which php-fpm runs under?

    Reply To: Can’t install plugins – Installation failed: Could not create directory.
     
    #1

Share This Page

Monarch Social Sharing Plugin