
Yum Install Httpd No Package Httpd Available Jobs
This tutorial will help you for installing Apache/HTTPD 2.4 and PHP 7 on Amazon Linux system.
MySQL installation is not part of this tutorial. So if you also need MySQL server on your Amazon Linux, follow this tutorial.
Step 1 – Initial Setup
Its in the EL7 Base (and Updates) repositories, which seem to be disabled on your system. Btw, I would NOT enable REMI, RPMFORGE.and. EPEL at the same time. Yum install httpd-devel.x8664 Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process No package httpd-devel.x8664 available. Nothing to do.
Log in to your Amazon Linux system via SSH and become root user. Then update yum to the latest.
Its optional part to set the proper timezone as per your requirements. The below commands will change system Timezone to ‘America/New_York’.
Step 2 – Install Apache 2.4
Now install the Apache/httpd web server with other recommended extensions form the default yum repositories.
The httpd24 package will install Apache 2.4 and mod24_ssl extension will provide cryptographic support to your Apache web server.
After installation set Apache to auto-start and also start once.
Step 3 – Install PHP 7.3
After that install PHP 7.3 with some frequently used extensions.
If you need to install other version like PHP 7.2 change all packages names accordingly like php72 or php71 etc.
Step 4 – Create VirtualHost
After installing packages create your first virtual host. To create virtual host for your domain example.com, edit the Apache configuration file and create virtual host like below:
2 | phpinfo(); |
Now, access php script in web browser.
PHP 7.3 is the latest stable release of PHP. May of popular yum repositories is providing rpm packages for PHP 7. This article is using Remi and EPEL yum repositories for installing required packages on your system. This article will help you to install PHP 7.3, PHP 7.2, PHP 7.1 on CentOS & RHEL 6 systems.
Configure Yum Repository
First of all, you need to enable Remi and EPEL yum repositories on your system. Use the following command to install EPEL repository on your CentOS and Red Hat 7/6 systems
Use this command to install epel-release yum repository
and now execute one of the following commands as per your operating system version to install Remi repository.
Install PHP 7 on CentOS 6
Your system is prepared for the PHP installation from yum repositories. Use one of the following commands to install PHP 7.3 or PHP 7.2 or PHP 7.1 on your system based on your requirements.
I have installed the latest version PHP 7.3 on my system. Now running the following command to check current active PHP version on my system.
Kunwara Baap 1974 – Courtesy of the one and only “Mehmood” Directed by Mehmood Produced by Amarlal Chabria Starring: Mehmood, Sanjeev Kumar, Lalita Pawar, Nazir Hussain Music by Rajesh. Kunwara Baap - 1974, Download, PagalWorld, Pagalworld.com, Mp3 Song, Mp3 Songs.
Install PHP Modules
You may also need to install additional PHP modules based on your application requirements. Below command will install some more useful PHP modules.
You can run the following command to search other available PHP modules under configured yum repositories. Below example command search for all modules for PHP 7.3.