drupal iis #9

  • By cloudbaseit
  • Latest version (#9)
  • win2012, win2012r2, win2016
  • Stable

Description

Drupal is a dynamic web site platform which allows an individual or
community of users to publish, manage and organize a variety of
content, Drupal integrates many popular features of content
management systems, weblogs, collaborative tools and discussion-based
community software into one easy-to-use package.


Overview

Drupal is a free and open-source content-management framework written in PHP and distributed under the GNU General Public License. It is used as a back-end framework for at least 2.1% of all Web sites worldwide ranging from personal blogs to corporate, political, and government sites.

Usage

General Usage

To deploy a Drupal service on IIS:

juju deploy cs:~cloudbaseit/win2012r2/drupal-iis

As a database backend, one of the following relational databases can be used: MySQL, PostgreSQL or MSSQL.

To add a relation with the MySQL database charm:

juju deploy mysql
juju add-relation drupal-iis mysql

To add a relation with the PostgreSQL database charm:

juju deploy postgresql
juju add-relation drupal-iis postgresql:db

To add a relation with the SQL Server Express database charm:

juju deploy cs:~cloudbaseit/win2012r2/mssql-express
juju add-relation drupal-iis mssql-express

Scale out usage

To add another unit to your deployment:

juju add-unit drupal-iis

To deploy a memcached server and add memcache caching to the Drupal deployment.

juju deploy memcached
juju add-relation drupal-iis memcached

To add a reverse proxy relation with haproxy and distribute connections from one frontend port to your charm units.

juju deploy haproxy
juju add-relation drupal-iis haproxy

Configuration

  • site-name - Name of the Drupal website.

  • site-mail - E-mail used by Drupal to send notifications.

  • admin-user-name - User name used by admin account.

  • admin-password - Password used by the admin account.

  • admin-mail - E-mail of the administrative account 'admin'.

  • php-max-execution-time - The maximum execution time in seconds a PHP script is allowed to take.

  • php-max-requests - Maximum number of request for the IIS PHP handler.

To dynamically change a config option:

juju set drupal-iis <config_option>=<config_value>

Configuration

php-mssql-drivers-url
(string) Download link for the PHP MSSQL Drivers installer.
http://download.microsoft.com/download/C/D/B/CDB0A3BB-600E-42ED-8D5E-E4630C905371/SQLSRV32.EXE#sha1=FBCA0921E916BED0013422A3446B125BB4EDE6FB
database-name
(string) Database name
drupal
ur-url
(string) Download link for the IIS URL Rewrite Module version 2 (x64) installer.
http://download.microsoft.com/download/6/7/D/67D80164-7DD0-48AF-86E3-DE7A182D6815/rewrite_2.0_rtw_x64.msi#sha1=84BDEAEF26BCB2CB60BB8686EAF6194607F7F003
vc12-url
(string) Download link for the Microsoft Visual C++ 2013 Redistributable (x86) version 12 installer.
http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe#sha1=DF7F0A73BFA077E483E51BFB97F5E2ECEEDFB6A3
database-user-name
(string) Database user name
drupal
sncli-url
(string) Download link for the MSSQL 2012 Native Client (x64) installer.
http://download.microsoft.com/download/4/B/1/4B1E9B0E-A4F3-4715-B417-31C82302A70A/ENU/x64/sqlncli.msi#sha1=789CD5F898F80A799F0288F140F3FBCDF0473DE8
php-url
(string) Download link for the PHP 5.4.x VC9 (x86) NTS zip archive.
http://windows.php.net/downloads/releases/archives/php-5.4.38-nts-Win32-VC9-x86.zip#sha1=6CE8F2B92C99FDCBF46E869999DFA6E42E3748E4
php-max-execution-time
(int) The number of seconds a PHP script is allowed to run. If this is reached, the script returns a fatal error.
300
iis-website-port
(int) Port used by the Drupal IIS website. After a fresh instalation of IIS, port 80 is already used by 'Default Web Site'.
8080
drupal-url
(string) Download link for the zip archive with Drupal 7 core files.
http://ftp.drupal.org/files/projects/drupal-7.35.zip#sha1=C8125AC88865D586358738E6A5CC5FB63545C621
memcache-url
(string) Download link for the zip archive with Drupal's memcache module.
http://ftp.drupal.org/files/projects/memcache-7.x-1.5.zip#sha1=33D3CE9426C3B35839B6083D21B120E65F4B4C1D
pgsql-url
(string) Download link for the PostgreSQL 9.4.x (x86) zip archive with Windows binaries.
http://get.enterprisedb.com/postgresql/postgresql-9.4.1-3-windows-binaries.zip#sha1=AD72A59FB0ED7E8BE0C4084C5D2EC604D25C718B
admin-password
(string) Password used by the admin user.
site-mail
(string) E-mail address used by Drupal to send notifications such as password changes and e-mails sent during registration.
admin@admin.com
admin-mail
(string) E-mail used by the admin user.
admin@admin.com
site-name
(string) Name of the Drupal website.
Drupal IIS Web Site
php-max-requests
(int) Maximum number of request for the IIS PHP handler.
10000
mssql-drivers-url
(string) Download link for the zip archive with Drupal MSSQL drivers.
http://ftp.drupal.org/files/projects/sqlsrv-7.x-1.3.zip#sha1=CF7BD04A9D9AFB3139F4124CE590D224256F968E
admin-user-name
(string) Admin user name used by Drupal website. This is set only at database initialization.
admin
scmd-url
(string) Download link for the MSSQL Command Line Utilities 11 (x64) installer.
http://download.microsoft.com/download/4/B/1/4B1E9B0E-A4F3-4715-B417-31C82302A70A/ENU/x64/SqlCmdLnUtils.msi#sha1=B56B0FAF011ADDD810D5A3624DF1702EB02B4A12
memcache-extension-url
(string) Download link for the zip archive with Memcache PHP 5.4 NTS (x86) extension for Windows.
http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/php_memcache-3.0.8-5.4-nts-vc9-x86.zip#sha1=D0938BA13DFC880A4AC6369D8278C80A45D60B2D
vc9-url
(string) Download link for the Microsoft Visual C++ 2008 SP1 Redistributable (x86) version 9 installer.
http://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe#sha1=6939100E397CEF26EC22E95E53FCD9FC979B7BC9
drush-url
(string) Download link for the Drush 6 zip archive.
https://github.com/drush-ops/drush/releases/download/6.6.0/windows-6.6.0.zip#sha1=2BD5459022B395CD4E99D644E1708F1B0796484C
sodbc-url
(string) Download link for the MSSQL ODBC Driver 11 (x64) installer.
https://download.microsoft.com/download/5/7/2/57249A3A-19D6-4901-ACCE-80924ABEB267/ENU/x64/msodbcsql.msi#sha1=29612EC37A68ECA540BAC8ADBA1C429F8F869E26
mysql-url
(string) Download link for the MySQL Windows client installer. This is needed when creating a database relation with the MySQL charm.
https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.43-win32.msi#sha1=5A824BF80D1F8DB451492456AE330BB8ADB13B39