HOW TO INSTALL DRUPAL ON UBUNTU (LOCALE) – HOW TO INSTALL DRUPAL ON UBUNTU INSTANCE ON AWS INSTANCE

Instructions

1.Install LAMP (if you are not aware of lamp then read my earlier post)

2.Type the following commands in Ubuntu

$ sudo a2enmod rewrite

$ sudo /etc/init.d/apache2 restart

3.

GET DRUPAL – DOWNLOAD DRUPAL 7 FROM THE DEVELOPMENT RELEASE SECTION AT AND HTTP://DRUPAL.ORG/PROJECT/DRUPAL

On aws go to /var/www debian or ubuntu

DOWNLOAD AND INSTALL DRUPAL

$ wget http://ftp.drupal.org/files/projects/drupal-7.7.tar.gz

http://ftp.drupal.org/files/projects/commerce_kickstart-7.x-2.0-core.tar.gz

sudo wget http://ftp.drupal.org/files/projects/commerce_kickstart-7.x-2.0-beta1-core.tar.gz

wget http://ftp.drupal.org/files/projects/drupal-7.7.tar.gz

“UNTAR” THE PACKAGE – EXTRACT THE FOLDER AND RENAME THE EXTRACTED FOLDER TO DRUPAL7:

sudo tar xvzf commerce_kickstart-7.x-2.0-beta1-core.tar.gz

$ tar -xvzf drupal-7.7.tar.gz

5. CREATE INSTALLATION DIRECTORY

$ sudo mkdir /var/www/drupal sudo mkdir /var/www/shop

6. MOVE THE FOLDER TO AN APPROPRIATE PLACE ON YOUR WEBSERVER, SUCH AS UNDER /VAR/WWW/

$ sudo mv drupal-7.7/* drupal-7.7/.htaccess /var/www/drupal

sudo mv commerce_kickstart-7.x-2.0-beta1/* commerce_kickstart-7.x-2.0-beta1/.htaccess /var/www/mkt

sudo mv commerce_kickstart-7.x-2.0-beta1/* commerce_kickstart-7.x-2.0-beta1/.htaccess /var/www/mkt

sudo mv commerce_kickstart-7.x-2.0-beta1/* commerce_kickstart-7.x-2.0-beta1/.htaccess /var/www/shop/

7. CREATE SERVICE FILES DIRECTORY FOR INSTALLATION

$ sudo mkdir /var/www/drupal/sites/default/files

sudo mkdir /var/www/mkt/sites/default/files

sudo mkdir /var/www/shop/sites/default/files

8. CREATE A FRESH SETTINGS FILE FOR YOUR NEW DRUPAL 7 SITE. YOU SHOULD USE THE SUPPLIED SETTINGS FILE AS A BASIS, EG:

cp sites/default/default.settings.php sites/default/settings.php

IN QUESTO CASO, NELLA CARTELLA D´INSTALLAZIONE SHOP:

sudo cp /var/www/SHOP/sites/default/default.settings.php /var/www/SHOP/sites/default/settings.php

sudo cp /var/www/shop/sites/default/default.settings.php /var/www/shop/sites/default/settings.php

$ sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php

sudo cp /var/www/shop/sites/default/default.settings.php /var/www/shop/sites/default/settings.php

AS YOU PROCEED THROUGH THE WIZARD, THE INSTALLER MAY ENCOUNTER ISSUES CREATING CERTAIN DIRECTORIES FOR DRUPAL ON THE FILE SYSTEM. IF SO, ENSURE THEN DO THE FOLLOWING
CD TO THE ROOT OF YOUR DRUPAL7 DIRECTORY

A.

mkdir sites/default/files

( sudo mkdir /var/www/shop/sites/default/files )

sudo mkdir /var/www/shop/sites/default/files

mkdir -p sites/default/private/files

( sudo mkdir -p /var/www/shop/sites/default/private/files )

B.

mkdir sites/default/private/temp

( sudo mkdir /var/www/shop/sites/default/private/temp )

C.

CHANGE THE OWNERSHIP OF THE CREATED DIRECTORIES TO BELONG TO USER ACCOUNT UNDER WHICH THE WEB SERVER RUNS UNDER (WWW-DATA)

sudo chown -R www-data:www-data private

sudo chown www-data:www-data /var/www/shop/sites/default/files

sudo chown www-data:www-data /var/www/shop/sites/default/private

chown -R www-data:www-data files

sudo cp /var/www/shop/sites/default/default.settings.php /var/www/shop/sites/default/settings.php

sudo chown www-data:www-data /var/www/shop/sites/default/settings.php

9. MAKE THE SETTINGS FILE WRITEABLE, SO THAT THE INSTALLER CAN EDIT IT, USING: CHMOD A+W SITES/DEFAULT/SETTINGS.PHP

sudo chown www-data:www-data /var/www/SHOP/sites/default/settings.php

sudo chown www-data:www-data /var/www/shop/sites/default/settings.php

$ sudo chown www-data:www-data /var/www/drupal/sites/default/files

$ sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php

sudo chown www-data:www-data /var/www/shop/sites/default/settings.php

10. CREATE A DATABASE FOR YOUR DRUPAL 7 SITE -Create Mysql DATABASE for drupal and Manually configure MySQL database

You need to create a MySQL drupal database and then load the database schema into it. You can do this via the command line:

TYPE FOLLOWING COMMANDS IN TERMINAL.

$ mysqladmin -u root -p create drupal

mysqladmin -u root -p create pippodb

$ mysql -u root -p

Note:-after entering the mysql type the following commands.in the commands which are given below change drupaluser with your desired username and also drupalpass with desired password.

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO pippouser@localhost IDENTIFIED BY 16spatzur;

mysql> FLUSH PRIVILEGES;

mysql> \q

in the above commands change drupaluser with your desired username and also
drupalpass with desired password.

Log into mysql, eg: mysql -uroot -p
Create a database once logged into mysql from the ‘mysql>’ prompt, eg.: create database drupal7;

Create a user for the database and grant permissions from the ‘mysql>’ prompt, eg.: GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES, CREATE TEMPORARY TABLES ON drupal7.* TO ‘drupal7user’@’localhost’ IDENTIFIED BY ‘drupal7password’;

11. RELOAD APACHE

$ sudo /etc/init.d/apache2 restart

$ sudo chown www-data:www-data -R /var/www/drupal/sites

sudo chown www-data:www-data -R /var/www/shop/sites

11. RUN THE INSTALL SCRIPT AS FOLLOWS – Complete Drupal Installation through a Browser

now open your Browser and type the following:

http://localhost/drupal/install.php

after typing the above link you will see the simple manual installation of drupal just follow the simple steps and you will easily able to install the drupal.
if you are unable to install drupal using the above tutorial you van find the original one here it is bit complicated but good for advance users

Browse to your new Drupal site at http://localhost/drupal7/install.php

ELECT TO PROCEED WITH A NORMAL DRUPAL INSTALL (IE. NOT MINIMAL) IN YOUR CHOSEN LANGUAGE

The wizard now asks you to configure the database settings. In the form presented by the wizard, replace the user ‘admin’ with the ‘drupal7user’ you created earlier and point at the drupal7 database. Remember to put in the correct password for ‘drupal7user’
If you get a 500 error in the last step, then ignore it and elect to continue through to the error page. This will actually let you continue the install
If you get the error starting with something like “Fatal error: Allowed memory size of 16777216 bytes exhausted” then allocate Drupal more memory in the settings file (see See http://drupal.org/node/90605 for more information), eg. Add the line
ini_set(‘memory_limit’, ’30M’);
Hopefully now you should be good to go!

Loading Facebook Comments ...

Lascia un commento