Difference between revisions of "Cool Solution - Install Drupal"

From Univention Wiki

Jump to: navigation, search
Line 66: Line 66:
== Further links ==
== Further links ==
Drupal installation - http://www.tecmint.com/install-drupal-in-ubuntu-debian/
[[Category:EN]] [[Category:Howtos]]
[[Category:EN]] [[Category:Howtos]]

Revision as of 08:13, 27 January 2016

Produktlogo UCS Version 4.1

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Packages provided by a Cool Solutions Repository are built by Univention, but will not be maintained. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.

Prepare your Drupal installation

To install Drupal, you will require a running web-server and a database server, in this article we will work with Apache2, PHP5 and MySQL.

 ucr set repository/online/unmaintained='yes'
 univention-install apache2 php5 php5-mysql mysql-client mysql-server

Create a database and a database user

If the installation was succesfully we'll need to create a database via mysql. run the following command to connect to the mysql shell.

 mysql -u root -p$(cat /etc/mysql.secret)

Enter your mysql root password and run the following series of commands on the MySQL terminal to create new a ‘drupal‘ user and database.

 CREATE USER '<some_username>'@localhost IDENTIFIED BY '<your_password_here>';
 create database '<some_database_name>';
 GRANT ALL ON '<your_database_name>'.* TO '<your_username>'@localhost;

Download Drupal

Now you can download drupal with the following command (replace x.x with the version of drupal you want):

Hint: Check https://www.drupal.org/project/drupal for the latest update.

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

Extract the file and take it away to /var/www/

 tar -xf drupal-7.41.tar.gz
 mkdir -p /var/www/drupal
 cp -R drupal-7.41/* /var/www/drupal

To avoid error messages later on, run the following commands:

 apt-get install php5-gd
 service apache2 restart
 mkdir -p /var/www/drupal/sites/default/files
 chmod 777 /var/www/drupal/sites/default/files
 cp -R /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php
 chmod 777 /var/www/drupal/sites/default/settings.php

Install Drupal via web browser

Now you can open your browser and go to one of the following links:




The next step is up to you. Install drupal as you wish.

In the Database configuration, enter the database name <your_database_name>, the username <your_username> and the password you’ve set.

After installation finishes, don’t forget to change the permissions of configuration files to avoid security risks if any:

 chmod -R 755 /var/www/drupal/sites/default/
 chmod 777 /var/www/drupal/sites/default/files

That’s it! Your installation is ready to use.

Further links

Drupal installation - http://www.tecmint.com/install-drupal-in-ubuntu-debian/

Personal tools