[Support request] Install guide for manual install/default permission issue

Home Forums Support [Support request] Install guide for manual install/default permission issue

Home Forums Support Install guide for manual install/default permission issue

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #634152
    Bryan

    I noticed the install guide assumed you will have FTP access to your server. As we only use ssh with key based auth, there’s no details on the website for this.

    Assuming you’re installing under /var/www/wordpress
    First, you need the download link from your account

    cd /var/www/wordpress/wp-content/plugins
    wget "downloadURL" -O GPreminum.zip 
    unzip GPreminum.zip
    # this will make a directory gp-premium, and the permissions are likely 777 and the wrong user. 
    # assuming your http server runs as www-data
    chown www-data:www-data gp-premium -R 
    cd gp-premium/
    # lets fix the perms on the files
    find . -type f -exec chmod 644 {} \;
    find . -type d -exec chmod 755 {} \;

    Now go an activate the plugin in wordpress.

    the default 777 permissions should really be fixed in the archive.

    #634375
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You shouldn’t need FTP access to install GP Premium.

    You can download gp-premium.zip to your computer, and leave it as a zip file.

    Then go to “Plugins > Add New > Upload” and update the zip file to your WP site.

    That’s all 🙂

    Let me know if you need more info.

    #634379
    Bryan

    After it uploads this is the next page that it goes to, where it’s asking me for FTP info.

    #634380
    Tom
    Lead Developer
    Lead Developer

    If you contact your hosting and tell them you’re experiencing this page, they should be able to fix the permissions on your server so it doesn’t happen.

    WordPress should be able to write/modify things on your server without FTP credentials.

    #634385
    Bryan

    It’s setup to be writable by apache, which runs as www-data

    root@RT:/var/www/wordpress/wp-content/plugins# ls -al
    total 24
    drwxr-xr-x  4 www-data www-data 4096 Jul 27 20:59 .
    drwxr-xr-x  5 www-data www-data 4096 Jul 27 20:42 ..
    drwxr-xr-x  4 www-data www-data 4096 Jul  5 12:06 akismet
    drwxr-xr-x 21 www-data www-data 4096 Mar 28 19:48 gp-premium
    -rw-r--r--  1 www-data www-data 2230 Mar 17 16:27 hello.php
    -rw-r--r--  1 www-data www-data   28 Jun  5  2014 index.php

    and the upload makes it in there too.

    
    root@RT:/var/www/wordpress/wp-content/uploads/2018/07# ls -al
    total 700
    drwxr-xr-x 2 www-data www-data   4096 Jul 27 21:01 .
    drwxr-xr-x 3 www-data www-data   4096 Jul 27 12:09 ..
    -rw-r--r-- 1 www-data www-data 706867 Jul 27 20:42 gp-premium-1.6.21.zip
    #634423
    Tom
    Lead Developer
    Lead Developer
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.