Now we are ready to install Drupal. Open the clone you named with the word Drupal.
Install Drupal
First, just to test things out:
- Open a web browser and go to ‘localhost’, you should see a success page
- Now, go to http://localhost/phpmyadmin/
- A new web page should open
- You will be asked for a username and password. The username is ‘root’ and the password you should know.
- Test completed.
Now install drupal. Go to the drupal.org and check to see the most current version. Type that into the following commands (in place of the 7.26):
Type the following into a terminal window:
- wget http://ftp.drupal.org/files/projects/drupal-7.26.tar.gz
- tar -xvzf drupal-7.26.tar.gz
- sudo mkdir /var/www/drupal
- sudo mv drupal-7.26/* drupal-7.26/.htaccess drupal-7.26/.gitignore /var/www/drupal
- sudo mkdir /var/www/drupal/sites/default/files
- sudo chown www-data:www-data /var/www/drupal/sites/default/files
- sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php
- sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php
- open as root: /etc/apache2/sites-enabled/
- edit /etc/apache2/sites-enabled/000-default.conf
- where it says
- ServerAdmin webmaster@localhost
DocumentRoot /var/www/html- Change that second part to
- DocumentRoot /var/www/drupal
Now for some sql database work:
- mysqladmin -u root -p create drupal
- mysql -u root -p
-
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
TEMPORARY TABLES, LOCK TABLES
ON drupal.*
TO 'adminuser'@'localhost' IDENTIFIED BY 'adminuser';
- [NOTE: ‘adminuser’@’localhost’ is probably more like ‘root’@’localhost’ and then IDENTIFIED BY ‘useyourpassword’]
- [ALSO NOTE: those stupid sinqle quote marks might be the wrong kind] fixed that
- FLUSH PRIVILEGES;
- \q
Now restart the server, get another file, and rename a couple of folders
- sudo service apache2 restart
- probably better now to reboot to make sure everythings okay
[End]
Now open a web browser and go to: http://localhost/install.php
The next step is to setup Drupal. But first make a clone and use the name Drupal setup