AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Deploy drupal on aws best practices1/11/2024 ![]() In the last days, I have repeated the painful procedure many times on different AWS EC2 instances to be sure to have a precise and repeatable procedure. I believe that i have read to much docs on the Net, and mix two incompatible ways to install amazonS3. With this understanding, I disabled AWS SDK for PHP and awssdk_ui, and it seems to work well. ![]() These modules check that the libraries/awssdk/ is present, but composer_manager install the required library in vendor directory. I think I understand my mistake: with Composer Manager installed and all requirements met, I don't need awssdk and awssdk_ui modules. S3 is working fine and stores files attached to a node.while composer_manager states that all required libraries were installed, drupal status report still says that awssdk fails to load.installed with drush awssdk and awssdk_ui.Although I was finally able to have it working pretty well, I would like to confirm with experts my understanding of the problem, and check that I got it right. Once you complete the web-based installation, you will have a working Drupal Website.I have been struggling with the installation of amazonS3. Give the database username and password that you have created during the database setup process. Now, access the install page in the browser using the public IP of your instance and continue as normal Drupal installation. Set permissions of user and group sudo chown -R www-data:www-data /var/www/html Install and Setup Drupal Untar the files sudo tar -zxvf drupal-8.0.5.tar.gzĬd into the extracted drupal directory and copy all the files to /var/www/html using the following command. Restart apache sudo service apache2 restart Download Drupal Files Note: Replace with your domain name and with your email address. Open /etc/apache2/sites-enabled/nf and change parameters as shown below. expose_php = OffĮnable apache rewrite functionality sudo a2enmod rewrite Open /etc/php5/apache2/php.ini, search and set the following parmeters to off. exit Install php modules sudo apt-get update sudo apt-get install php5-gd php5-curl libssh2-php GRANT ALL PRIVILEGES ON drupaldb.* TO drupaluser FLUSH PRIVILEGES Įxit database. CREATE USER drupaluser IDENTIFIED BY 'password' Create Database and UserĬreate database CREATE DATABASE drupaldb Ĭreate a drupal user. Now you will be able to access PHPMyAdmin over the browser by appending phpmyadmin to the ip as shown below. Restart apache2 sudo service apache2 restart Open /etc/apache2/nf and add the following at the end of the line. Verify MySQL server status sudo service mysql status Install PHPMyAdmin sudo apt-get install phpmyadmin ![]() You should get a default apache page on your browser.Ĥ. Verify the Apache installation by visiting the public IP of your instance. How to connect EC2 instance using putty Install LAMP Stackġ. You can follow this tutorial to connect to the instance using putty. If you are setting up SSL in future, you might need to add 443 as well. In our case, we would require port 80 and 22. How to Spin Up an Ec2 Instance Add Relevant Security GroupsĪdd the relevant port in the ec2 instance security group. Follow this tutorial if you haven’t done that before. Spinning up an EC2 instance is really easy. To setup Drupal on an EC2 instance, you need the following on the server.įollow the guides given below to set up a working Drupal installation. If you need help in deploying Drupal in HA mode, you can mail us at Install and Setup Drupal on Amazon EC2 For high traffic websites, it is advised to have a High Availability architecture with autoscaling and dedicated database instances. This is a standalone installation with Drupal and database in a single server. In this guide, I will explain how to install and setup Drupal on amazon ec2 ubuntu 14.04 server. ![]()
0 Comments
Read More
Leave a Reply. |