How to Install Nginx 1.15, MariaDB 10 and PHP 7 on CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

46 Responses

  1. Rojo says:

    What is the problem, Ravi? How can I fix it?

    2017/03/18 13:06:48 [error] 5956#0: *8012409 FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client:, server:, request: “GET /movies.php?genre=horror HTTP/1.1”, upstream: “fastcgi://unix:/tmp/php_fpm.sock:”, host: “”

  2. d4jk4 says:

    Hi team,

    I was followed this tutorial, everything works fine except an error in error log, many logs was generated

    2016/10/22 21:39:27 [error] 3044#0: *413880 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, 
    client:, server:, request: "GET /wp-login.php HTTP/1.1", 
    upstream: "fastcgi://unix:/tmp/php_fpm.sock:", host: ""

    What kind of this error, team? And how can I fix it?

    • Danny Tosic says:

      The website is work normally?

      You should check your error log carefully, “GET /wp-login.php HTTP/1.1”

      I think it is wrong path

  3. Shevchenkoavl says:

    ———– Installing on RHEL/CentOS 7/6 ———–
    # yum –enablerepo=remi install nginx MariaDB-server (depend: MariaDB-client) php php-common php-fpm

  4. Shevchenkoavl says:

    repo MariaDB for CentOS –

  5. David says:

    How to install LEMP on CentOS 7 x86_64 ?

  6. Not work! says:

    I did exactly what it says several times and I do not phphinfo displays. Only The webpage cannot be found.
    My system is VPS, CentOS 6, nginx, mysql, php.

  7. Kyle says:

    I installed nginx and php follow above tips, the nginx was ok and I can see the “Welcome to nginx!” site. But when I visit the php site, the browser download the php file. How can I fix this issue?

  1. November 26, 2014

    […] 레파지토리에는 php 버전도 5.1 이고 심지어 nignx도 0.6 버전이었다. 자세한 설치는 검색하면 […]

  2. June 2, 2016

    […] Don’t Miss: Install Latest Nginx 1.10.1, MariaDB 10 and PHP 5.5/5.6 on RHEL/CentOS 7/6 & Fedora 20-23 […]

  3. September 1, 2016

    […] Install LEMP Stack on RHEL/CentOS 7/6 & Fedora 24-18 […]

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

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