

You can run Drupal without these but we found it handy in many instances. But as bonus, we will add composer and drush.

That's it! You can move on to installation of Drupal.
AWS DRUPAL INSTALL
Sudo yum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json To install additional packages, you can use the below methods : Some Drupal solutions require packages like php-bcmath for an e-commerce module perhaps. You may need to install additional PHP packages depending on your purpose. Sudo yum-config-manager -enable remi-php74Īccept on all the prompts and that's it. Next install the new PHP version of your choice using the below command. Run the next command if it outputs an older version where " xx" is the version number. You may need to do cleanup of old PHP version if you haven't done so. If you do not have the required repositories yet, add them with the following command. The version we are installing is RPM and is in the remi-php74 repository for CentOS 7. In this tutorial we will installing PHP 7.4 because of its improvement in speed and caching. Drupal works on all supported PHP versions but the recommended version is the best choice because. This is the server side scripting that powers Drupal. If you are installing the same version then you can just simply type "Y" and pressing the enter key at each question.įinally you can start the MySQL service and create your own database. Read carefully the prompts as the version you are installing might have different requirements.
AWS DRUPAL UPDATE
We can proceed with the next steps once the update and download completes. Prepare the repository for installation : Since we already performed the system update earlier we can just proceed with the below commands. If you need a different version you may want to visit here. The MySQL version we are installing is version 8 which is stable as of the time of this writing. If you are planning to create a website for a corporate application then you may want to consider using a separate MySQL server using EC2 or another AWS service called RDS. The next instructions will be based on a local MySQL setup for simple website. Adjusting Linux Permissions for Virtual Hosts - Depending on the hosts, you may need to enable some special ports and adjust other components.
AWS DRUPAL WINDOWS

Apache may already be installed and updated with the above shell command but if you are not sure, verify that Apache is running using the below shell command. This means you will be able to serve websites from your instance. Is an application that turns your EC2 instance into a web server.
