Download the PHP package jkribeiro/drupal-composer-paranoia-acquia without Composer
On this page you can find all versions of the php package jkribeiro/drupal-composer-paranoia-acquia. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jkribeiro/drupal-composer-paranoia-acquia
More information about jkribeiro/drupal-composer-paranoia-acquia
Files in jkribeiro/drupal-composer-paranoia-acquia
Package drupal-composer-paranoia-acquia
Short Description Composer plugin to improve the security of composer-based Drupal projects by moving all PHP files out of docroot for Acquia Environments.
License GPL-2.0+
Informations about the package drupal-composer-paranoia-acquia
Drupal Composer paranoia mode for Acquia Cloud environments
Composer plugin for improving the website security for composer-based Drupal projects by moving all PHP files out of docroot, for Acquia environments.
This plugin has the dependency of the drupal-paranoia plugin, performing additional installation steps to run the paranoia mode on Acquia Cloud environments.
Would like to know more about it?
- https://github.com/drupal-composer/drupal-paranoia
- Moving all PHP files out of the docroot
- #1672986: Option to have all php files outside of web root
- Remote Code Execution - SA-CONTRIB-2016-039
- https://twitter.com/drupalsecurity/status/753263548458004480
Configuration
Make sure you have a drupal-composer/drupal-project-based project created.
Rename your Acquia repo docroot directory to app
.
Update the composer.json
of your root package with the following changes:
Use composer require ...
to install this Plugin on your project.
Run the following commands to make sure that the new folders are installed:
Done! Plugin and new docroot are now installed.
Folder structure
Your project now is basically structured on two folders.
- app: Contains the files and folders of the full Drupal installation.
- docroot: Contains only the symlinks of the assets files and the PHP stub files from the
app
folder.
Every time that you install or update a Drupal package via Composer, the docroot
folder is automatically recreated.
If necessary, you can rebuild it manually, running the command
This could be necessary when updating themes images, CSS and JS files.
Last step is to commit and push the changes to Acquia Cloud git repository.
All versions of drupal-composer-paranoia-acquia with dependencies
composer-plugin-api Version ^1.1 || ^2
drupal-composer/drupal-paranoia Version ~1