FTP permissions on Wordpress Bitnami AWS install? - wordpress

I have setup a Wordpress site using Bitnami WordPress 4.8.1-0 on AWS (EC2).
I am now migrating a site from Bluehost to the AWS EC2 instance.
I am able to connect to the site via FTP and SSH. I uploaded my plugins and themes with my FTP client, no issues. The site is running with the theme and plugins from the old site. Great.
Now I am trying to upload the media files from /wp-content/uploads/2017/10on the old server but apparently I don't have permission to.
If I do a get-info on the plugins or themes folder, I see it's bitnami:daemon
but Uploads and all its subfolders are daemon:daemon, although it does look like I have write access:
I assume for security, but how can I upload all the media files? I'd hate to have to re-add them all via the admin UI.

You can try accessing via SSH and modify temporarily the permissions:
sudo chown bitnami:daemon -R /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads
Then we advise you to restore the permissions.

Related

Install WordPress themes in a Google cloud instance

I'm using a Google Cloud instance and I have set up Apache2, MySQL and PHP (LAMP).
I then downloaded and installed WordPress.
However I cannot install themes and plugins via wp-admin. WordPress asks me for an FTP user, which I do not have.
Do I really need this?
I changed the permissions to 755 and changed the owner of the file and the wp-content folder
For some reason it had not worked before, maybe cache.

Not able to add plugins

We have a blog setup on WordPress and our server is a linode instance which we connect through ssh.
Now when I am trying to add yoast plugin it is asking me for FTP credentials and when I am entering them still it is not connecting.
Please advise on this as we are not able to add plugins to our site.
This is a permissions issue with your server, run the following command in your SSH terminal:
sudo chown -R www-data:www-data /var/www
This will grant your WordPress sites the permanent ability to add/update plugins and themes.
It might be Permission issue. Try these simple steps:
1: Open Filezilla and after entering FTP Access, connect to directory
where your wordpress files exist.
Now right click on the Parent Folder of your wordpress installation and click on "Change Permission" Now enable Read/Write/Execute.
Now try again with Yoast Plugin. It should Work.
https://codex.wordpress.org/Changing_File_Permissions
Let us know if it worked.

No Write Access on Wordpress Folder permissions for Bitnami running on AWS

I recently migrated my Wordpress sites to Bitnami on Amazon Web Services. Everything it up and running from the user's perspective, but I'm struggling with a minor permission issue with the themes folder. When I download (or upload my own) theme, it doesn't have write permissions. Bitnami has this as the default for security purposes but when I had my stuff hosted at GoDaddy, this issue never came up.
The odd time I like to go and edit a theme file directly from Wordpress. I also have a File Manager plugin installed that I'll sometimes use instead of FTP to upload theme files.
I can manually change the permissions, either in FileZilla or using SSH but my curiosity and stubbornness would like to have write permission by default on any themes, new or existing.
Do I need to edit a config file somewhere to make this happen?
You need to connect to your server via SSH and execute the commands below described in order to assign correct permissions definitively:
sudo chmod -R g+w /opt/bitnami/apps/wordpress/htdocs/wp-content
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-content
Then check again if your themes works as you expected.
You can read our documentation to clarify all this situation: https://docs.bitnami.com/general/apps/wordpress/

Wordpress upload image error

I've built a wordpress website on my mamp localhost, and subsequently uploaded it to a web hosting service.
Since I've uploaded it I cannot upload images via the wordpress 'add media' section. I temporarily change the 'uploads' permissions to 777 and it solved the problem.
I know 777 isn't best practise so I changed it back to 755 and the error has reoccurred.
Is this something to do with the admin user and password I originally set up for wordpress on my localhost versus the ftp user which I created and used to upload the site to the web hosting service?
Does the ftp user own the files - therefore stopping the wordpress admin user from uploading files?
Thanks
Files should be 644, directories should be 755. This is an owner:group permissions issue. Read more in Hardening WordPress.
The real issue is an ownership issue. You're going to need to chown -R username:groupname to your Apache user/group, so that WordPress can write to these directories.
chown -R username:groupname your apache user/group fixed the problem.

Wordpress permission problems in centOS

I've installed wordpress on Centos (apache) and i was having problems to let wordpress automatically perform certain tasks like updating plugins and making changing to theme files in editor. I studied about permissions in wordpress codex and i made changes to the files permission in my /var/www/html directory. I set all the directories to 0775 and all the files for 0664 but the thing is still not working.
I think that it has something to do with the users. I think that wordpress is not set as the appropriate users to do those tasks. Please tell me what to do.
It sounds like it's an issue with ownership rather than permissions.
Login using SSH.
Run the following command:
sudo chown apache:apache /var/www/html
This changes the ownership of your web root to the web server allowing WordPress to write files (perform automatic updates etc).

Resources