Steffen's Knowledge Base

Created at: 2019-09-22 21:16:00
Last modified at: 2024-03-22 11:15:54
Author: Steffen Rick

Drupal7 install

Install php + extensions
Composer install
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
# include composer installs in path
export PATH="$HOME/.composer/vendor/bin:$PATH"
# allow for beta software packages to be installed
composer global config minimum-stability dev
Install drush
composer global require drush/drush:dev-master
Create db
create database drupal1 char set utf8;
grant all on drupal1.* to 'drupal1'@'localhost' identified by 'drupal1';
flush privileges
Download drupal7 and move it to the right name
drush dl drupal-7
mv drupal-7 drupal1.hzn.srick.org
# copy settings.php
cp default.settings.php settings.php
chmod 755 settings.php
Run the installer
http://drupal1.hzn.srick.org/install.php
Write protect the settings file

chmod 644 settings.php
Update drupal-7

drush vset --exact maintenance_mode 1 drush cache-clear all # set maintenance mode
drush pm-update drupal
drush vset --exact maintenance_mode 0 drush cache-clear all # unset maintenance mode
Install wysiwyg editors

First, install the wysiwyg module from where you can customize your favorite editor


drush -y en wysiwyg

Download the editor of your choice into the libraries directory


cd sites/all/libraries
wget http://the-editor-url/zipfile
http://markitup.jaysalvat.com/downloads/ Markitup Editor
http://nicedit.com/download.php Nice Editor
https://www.tinymce.com/download/older-releases/ Tiny Editor (This article was written with it)
http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.6.1/ckeditor_4.6.1_standard.zip CKEditor (a poular editor)

Extract the file and enable the editor from url

https://drupal1.hzn.srick.org/node/6#overlay=admin/config/content/wysiwyg