Drupal is a powerful content management system (CMS) running on lamp. It can build blogs, forums, etc. without any additional modules. It also has a large number of modules that can give your site additional features such as ads, chat boxes, E-commerce, various multimedia tools, instant messaging, customer relationship management, friendly print pages, webcam, and so on.
Follow the instructions below to install Drupal in the Ubuntu 6.06 (Dapper Drake).
Installation
The old version of Drupal is still in the source, but it no longer supports updates. The latest version has more modules and themes. Also because the package is too old, installing the Drupal package replaces PHP4 with PHP5.
Similarly, Drupal in the source does not package any modules. Therefore, it is best to install the latest version from drupal.org, currently 4.7.2.
Install lamp
Install lamp with any method
Apache2 Php5-mysql libapache2-mod-php5 Mysql-server
Set MySQL root password (not system root password, mysql password)
Mysql-u Root
mysql> SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' YourPassword ');
If success will show:
Query OK, 0 rows Affected (0.00 sec)
Exit MySQL
Mysql> Q
Now you have a functional lamp and MySQL root password.
Get the latest Drupal
wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-4.7.2.tar.gz
Tar xvzf drupal-4.7.2.tar.gz
sudo mkdir/var/www/drupal
sudo mv drupal-4.7.2/* Drupal-4.7.2/.htaccess/var/www/drupal
Create a "files" subfolder in your Drupal installation folder. This folder is not required, but can be used to store and logo, virtual image and other site-related files.
sudo mkdir/var/www/drupal/files
sudo chown www-data:www-data/var/www/drupal/files
Drupal needs a database, user and password
You need to create a Drupal database and then ***oad to the "database schema into it." You can use phpMyAdmin or through the command line.
Mysqladmin-u root-p Create Drupal
Here "Drupal" is the MySQL database connected by Drupal. You can query it for anything.
Mysql-u root-p
Mysql> GRANT SELECT, INSERT, UPDATE, DELETE, create, DROP, INDEX, ALTER, create temporary TABLES, LOCK tables on drupal.* to ' yourusername ' @ ' localhost ' identified by ' YourPassword ';
Don't let Drupal access the database using MySQL's root user. The above command creates a user (not root) and its permissions to use "Drupal" data. You need to modify yourusername and YourPassword two items. If the command runs successfully, activate the new license.
mysql> FLUSH privileges;
Exit MySQL:
Mysql> Q
Populating the Database
Now load the database file into the database.
Mysql-u yourusername-p DatabaseName </var/www/drupal/database/database.4.1.mysql
then enter the password. For more information about Drupal's MySQL database, read the INSTALL.mysql.txt file in your Drupal folder