Zip files via SSH and copy it to another folder or server

If you files and directories in your server via SSH, just type the command below: zip -r zipfilename.zip folder Just replace the folder with the folder name you are targetting or use * if your currently in the folder. If you want to quickly zip all files and folders individually in your server via SSH,… Continue reading Zip files via SSH and copy it to another folder or server

Whitelist an IP address in your server via SSH

One day, one of my blog readers can’t access my site. I wondered why and how come she can’t access it but I can. I also asked other readers, and they can. If this happens to you, just like what happened to me, maybe that specific user was blacklisted by your host. In order for… Continue reading Whitelist an IP address in your server via SSH

Change your PHP handler from mod_php (DSO) to suPHP

Finally, I decided to change my server’s PHP handler to suPHP from mod_php. It’s more secure and I can update my plugins and WordPress files automatically without annoying permission errors. Here’s what my php config looks like after the update: php.conf updated to: # This file was automatically generated by the Cpanel PHP Configuration system… Continue reading Change your PHP handler from mod_php (DSO) to suPHP

CHMOD folders, sub-folders, sub-sub-folders, and so on

If you recently changed your PHP handler to suPHP from mod_php or DSO, then you need to CHMOD all your folders, its sub-folders, sub-sub-folders, and so on to 744 to avoid any internal server errors, specifically internal server 500 errors. And also, you need to CHMOD all of your files to 644. In order to… Continue reading CHMOD folders, sub-folders, sub-sub-folders, and so on