![]() Then, use the following script to compare the official hash against the one we just downloaded. It is best to verify the integrity of the downloaded script. Next, download the composer installer script. Sudo yum install php-cli php-zip wget unzip But if you got here just for composer, make sure you update the local repository first before installing the composer dependencies. Since we already performed local repository updates earlier we can go directly to the installation. This is used in Drupal specially by modules which has 3rd party libraries. You use this t0 declare libraries needed for your project and it will do the install/update for you. This is a dependency management tool in PHP. 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. 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. 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.Setup Virtual Hosts - Apache can run more than 1 virtual host much like IIS for windows.Manage Apache Process - This is where you setup when Apache stops and starts as well as adding custom logging methods.There are more advanced things you can do depending on your application needs which we will not discuss in this article. Alternatively, you can also use curl to your localhost or from another instance within your VPC. ![]() This command will list all the network addresses from this host and are space separated. To make sure that this is true, run the below command : Run the below command to install Apache.Īpache does not run automatically after installation so you need the command :īy default, port 80 is already enabled with a firewall in this AWS AMI. ![]() If the response is other than : " httpd (pid xxxx) is running.", then you may need to install/reinstall Apache. ![]() 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |