How To Install Apache With Php On Linux
Install Apache and PHP 7 Follow the below steps to install Apache and PHP 7 on CentOS, RHEL and Fedora systems. Step #1: Install EPEL and REMI Repository First of all install required repository to install apache and php 7. On CentOS 7 and RHEL 7 # rpm -Uvh # rpm -Uvh On CentOS 6 and RHEL 6 # rpm -Uvh # rpm -Uvh On Fedora 26 # sudo dnf install # sudo dnf install # sudo dnf install On Fedora 25 # sudo dnf install # sudo dnf install # sudo dnf install On Fedora 24 # sudo dnf install # sudo dnf install # sudo dnf install Step #2: Install Apache and PHP 7 Once enabling the required repository on your system, now install apache and PHP 7 on your system. Download Phpmaker 8 Full. Follow the below command to install apache and php. On CentOS and RHEL $ sudo yum --enablerepo=remi,remi-php71 install httpd php php-common On Fedora 26 $ sudo dnf --enablerepo=remi install httpd php php-common On Fedora 25/24 # sudo dnf --enablerepo=remi --enablerepo=remi-php71 install httpd php php-common Step #3: Install PHP Modules To setup a php application you will need to install required PHP modules for your application. Follow the below command to install php modules. Nada Dering Panggilan Hp Unik. On CentOS and RHEL # sudo yum --enablerepo=remi,remi-php71 install php-cli php-pear php-pdo php-mysqlnd php-pgsql php-gd php-mbstring php-mcrypt php-xml On Fedora 26 # sudo dnf --enablerepo=remi install php-cli php-pear php-pdo php-mysqlnd php-gd php-mbstring php-mcrypt php-xml On Fedora 25/24 # sudo dnf --enablerepo=remi --enablerepo=remi-php71 install php-cli php-pear php-pdo php-gd php-mbstring php-mcrypt php-xml Step #4: Restart Apache Service After installing PHP, PHP modules and Apache web server now restart the apache web service and enable to auto start at boot time.