Install Apache/PHP 7.2.12 on Fedora 29/28, CentOS/RHEL 7.5/6.10 - Comment Page: 8

This guide shows howto install Apache HTTP Server (httpd) with PHP 7.2.12 and following modules on Fedora 29/28/27, CentOS 7.5/6.10 and Red Hat (RHEL) 7.5/6.10 systems. OPcache (php-opcache) - The Zend OPcache provides faster PHP execution through opcode caching and optimization. APCu (php-pecl-apcu) - APCu userland caching CLI (php-cli) - Command-line interface for PHP PEAR (php-pear) - PHP Extension and Application Repository framework PDO (php-pdo) - A database access abstraction module for PHP applications MySQL (php-mysqlnd) - A module for PHP applications that use MySQL databases PostgreSQL (php-pgsql) - A PostgreSQL database module for PHP MongoDB...

268 comments on “Install Apache/PHP 7.2.12 on Fedora 29/28, CentOS/RHEL 7.5/6.10 - Comment Page: 8

1 6 7 8 9
    1. I can’t install remi I get warning: /var/tmp/rpm-tmp.YFAEEn: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
      error: Failed dependencies:

    2. Hi Bud,

      I have already done all this prior to fining your blog but I just cannot get php to run on my Apache it just list the text of the php file as well as if I go to the main page it just lists my virtual pages!!!!!

      • Hi John,

        Did you tested simple /var/www/html/test.php -> http://localhost/test.php without any other configurations?

        Could you post little bit more info about your installed packages:

        rpm -qa httpd php\* |sort -V

        And following configs:

    3. Now that we have Apache installed and working properly, we need to make sure that it’s set to start automatically when the Cloud Server is rebooted.

      • Hi Jaime,

        Check step 1.5

        ## Fedora and CentOS/RHEL 7.1 ##
        systemctl enable httpd.service
        ## CentOS / RHEL 6.7/5.11 ##
        chkconfig --levels 235 httpd on
    4. Again. Thank you very much. Worked out perfectly on Fedora 21.
      Best wishes!

    5. Thanks for the tricks, but OPCache is not installed on CentOS 7.3 with these instructions. Do you have more advice here?


    6. Thanks again for the forum.Much thanks again. Fantastic.

    7. Hi JR,

      I installed httpd using dnf. I don’t need php. But placing a simple ‘index.html’ file into “var/www/html” and trying to access it at localhost:80/index.html

      I have this message: The requested URL /index.html was not found on this server.

      Any ideas?

      Thank you.

    8. You should probably update the screenshots too, because now it show PHP 5.6.0

    9. this post was very helpful. thank you very much

    10. I did all the above processes, and in the test, did not run PHP, displayed the code on the screen!

    11. Olá, o “epel-release-7-8.noarch.rpm” esta off, foi atualizado para o epel-release-7-9.noarch.rpm . Valeu!

    12. Perfect !!! “Thank you very much” . It worked fine. It took the place of another installation suggested by other site.

    13. Good contribution.I appreciate
      as this is on latest os

    14. After step 1.6 restart httpd:

      systemctl restart httpd.service

      • Hi Mark,

        You should do it on step 1.5, not after 1.6.

1 6 7 8 9

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.