{"id":867,"date":"2016-08-30T16:59:21","date_gmt":"2016-08-30T11:29:21","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=867"},"modified":"2016-08-30T17:08:23","modified_gmt":"2016-08-30T11:38:23","slug":"install-nginx-php-fpm-mariadb-on-centos-7","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/","title":{"rendered":"Install Nginx, PHP-fpm, Mariadb on Centos 7"},"content":{"rendered":"<p>In this post, we are going post to explain installing nginx, PHP-fpm, mariadb on Centos 7. As a bouns, gonna add information on how to install wordpress on the host.<\/p>\n<h3><strong>Installation:<\/strong><\/h3>\n<h5>Mariadb Installation:<\/h5>\n<p>Let&#8217;s start with adding mariadb repository. Create a\u00a0<b>MariaDB.repo\u00a0<\/b>on \/etc\/yum.repos.d directory with the below content.<\/p>\n<p><code>vi \/etc\/yum.repos.d\/MariaDB.repo<\/code><\/p>\n<blockquote>\n<div># MariaDB 10.1 CentOS repository list &#8211; created 2016-08-25 16:09 UTC<\/div>\n<div># <a href=\"http:\/\/downloads.mariadb.org\/mariadb\/repositories\/\" target=\"_blank\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=http:\/\/downloads.mariadb.org\/mariadb\/repositories\/&amp;source=gmail&amp;ust=1472521866756000&amp;usg=AFQjCNGoBuEkIBFg6nHmMc3xI6p1MHvZnw\">http:\/\/downloads.mariadb.org\/mariadb\/repositories\/<\/a><\/div>\n<div>[mariadb]<\/div>\n<div>name = MariaDB<\/div>\n<div>baseurl = <a href=\"http:\/\/yum.mariadb.org\/10.1\/centos7-amd64\" target=\"_blank\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=http:\/\/yum.mariadb.org\/10.1\/centos7-amd64&amp;source=gmail&amp;ust=1472521866756000&amp;usg=AFQjCNGYtRzu7DzbEpYbMGi3PucgNmPg8Q\">http:\/\/yum.mariadb.org\/10.1\/centos7-amd64<\/a><\/div>\n<div>gpgkey=<a href=\"https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\" target=\"_blank\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB&amp;source=gmail&amp;ust=1472521866756000&amp;usg=AFQjCNHeNV1r61KurjvGp5-Y87VrpgYveQ\">https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB<\/a><\/div>\n<div>gpgcheck=1<\/div>\n<\/blockquote>\n<div>Install the mariadb server and enable the service on startup.<\/div>\n<div>\n<p>&nbsp;<\/p>\n<div><code>yum install MariaDB-server MariaDB-client<\/code><\/div>\n<div><code>systemctl enable mariadb<\/code><\/div>\n<div><code>systemctl start mariadb<\/code><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h5>Nginx Installation:<\/h5>\n<p>Create a nginx repo on\u00a0<em>\/etc\/yum.repos.d\/nginx.repo<\/em><\/p>\n<p><code>vi \/etc\/yum.repos.d\/nginx.<wbr \/>repo<\/code><\/p>\n<blockquote>\n<div>[nginx]<\/div>\n<div>name=nginx repo<\/div>\n<div>baseurl=<a href=\"http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/\" target=\"_blank\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/&amp;source=gmail&amp;ust=1472521866756000&amp;usg=AFQjCNHZj6g9rps450H6RkI6PEvVwNLWtg\">http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/<\/a><\/div>\n<div>gpgcheck=0<\/div>\n<div>enabled=1<\/div>\n<\/blockquote>\n<div>\n<p>Install nginx and enable to system startup.<\/p>\n<div><code>yum install nginx<\/code><\/div>\n<div><code>systemctl enable nginx<\/code><\/div>\n<div><code>systemctl start nginx<\/code><\/div>\n<\/div>\n<div><\/div>\n<h5>Install php-fpm and Dependencies:<\/h5>\n<p>Let&#8217;s install php-fpm and other php dependencies to run a php application on the host.<\/p>\n<p><code>yum install php-fpm php-cli php-mysql php-gd php-ldap php-odbc php-pdo php-pecl-memcache php-pear php-mbstring php-xml php-xmlrpc php-mbstring php-snmp php-soap<\/code><\/p>\n<p>As a part of security, make <em>expose_php\u00a0<\/em>to off on php.ini.<\/p>\n<p><code>vi \/etc\/php.ini<\/code><\/p>\n<blockquote><p>expose_php = Off<\/p><\/blockquote>\n<h5>Website on Nginx:<\/h5>\n<p>We had done all the dependency installation. Now, its time to create a website on nginx. Starts with User creation.<\/p>\n<p><code>useradd wordpress\u00a0-d \/var\/www\/wordpress<\/code><\/p>\n<p>Uncomment the line\u00a0<em>listen = <a href=\"http:\/\/127.0.0.1:9000\/\" target=\"_blank\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=http:\/\/127.0.0.1:9000&amp;source=gmail&amp;ust=1472521866756000&amp;usg=AFQjCNEsdMrVKmEbXx7JZ6UBSpYYPy-mAw\">127.0.0.1:9000<\/a>\u00a0<\/em>on\u00a0<b>\/etc\/php-fpm.d\/www.conf<\/b><\/p>\n<p><code>vim\u00a0\/etc\/php-fpm.d\/www.conf<\/code><\/p>\n<blockquote><p>listen = 127.0.0.1:9000<\/p><\/blockquote>\n<p>Uncomment\/add the following line on<b> \/etc\/nginx\/conf.d\/default.conf<\/b><\/p>\n<p><code>vi \/etc\/nginx\/conf.d\/default.conf<\/code><\/p>\n<blockquote>\n<div>location ~ \\.php$ {<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 root \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/var\/www\/wordpress\/html;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 fastcgi_pass \u00a0 <a href=\"http:\/\/127.0.0.1:9000\/\" target=\"_blank\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=http:\/\/127.0.0.1:9000&amp;source=gmail&amp;ust=1472521866756000&amp;usg=AFQjCNEsdMrVKmEbXx7JZ6UBSpYYPy-mAw\">127.0.0.1:9000<\/a>;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 fastcgi_index \u00a0index.php;<\/div>\n<div>\u00a0 \u00a0 # \u00a0 \u00a0fastcgi_param \u00a0SCRIPT_FILENAME \u00a0\/scripts$fastcgi_script_name;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 fastcgi_param \u00a0SCRIPT_FILENAME \u00a0 $document_root$fastcgi_script_name;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 include \u00a0 \u00a0 \u00a0 \u00a0fastcgi_params;<\/div>\n<div>\u00a0 \u00a0 }<\/div>\n<\/blockquote>\n<div>Create a new folder\u00a0<b>\/var\/www\/wordpress\/html\u00a0<\/b>and change the ownership to <em>wordpress<\/em>(in our case)<\/div>\n<div><code>mkdir -p \/var\/www\/wordpress\/html<\/code><\/div>\n<div><code>chown -R wordpress.wordpress\u00a0\/var\/www\/wordpress\/html<\/code><\/div>\n<div><\/div>\n<div>Add the following line on <b>\/etc\/nginx\/nginx.conf<\/b> inside &#8216;<em>http<\/em>&#8216; section<\/div>\n<div><code>vi \/etc\/nginx\/nginx.conf<\/code><\/div>\n<blockquote>\n<div>include \/etc\/nginx\/sites-enabled\/*.conf;<\/div>\n<\/blockquote>\n<div>Create a new file &#8216;<strong>domain<\/strong><b>.conf<\/b>&#8216; on the directory<b> \/etc\/nginx\/sites-enabled\/ <\/b>with the below content.<\/div>\n<div><code>vi \/etc\/nginx\/sites-enabled\/domain.conf<\/code><\/div>\n<blockquote>\n<div>\n<div>server {<\/div>\n<div>\u00a0 listen \u00a0 \u00a0 \u00a0 80;<\/div>\n<div>\u00a0 server_name sites.tldwww.sites.tld;<\/div>\n<div>\u00a0 location \/ {<\/div>\n<div>\u00a0 \u00a0 root \u00a0 \/var\/www\/wordpress\/html;<\/div>\n<div>\u00a0 \u00a0 index \u00a0index.php index.html index.htm;<\/div>\n<div>\u00a0 \u00a0 try_files $uri $uri\/ =404;<\/div>\n<div>\u00a0 \u00a0 }<\/div>\n<div><\/div>\n<div>\u00a0 error_page \u00a0 500 502 503 504 \u00a0\/50x.html;<\/div>\n<div>\u00a0 location = \/50x.html {<\/div>\n<div>\u00a0 \u00a0 root \u00a0 \/var\/www\/wordpress\/html;<\/div>\n<div>\u00a0 }<\/div>\n<div>\u00a0 location ~ \\.php$ {<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 root \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/var\/www\/wordpress\/html;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 fastcgi_pass \u00a0 <a href=\"http:\/\/127.0.0.1:9000\/\" target=\"_blank\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=http:\/\/127.0.0.1:9000&amp;source=gmail&amp;ust=1472521866756000&amp;usg=AFQjCNEsdMrVKmEbXx7JZ6UBSpYYPy-mAw\">127.0.0.1:9000<\/a>;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 fastcgi_index \u00a0index.php;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 fastcgi_param \u00a0SCRIPT_FILENAME \u00a0 $document_root$fastcgi_script_name;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 include \u00a0 \u00a0 \u00a0 \u00a0fastcgi_params;<\/div>\n<div>\u00a0 \u00a0 }<\/div>\n<div>}<\/div>\n<\/div>\n<\/blockquote>\n<div>\n<div>Restart the nginx and php-fpm service.<\/div>\n<div>\n<div><code>systemctl restart nginx<\/code><\/div>\n<div><code>systemctl restart php-fpm<\/code><\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div>All Done \ud83d\ude42 Now, its time to install wordpress on the host.<\/div>\n<div><\/div>\n<h5>WordPress installation:<\/h5>\n<p>Download wordpress latest version to domain documentroot<\/p>\n<p><code>cd \/var\/www\/wordpress\/html<\/code><\/p>\n<p><code>wget <a href=\"http:\/\/wordpress.com\/latest.tar.gz\" target=\"_blank\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=http:\/\/wordpress.com\/latest.tar.gz&amp;source=gmail&amp;ust=1472521866756000&amp;usg=AFQjCNGGQObnSUaBk19ayES_h_Iq16Hetw\">http:\/\/wordpress.com\/latest.<wbr \/>tar.gz<\/a><\/code><\/p>\n<div><code>tar -xzf latest.tar.gz<\/code><\/div>\n<div><code>cp -pr wordpress\/* .<\/code><\/div>\n<div><\/div>\n<div>Create a new database, new user and provided access to user. Access mysql prompt &#8216;<em>mysql&#8217; \u00a0<\/em>and run the following command.<\/div>\n<div>\n<p>&nbsp;<\/p>\n<div><code>create database wordpress;<\/code><\/div>\n<div><code>grant all privileges on wordpress.* to wordpress@localhost identified by &lt;password&gt;;<\/code><\/div>\n<div><code>flush privileges;<\/code><\/div>\n<\/div>\n<div><\/div>\n<div>Access the\u00a0<strong>domain.tld\u00a0<\/strong>in browser and complete the installation.<\/div>\n<div><\/div>\n<div>Comment your queries in this post incase if you face any issues.<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we are going post to explain installing nginx, PHP-fpm, mariadb on Centos 7. As a bouns, gonna add information on how to install wordpress on the host. Installation: Mariadb Installation: Let&#8217;s start with adding mariadb repository. Create a\u00a0MariaDB.repo\u00a0on \/etc\/yum.repos.d directory with the below content. vi \/etc\/yum.repos.d\/MariaDB.repo #&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">Install Nginx, PHP-fpm, Mariadb on Centos 7<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-867","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"h-entry","9":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"In this post, we are going post to explain installing nginx, PHP-fpm, mariadb on Centos 7. As a bouns, gonna add information on how to install wordpress on the host. Installation: Mariadb Installation: Let&#8217;s start with adding mariadb repository. Create a\u00a0MariaDB.repo\u00a0on \/etc\/yum.repos.d directory with the below content. vi \/etc\/yum.repos.d\/MariaDB.repo #&hellip; Continue Reading Install Nginx, PHP-fpm, Mariadb on Centos 7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-30T11:29:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-08-30T11:38:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"3837\" \/>\n\t<meta property=\"og:image:height\" content=\"2540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"Install Nginx, PHP-fpm, Mariadb on Centos 7\",\"datePublished\":\"2016-08-30T11:29:21+00:00\",\"dateModified\":\"2016-08-30T11:38:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/\"},\"wordCount\":431,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2016-08-30T11:29:21+00:00\",\"dateModified\":\"2016-08-30T11:38:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/install-nginx-php-fpm-mariadb-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install Nginx, PHP-fpm, Mariadb on Centos 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"In this post, we are going post to explain installing nginx, PHP-fpm, mariadb on Centos 7. As a bouns, gonna add information on how to install wordpress on the host. Installation: Mariadb Installation: Let&#8217;s start with adding mariadb repository. Create a\u00a0MariaDB.repo\u00a0on \/etc\/yum.repos.d directory with the below content. vi \/etc\/yum.repos.d\/MariaDB.repo #&hellip; Continue Reading Install Nginx, PHP-fpm, Mariadb on Centos 7","og_url":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2016-08-30T11:29:21+00:00","article_modified_time":"2016-08-30T11:38:23+00:00","og_image":[{"width":3837,"height":2540,"url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"Install Nginx, PHP-fpm, Mariadb on Centos 7","datePublished":"2016-08-30T11:29:21+00:00","dateModified":"2016-08-30T11:38:23+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/"},"wordCount":431,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/","url":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"datePublished":"2016-08-30T11:29:21+00:00","dateModified":"2016-08-30T11:38:23+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-php-fpm-mariadb-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install Nginx, PHP-fpm, Mariadb on Centos 7"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-dZ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=867"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/867\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}