This is a small recap of some useful tools that you can use while developing drupal websites. In this cheat sheet we have put together commands for Drush, GIT, Features, patches and error reporting. We have also included recipes for installing a drupal site with drush in just a few commands and the version control routine in GNU/Linux.
In this tutorial we will go through each step needed to set up a Web server at home using an old computer, an Internet connection (with access to the configuration of your router) and some spare time. In the end of this tutorial you will have a server that displays web pages, serves files in a cloud, works with FTP, sends e-mail alerts, does automatic backup of data and, of course, that you can access from anywhere in the world.
VIM is a great text/code editor but not so user-friendly. Take some time to learn how to use it and it will seem much more friendlier then. On VIM you need to enter the ---INSERT-- mode to be able to edit your file like a regular text editor. To do this press the "i" key and you will see the 'insert' message at the bottom. Press Escape to exit the insert mode. Keep in mind that the commands below will not work if you are in the insert mode so you have to keep pressing "i" and "Esc" to get in and out of the insert mode. Now try some of the other commands:
These configurations are optional too, you don't have to do this if you just want to tinker with a server.
Automatically reboot after power failure
Servers should usually stay turned on all the time. In the event of a power failure you can configure your server to turn on as soon as the power is back. Of course, if you have a no-break that can keep your server running it's even better but even no-breaks can run out of battery.
Here starts the fun part. Once your server is up and running, it's time to install a website! If you already have a website just transfer the files to the folder /var/www/html using FTP and import your databases using phpMyAdmin. We've covered FTP and phpMyAdmin on the previous section, let me know in the comments if you have trouble doing this.