Fedora 12 and Drupal 6

Drupal 6 appears to be well supported on Fedora 12. At the last meeting, I had mentioned the project articles in the March 2010 issue of LinuxFormat where installing Drupal 6 was featured as a "10 minute" project. Those instructions had worked well but could use some clarification which I have detailed below in a step-by-step of the process. When I installed Drupal 6 prior to the meeting, the current release was 6.15 but at the meeting 6.16 had been released so Drupal was issuing a security warning that a security update was needed. I updated Fedora 12 yesterday and it automatically installed the 6.16 updates and only required that I run update.php from inside Drupal, after putting it in maintenance mode, nice, and everything seems to work. If you do a fresh install of Drupal from the Fedora Repositories using Yum, you will get the latest 6.16 release, very nice. Also, at the meeting, I discussed the importance of configuring Firewall on Fedora 12 as most ports are blocked by default and that includes http/https. Here are the steps to be followed which somewhat mirror what is in LinuxFormat March 2010 issue. On the two vi commands, you are simply uncommenting the stanzes where you enable local and external access to Drupal. All these command were performed as root.

yum install drupal
ln -s /usr/share/drupal /var/www/html/drupal
[root@localhost drupal]# vi /etc/httpd/conf.d/drupal.conf
[root@localhost drupal]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
cd /etc/drupal
[root@localhost drupal]# chmod 777 default
[root@localhost drupal]# cp default/default.settings.php default/settings.php
[root@localhost drupal]# chmod 666 default/default.settings.php default/settings.php
[root@localhost drupal]# chmod -R 777 /var/www/html/drupal
[root@localhost drupal]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.44 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE drupal;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER 'dp_user'@'localhost' IDENTIFIED BY 'mypassword';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON drupal.* TO dp_user@localhost IDENTIFIED BY 'mypassword';
Query OK, 0 rows affected (0.08 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> EXIT;
Bye

(Run the installation script from the browser http://localhost/drupal/install.php)

[root@localhost drupal]# pwd
/etc/drupal
[root@localhost drupal]# chmod 755 default
[root@localhost drupal]# chmod 644 default/default.settings.php default/settings.php
[root@localhost drupal]# vi /etc/httpd/conf.d/drupal.conf
[root@localhost drupal]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost drupal]#

Once done, you can configure Drupal 6 to your preferences and use it "live".

Powered by Drupal - Design by artinet