How to install Drupal 7.10
Continuing our series on Content Management Systems, we are looking at how to install Drupal on our Amazon EC2 Red Hat Linux Enterprise 6.2 server. WordPress is really for blogging while Drupal is for managing large amounts of content. It is pretty simple to install.
Installing Drupal 7.10
$ cd /var/www/html
$ wget http://ftp.drupal.org/files/projects/drupal-7.10.tar.gz
$ tar --strip-components=1 -zxvf *.tar.gz
Now create an empty MySQL Database
$ mysql -u root -p
Enter password: [type your password]
myqsl> create database drupal;
mysql> grant all privileges on drupal.* to 'guest'@'localhost' identified by 'guest' with grant option;
mysql> use mysql;
mysql> update user set password = PASSWORD('guest') where user='guest';
mysql> quit;
Type in the IP-Address of your Amazon EWS Server in your browser.
Follow the onscreen instructions, Pressing “Save and Continue” when prompted.
You will get a message “The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem.” For security reasons, we don’t want to open our permissions wide, so we it is time to go back to the command line and enter some commands:
$ mkdir sites/default/files
$ chmod 777 sites/default/settings.php
$ cp ./sites/default/default.settings.php ./sites/default/settings.php
$ chmod 777 sites/default/files
Go back to the browser and continue the installation. When prompted for the database information:
database: drupal
user: guest
password: guest
You will have to go to Admin -> Config -> Clean URLs and turn Clean URL’s on, but that won’t work without the changes to the httpd.conf. Change the folder permission for sites/default/files back to 755 and the file permission for ./sites/default/settings.php to 644. Continue to configure the site per the instructions on the web browswer.
Clean URL’s
To enable clean URL’s, change the settings in the /etc/httpd/conf/httpd.conf to:
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
CUFON
Get CUFON fonts here.