Creating an FTP User that can only edit one folder - wordpress

To backup a WordPress site, I am using a plugin that uses an FTP user to backup the site. For security reasons, I don't want to let this account do much more than just downloading new and deleting old backups from a specific folder. Is this possible?

https://unix.stackexchange.com/questions/85156/restrict-ftp-user-to-a-directory
I would restrict the FTP user to the backup directory where ever that is.

Related

Cpanel wordpress file directory hide for client

Good day, im a freelance developer and quick question is how do i hide or disable a client from seeing wp content wp config files of WordPress, they supplied me with cPanel logins and have sensitive files i don't want touched or viewed. Thanks
First of all, very important to know you that WordPress Administrator can able to see the wp_content, wp_config files and so on (if you have no restriction from your host). Why not there are some plugins (ex: Wp File Manager) to direct access on this kind of files.
To prevent it you can change the role Administrator to Editor or you can restricted the file permission from server.
Thank you

Need to transfer site currently on Siteground

my client wants to keep using their hosting that they currently have their site on, where I was given cpanel and ftp logins. I made the Wordpress site on a temporary domain on Siteground. How do I go about transferring the site to their hosting?
there are many plugins to transfer your website and database to different hosting. The good one also rename all URL's in your database to ones of your new hosting.
I suppose the easiest one is Akeeba backup for Wordpress Akeeba Backup for WordPress
download the plugin, install it in your Wordpress and activate it
In your Wordpress menu you will have Akeeba backup entry click it and create new backup (for bigger websites I recommend split the backup file into smaller parts in plugin settings)
upload all parts of your newly created backup (you will find it in wp-content/plugins/akeebabackupwp/app/backups/) into the new server root through FTP
download Akeeba Kickstart Kickstart (Standalone) (this files will uncompress your backup on the server) so copy both files in downloaded zip into server root
visit in your browser your new hosting domain and add /kickstart.php (example.com/kickstart.php) follow onscreen instruction to complete recovery
in case you are stuck here documentation for Akeeba Backup Akeeba Backup for WordPress
and for akeeba-kickstart

How to Backup old website data to new server

How can i update old backup data of my website to new server. which tools should i used to upload backup or is there manual to do it?
Many way to move old backup to new server but i prefer All in one migration plugin.
https://wordpress.org/plugins/all-in-one-wp-migration/
Firstly, please do more research before asking a question. This question has been asked probably over a million times before.
Official guide: https://wordpress.org/support/article/moving-wordpress/
Guide: https://wpengine.com/resources/migrate-wordpress-site/
Guide: https://www.wpexplorer.com/migrating-wordpress-website/
Guide: https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/
I can list the links forever...
Here is how I would do it:
Log in to FTP and download the root folder with all website files (the folder is usually called html or htdocs).
Login to phpMyAdmin (if you don't have phpMyAdmin you can use MySQLWorkbench) and export the database.
2.1. If there are multiple databases, you will have to check wp-config.php define( 'DB_NAME', 'DATABASE_NAME' );.
Now do the same with new hosting just in reverse.
Log in to FTP and upload your website files to root directory.
Log in to phpMyAdmin and create a new database and then import the exported database. Make sure to create a user with correct permissions for that database.
(optional: if your domain changes as well make sure to change it in wp_options table)
Edit wp-config.php - enter new details for the db name, db user and user password.
DONE
You can also use a plugin for that but most of these type of plugins are paid or have limits on how much you can export etc.

Can uploading public_html folder to another hosting service provider not be enough if the database wasn't backed up?

I had downloaded the whole public_html folder of wordpress of my website before moving to a new hosting provider. Meanwhile the old hosting is no longer available now. I was not aware that for the database one needs separate backup.
So does it mean that I can not have the full old website back if I only backedup the public_html folder?
Also can I still get something useful out of the public_html folder by uploading it to the new hosting or do I have to have a full start from scratch?
Wordpress stores all the text of your posts in the database, which also includes metadata about theme and plugin settings, etc. Theme files, plugin files, post images and other uploaded files are stored in the wp-content folder so you are good. You should backup your database before you migrate.
That said, you might be able to retrieve the text from the Internet Archive (https://archive.org/) if you are lucky. But that means you have to somehow manually get the posts back to the new database.
All your WordPress pages are stored in the database. If your database is gone or absent, I recommend you start all over. In your current situation, you can recover your theme.
It is also possible that the theme does not function properly if some of its setting where registered in the database.

Server ftp write errors

We have a linux based server through which we offer a hosting service. We have a problem with WordPress and other platforms. each wordpress site asks FTP accounts every time you install WordPress, themes, add ons or to try to upgrade it .
We need to get write access to the wordpress , joomla , drupal , etc. platforms automatically when its installed to customers server space via softaculus .
I have no experience of the hosting service, im just make websites, and I've tried to make the ftp accounts wp -config file, but it does not fix the other customer sites and when added to the wp -config file, it is not the best solution (Still asks for a password when install theme, add ons or update anything)
Sorry for bad english. can anyone help me to get this problem fixed?
We need write acces for: Joomla, Wordpress, Drupal, Magent ETC bases. We have c-panel acces for every customer and softaculus installer for wordpress etc platforms
When you get the error message, web server needs to get write access to the WordPress files. So you can add write access to the files, I think the problem will resolved.
If you couldn't add write access to the files, you would contact your hosting service center.
It's most likely the permissions problems here.
You need to be sure that your webserver can read all files and folders in the web root folder and you need to make every user the owner of each folder and files.
Using cPanel it should be done automatically when you create FTP user and providing it's home directory. If you have a mess with permissions already you may need to edit them manually. You can try to set 644 permission for all files and folders and then change owner to the actual user.
Look here for more information about file permissions on Linux, it should help.
Its been fixed, I set on apache write access different so its now working probably!
Link for details:
https://wordpress.org/support/topic/folder-permission-on-linux-ubuntu

Resources