- This topic has 5 replies, 2 voices, and was last updated 5 years, 8 months ago by Tom.
-
AuthorPosts
-
July 27, 2018 at 9:26 am #634152Bryan
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 accountcd /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.
July 27, 2018 at 5:36 pm #634375TomLead DeveloperLead DeveloperHi 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.
July 27, 2018 at 5:45 pm #634379BryanAfter it uploads this is the next page that it goes to, where it’s asking me for FTP info.
July 27, 2018 at 5:50 pm #634380TomLead DeveloperLead DeveloperIf 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.
July 27, 2018 at 6:04 pm #634385BryanIt’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
July 27, 2018 at 8:15 pm #634423TomLead DeveloperLead DeveloperHmm, can you give this a shot?: https://codex.wordpress.org/Editing_wp-config.php#Override_of_default_file_permissions
-
AuthorPosts
- You must be logged in to reply to this topic.