wikipedia tells me: drupal is a free and open-source content-management framework written in PHP and distributed under the GNU General Public License. it is used as a back-end framework for at least 2.1% of all web sites worldwide ranging from personal blogs to corporate, political, and government sites.
let’s install it!
pre-requisites: a lamp server
downloading and extracting drupal
drupal 7 can be found here
there’s a drupal 8 coming
$ cd /var/www/html $ curl -O http://drupal.org/files/projects/drupal-7.39.tar.gz $ tar -xzvf drupal-7.39.tar.gz $ rm drupal-7.39.tar.gz
create a mysql database for the site
$ mysqladmin -u root -p create drupaldatabase $ mysql -u root -p mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES, CREATE TEMPORARY TABLES ON drupaldatabase.* TO root@localhost IDENTIFIED BY 'Password123'; mysql> FLUSH PRIVILEGES; mysql> exit
creating the settings.php file required by drupal
$ cp var/www/html/drupal-7.39/sites/default/default.settings.php var/www/html/drupal-7.39/sites/default/settings.php $ chmod 666 var/www/html/drupal-7.39/sites/default/settings.php $ chmod a+w var/www/html/drupal-7.39/sites/default
run the drupal installation script from a web browser
http://myserversipaddress/drupal-7.39/install.php
the default drupal admin login is
admin
admin
you should change the password.
back on the server, the install may have downloaded or created new files
$ chmod 644 var/www/html/drupal-7.39/sites/default/settings.php $ chmod 755 var/www/html/drupal-7.39/sites/default
and now you’re ready to drupal