User Tools

Site Tools


software:drupal

This is an old revision of the document!


Setup Drupal with Composer

Setup on Ubuntu for personal use

First Setup LAMP

From: http://www.howtogeek.com/howto/42480/how-to-turn-your-home-ubuntu-pc-into-a-lamp-web-server/

sudo apt-get install lamp-server^
http://localhost/

Note: Ubuntu 16.4 has moved website to html directory and default www is:  /var/www/
sudo nano /var/www/html/testing.php
<?php phpinfo(); ?>
sudo service apache2 restart
http://localhost/testing.php

cat /etc/hosts | grep localhost

Note: Ubuntu 16.4 has mysql configuration in "/etc/mysql/mysql.conf.d"
sudo nano /etc/mysql/mysql.conf.d

sudo apt-get install phpmyadmin

Note: must install some xtra for mbstring
sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0
sudo service apache2 restart
http://localhost/phpmyadmin/
U: root
P: whatyouuse

From: https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite

sudo a2enmod rewrite

Next is the Database This case is MySql

From: http://linoxide.com/ubuntu-how-to/install-drupal-7-x-apache-2-x-ubuntu/

    mysql -u root -p

Once Successful login to the Mysql Server, we'll use these command to create database for 
drupal. In this case I will give the name of the drupal database as drupaldb, You can call 
this whatever you would like.

    CREATE DATABASE drupaldb;

Next, we are going to create a separate MySQL user account and give this user a password. On 
this case we will call the new account “linoxideuser” and password for new account “drupaLinoxide1“, 
you should definitely change the password for your installation and can name the user whatever you’d 
like but make sure you don't forget the database name,username and password. You can do this by 
typing the following command:

    CREATE USER linoxideuser@localhost IDENTIFIED BY 'drupaLinoxide1';

Next, grant all privileges on the database you just created to the new user by running the commands 
below

    GRANT ALL PRIVILEGES ON drupaldb.* TO linoxideuser@localhost;

We need to flush the privileges so that the current instance of MySQL knows about the recent 
privilege changes we’ve made:

    FLUSH PRIVILEGES;

And finally we exit the MySQL terminal by entering:

    exit;

Setup Drupal website Without Composer See next section for Composer install

From: http://linoxide.com/ubuntu-how-to/install-drupal-7-x-apache-2-x-ubuntu/

sudo rsync -avP /home/marcus/Downloads/drupal-8.1.1/   /var/www/html
mv /var/www/html/index.html /var/www/html/index_apache2.html
apache2ctl -M
sudo mkdir /var/www/html/sites/default/files
sudo chmod a+w  /var/www/html/sites/default/files
sudo cp /var/www/html/sites/default/default.settings.php  /var/www/html/sites/default/settings.php
sudo chmod a+w /var/www/html/sites/default/settings.php

rerun install

sudo chmod go-w /var/www/html/sites/default/settings.php
sudo chmod go-w  /var/www/html/sites/default

sudo nano /etc/apache2/apache2.conf

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

sudo service apache2 restart

sudo nano /var/www/html/sites/default/settings.php


$settings['trusted_host_patterns'] = array(
  '^127\.0\.0\.1$',
  '^localhost$',
  '^drupal\.example\.com$',
);

Download Composer

From: https://getcomposer.org/download/

Download Composer

Run this in your terminal to get the latest Composer version:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

Install Globally

From: https://getcomposer.org/doc/00-intro.md

mv composer.phar /usr/local/bin/composer

create the project

From: https://github.com/drupal-composer/drupal-project

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction

Composer template for Drupal projects

This project template should provide a kickstart for managing your site dependencies with Composer.

If you want to know how to use it as replacement for Drush Make visit the Documentation on drupal.org.
Ubuntu 17.04
composer create-project drupal-composer/drupal-project:8.x-dev  /var/www/html/ --stability dev --no-interaction

Results say:
Create a sites/default/settings.php file with chmod 0666
Create a sites/default/files directory with chmod 0777

Turnkey Drupal

From: https://hub.turnkeylinux.org/pricing/

Rapidly explore and deploy 100+ ready-to-use server apps in the Amazon EC2 cloud. Only a browser required.

You asked us to make TurnKey even easier. We did. Deploying TurnKey on-demand in the cloud frees you from having to download of hundreds of MBs per appliance image, setup extra software and hardware for virtualization, or ask special favors from IT staff.

commerse kickstart

Reference: panopoly

From: https://drupalcommerce.org/commerce-kickstart-2

From Demo: http://demo.commerceguys.com/

Open Atrium - Intranet (Calendar)

Drupal Commons - community

ERPAL

Panopoly

Has Modules:

View

Pathauto

Date

WISIWYG

Link

Media

Entity API

Search API

Libraries

Panelizer

FAPE

CTools

Panels

Features

Fieldable Panel Panes

Admin Views

Module Filter

Save Draft

JQuery Update

Linklt

software/drupal.1507660485.txt.gz · Last modified: 2017/10/10 18:34 by superwizard