sprak3000 / drupal-composed
Composable version of Drupal 7 with Linguo installation profile
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- sprak3000-drupal/bootstraptheme: 7.3.0
- sprak3000-drupal/bueditor: 7.1.0-dev
- sprak3000-drupal/ctools: 7.1.4
- sprak3000-drupal/date: 7.2.8
- sprak3000-drupal/devel: 7.1.5
- sprak3000-drupal/entity: 7.1.5
- sprak3000-drupal/entity_view_mode: 7.1.0-rc1
- sprak3000-drupal/entityreference: 7.1.1
- sprak3000-drupal/filefield_paths: 7.1.0-beta4
- sprak3000-drupal/find_content: 7.1.2
- sprak3000-drupal/globalredirect: 7.1.5
- sprak3000-drupal/i18n: 7.1.11
- sprak3000-drupal/i18nviews: 7.3-dev
- sprak3000-drupal/jquery_update: 7.2.4
- sprak3000-drupal/libraries: 7.2.2
- sprak3000-drupal/link: 7.1.2
- sprak3000-drupal/markdown: 7.1.2
- sprak3000-drupal/markdowneditor: 7.1.4
- sprak3000-drupal/media: 7.1.4
- sprak3000-drupal/media_twitch: 7.1.0-dev
- sprak3000-drupal/media_youtube: 7.1.0-beta3
- sprak3000-drupal/metatag: 7.1.0-rc2
- sprak3000-drupal/module_filter: 7.2.0-alpha2
- sprak3000-drupal/pathauto: 7.1.2
- sprak3000-drupal/redirect: 7.1.0-rc1
- sprak3000-drupal/rubiktheme: 7.4.0
- sprak3000-drupal/scheduler: 7.1.2
- sprak3000-drupal/strongarm: 7.2.0
- sprak3000-drupal/taotheme: 7.3.1
- sprak3000-drupal/token: 7.1.5
- sprak3000-drupal/uuid: 7.1.0-alpha5
- sprak3000-drupal/variable: 7.2.5
- sprak3000-drupal/views: 7.3.8
- sprak3000-drupal/views_infinite_scroll: 7.1.1
- sprak3000-drupal/views_rss: 7.2.0-rc3
- sprak3000-drupal/xmlsitemap: 7.2.0
- sprak3000/drupal: 7.31.x-dev
This package is auto-updated.
Last update: 2020-02-11 17:49:03 UTC
README
This repository has been archived and left as reference material. It is no longer maintained.
I have been developing Drupal 7 sites, modules, and themes for a few years now at work. I have also been using Composer at work to manage dependencies for non-Drupal projects at work and at home. Increasingly, Drupal has become a dependency for the sites being worked upon. While Drupal 8 is wedded to modern tools like Composer, the sad reality is most of us will still need to use D7 until D8 has been officially released and allowed to mature.
Enter "Drupal Composed", my effort to create a Composer project that will install Drupal 7 with one easy command. This package will install my Linguo installation profile, enable French and German translations, and use a Bootstrap theme for the site. My Linguo installation profile includes all the modules I have found useful in buildling a robust multi-lingual site.
Requirements
This project requires Composer and drush to be globally installed on your server. You will also need the drush language commands installed.
Usage
Install Linguo Drupal
To install the Linguo Drupal profile, run the following command replacing /path/to/your/site
, dbusername
,
dbpassword
, dbserver
, and dbname
with the appropriate values:
$ DRUPAL_ROOT='/path/to/your/site/public/' DB_URL_DRUPAL='mysql://dbusername:dbpassword@dbserver/dbname' composer install
Once it has finished, you can setup a virtual host pointing to /path/to/your/site/public
. Part of the installation output
will be a line with your Drupal administration credentials: Installation complete. User name: admin User password: randomstringhere
.
Updating Linguo Drupal
To keep up with changes to Linguo, you can run the following command replacing /path/to/your/site
with the appropriate values:
$ DRUPAL_ROOT='/path/to/your/site/public/' composer update
Sample Apache virtual host configuration
<VirtualHost *:80> ServerName www.example.com DocumentRoot /sites/drupal-composed/public/ FileETag none RewriteEngine On CustomLog ${APACHE_LOG_DIR}/www.example.com_access_log f5-combined # Also send access and error logs to syslog with descriptive tag CustomLog "|/usr/bin/logger -t apache2-access-www.example.com -i -p local1.info" f5-combined ErrorLog "|/usr/bin/logger -t apache2-error-www.example.com -i -p local1.error" <Directory "/sites/drupal-composed/public/"> AllowOverride All <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes # FIRE UP THE ENGINES, CAPTAIN RewriteEngine On # NOTE: For the Drupal Scheduler module # If we have scheduled asset paths, route them to the drupal index RewriteCond %{REQUEST_FILENAME} -s RewriteRule ^(/?(en|fr|de)/?)?sites/default/files/unpublished(.+\.(jpg|jpeg|gif|png|txt|pdf|mp3|mov|m4v|mp4|mpeg|avi|wmv))$ index.php?relpath=$3 [NC,L] RewriteCond %{REQUEST_FILENAME} -s RewriteRule ^(/?(en|fr|de)/?)?sites/default/files/styles/[^/]+/public/unpublished(.+\.(jpg|jpeg|gif|png|txt|pdf|mp3|mov|m4v|mp4|mpeg|avi|wmv))$ index.php?relpath=$3 [NC,L] # Now check for an existing file/image/directory # If found, just return that asset RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l RewriteRule ^.*$ - [NC,L] # make sure that /en/ is at the start of the URL # RewriteCond %{REQUEST_URI} !^/index.php$ # RewriteCond %{REQUEST_URI} !^/(en|fr|de)/?.*$ # RewriteRule ^/?(.*) /en/$1 [R,NE,L] # if we get this far, hand it off to drupal (the root index.php script) RewriteRule ^.*$ index.php [NC,L] </IfModule> AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>