sábado, 8 de marzo de 2014

Upgrade WordPress automatically without FTP

First step after activation, upgrade the huge number of blogs I have, a process that can take me all day quietly. Long time that I have dedicated server, not using FastCGI as the majority of the shared accommodation, you are destined to update via FTP and for some reason in all the hostings I have had always the automatic update of WordPress and plugins by FTP have been very slow and a pretty big nightmare.

Since most of my blogs need large updates (WordPress and many plugins), I had to find a solution to make this more quickly, and the solution is simple, give rights to the server to make by himself, getting faster update 92378972903,5% (is almost instantaneous). Let's go for it

Connect via SSH to the server, I use Putty for centuries, works perfect and it's free.

The next thing is to see that apache user is running things in our server, the easiest is to make a top and look at the user who is running processes, normally would be nobody, www or www-data.

httpduser 500x82 Actualizar WordPress automáticamente sin FTP

In this case it is clear that nobody is running httpd.

The following is to give execute permissions to the folder where you will find our blogs. By security after making this change is highly recommended to replace the previous user, we will do a ls - l/home to see who is the current user who has privilege in the folders. Let's assume that it is usuariofalso and the folder is /home/usuariofalso.

The following would be run the following command: chown - R nobody:nobody /home/usuariofalso

If you do a ls - l home again, you're going to realize that right now is appears nobody instead of usuarioafalso in the assigned folder. Once done, we can enter all the blogs that are within this folder (unless you have many users, will all be) and automatically update all what you need very quickly.

The end! Actually, you can leave it at that and you go to bed, but for safety issues I would change the permissions so that usuariofalso has execution rights and not the server: for this carry out this command: chown - R usuariofalso:usuariofalso /home/usuariofalso

PS: If you have no idea of nothing better not touch it, I am not responsible of your shit ;)


View the original article here

No hay comentarios:

Publicar un comentario