![]() For example, to download version 9.3.12: composer create-project drupal/recommended-project:9.3.12 my_site_name_dirĪll releases can be found at. If you want a different version, add the version number to the command after a colon. Note that the above command will download the current official release of Drupal. The web root will be 'my_site_name_dir/web'. Your 'my_site_name_dir' will contain files that should be outside of your web root and not accessible by the web server. This will create a project in 'my_site_name_dir' and automatically executes composer install to download the latest stable version of Drupal and all its dependencies. Create a projectįor Drupal 10: composer create-project drupal/recommended-project my_site_name_dirįor Drupal 7: composer create-project drupal-composer/drupal-project:7.x-dev -n my_site_name_dir Other approaches can be found below.įor Drupal 7, use drupal-composer/drupal-project. This template ensures Drupal Core dependencies are the exact same version as the official Drupal release. In the Drupal administration panel, browse to the “Report -> Status” section and run the database update script if necessary.As of the release of Drupal 8.8.0 - the recommend composer template changed from drupal-composer/drupal-project to the officially supported: drupal/recommended-projectįor Drupal 10, use the composer template at drupal/recommended-project. htaccess or settings.php files, restore them from backup. In case your older installation used custom. $ sudo cp -R drupal-X.Y/* /opt/bitnami/drupal/ htaccess and settings.php files and overwrite the old Drupal installation with the new files: $ cp /opt/bitnami/drupal/.htaccess /home/bitnami/.htaccess.backup ![]() Enable the “Put site into maintenance mode” checkbox and save the configuration.Īt the server console, download the new Drupal version: $ wget Ĭreate a backup of the. To upgrade Drupal without drush, use Drupal’s built-in mechanism for upgrades by following the steps below:īrowse to the “Administration -> Configuration -> Development -> Maintenance mode” section. More information is available on the Drush website. To upgrade Drupal with drush, use the following commands:Ĭhange to the application directory: $ cd /opt/bitnami/drupal/ Starting with Drupal v7.12-3, the Bitnami Drupal Stack ships drush, a command-line shell and scripting interface for Drupal. ![]() You can upgrade the application only without modifying any other stack components. You can also check it in the “Report -> Available updates -> Update” section. In the Drupal administration panel navigate to the “Report -> Status” section to check that your site has been successfully updated. Upgrade the application using drush updating command: $ drush pm-update To upgrade Drupal with drush, follow the steps below: You can update Drupal core with a minor version change using drush a command-line shell and scripting interface for Drupal that is already included in Bitnami Drupal Stack. $ cp /home/bitnami/ /opt/bitnami/drupal/robots.txt htaccess and robots.txt files: $ cp /home/bitnami/.htaccess.backup /opt/bitnami/drupal/.htaccess $ sudo composer update drupal/core-recommended -with-dependenciesĬheck that the application has been successfully updated: $ drush core:status Upgrade the application with Composer and drush by executing the commands below: $ drush cache:rebuild $ cp /opt/bitnami/drupal/robots.txt /home/bitnami/Ĭhange your working directory to the Drupal application: $ cd /opt/bitnami/drupal/ $ cp /opt/bitnami/drupal/sites/default/settings.php /home/bitnami/ htaccess, settings.php and robots.txt files: $ cp /opt/bitnami/drupal/.htaccess /home/bitnami/.htaccess.backup To upgrade Drupal, follow the steps below:Ĭreate a backup of the. Both tools are already included in Bitnami Drupal Stack. You can update Drupal core with a minor version change using Composer, a dependency management tool and drush, a command-line shell and scripting interface for Drupal. Disable the maintenance mode when the upgrade is finished.Enable the “Put site into maintenance mode” checkbox and save the configuration: Log in to the Drupal administration panel.īrowse to the “Administration -> Configuration -> Development -> Maintenance mode” section. If you have important data, create and try to restore a backup to ensure that everything works properly. NOTE: It is advisable to create a backup before starting the update process.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |