{"id":800,"date":"2022-09-05T11:01:11","date_gmt":"2022-09-05T11:01:11","guid":{"rendered":"https:\/\/sunucucozumleri.com\/?p=800"},"modified":"2022-10-09T19:20:07","modified_gmt":"2022-10-09T19:20:07","slug":"nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu","status":"publish","type":"post","link":"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/","title":{"rendered":"Nginx MariaDB 10 ve PHP 5.5\/5.6 RHEL\/CentOS 7\/6 &#038; Fedora 20-24 Kurulumu"},"content":{"rendered":"<p>Merhabalar, makalemizde LEMP\u00a0(Linux, <a href=\"https:\/\/sunucucozumleri.com\/blog\/080-nginx-reverse-proxy-nasil-kurulur\/\">Nginx<\/a>, MariaDB, PHP)<br \/>\nCentos ve Fedora i\u00e7in<br \/>\n<strong>Nginx Kurulumu<\/strong><br \/>\n<strong>MariaDB 10 Kurulumu<\/strong><br \/>\n<strong>PHP 5.6<\/strong>\u00a0ve\u00a0<strong>PHP5.5<\/strong>\u00a0Kurulumuna ili\u015fkin bilgi payla\u015f\u0131m\u0131 ger\u00e7ekle\u015ftirece\u011fiz.<\/p>\n<p><strong>Nginx Nedir ?<\/strong><br \/>\nHTTP, SMTP, POP3 ve IMAP protokolleri i\u00e7in a\u00e7\u0131k kaynak, hafif ve y\u00fcksek performansl\u0131 Web sunucusu, ters <a href=\"https:\/\/sunucucozumleri.com\/blog\/073-proxy-nedir-proxy-nasil-kullanilabilir\/\">proxy<\/a> <a href=\"https:\/\/sunucucozumleri.com\/blog\/frontpage\/\">sunucu<\/a> ve ayr\u0131ca posta proxy sunucusudur. Daha fazla ayr\u0131nt\u0131 i\u00e7in http:\/\/wiki.nginx.org\/Overview adresini ziyaret edebilirsiniz.<\/p>\n<p><strong>PHP-FPM Nedir ?<\/strong><br \/>\nPHP-FPM, FastCGI \u0130\u015flem Y\u00f6neticisi anlam\u0131na gelir. A\u015f\u0131r\u0131 kaynak kullanan veya trafi\u011fi yo\u011fun olan web siteleri i\u00e7in ek yararl\u0131 \u00f6zellikler i\u00e7eren alternatif bir PHP FastCGI uygulamas\u0131d\u0131r. Daha fazla bilgi i\u00e7in http:\/\/php-fpm.org\/ adresini ziyaret edin.<\/p>\n<p>Kurulum<\/p>\n<p><strong>1. Ad\u0131m Repo Tan\u0131t\u0131mlar\u0131<\/strong><br \/>\n<strong>Centos 7 \u0130\u00e7in<\/strong><\/p>\n<pre># yum update &amp;&amp; yum install epel-release  \r\n# rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm  \r\n--------- For RHEL Only --------- \r\n# subscription-manager repos --enable=rhel-7-server-optional-rpms<\/pre>\n<p><strong>Centos 6 \u0130\u00e7in<\/strong><\/p>\n<pre># yum update &amp;&amp; yum install epel-release   \r\n# rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm  \r\n--------- For RHEL Only --------- \r\n# subscription-manager repos --enable=rhel-6-server-optional-rpms  \r\n\r\n\r\n<\/pre>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Makale \u0130\u00e7eri\u011fi<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"\u0130\u00e7indekiler Tablosunu A\u00e7\/Kapat\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#Fedora_24_icin\" >Fedora 24 i\u00e7in<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#Fedora_23_icin\" >Fedora 23 i\u00e7in<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#Fedora_22_Icin\" >Fedora 22 \u0130\u00e7in<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#Fedora_20_Icin\" >Fedora 20 \u0130\u00e7in<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#2_Adim_Nginx_ve_MariaDB_icin_Repo_Tanitimi_nano_-w_etcyumreposdnginxrepo\" >2. Ad\u0131m Nginx ve MariaDB i\u00e7in Repo Tan\u0131t\u0131m\u0131\nnano -w\u00a0\/etc\/yum.repos.d\/nginx.repo<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#RHEL_76\" >RHEL 7\/6:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#CentOS_76\" >CentOS 7\/6:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#PHP_55_CentOSRHEL_7_ve_Fedora_Icin\" >PHP 5.5 CentOS\/RHEL 7 ve Fedora \u0130\u00e7in<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/sunucucozumleri.com\/blog\/nginx-mariadb-10-ve-php-5-5-5-6-rhel-centos-7-6-fedora-20-24-kurulumu\/#PHP_56_CentOSRHEL_7_ve_Fedora_Icin\" >PHP 5.6 CentOS\/RHEL 7 ve Fedora \u0130\u00e7in<\/a><\/li><\/ul><\/nav><\/div>\n<h4><span class=\"ez-toc-section\" id=\"Fedora_24_icin\"><\/span>Fedora 24 i\u00e7in<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre># wget http:\/\/rpms.remirepo.net\/fedora\/remi-release-24.rpm \r\n# dnf install remi-release-24.rpm \r\n<\/pre>\n<h4><span class=\"ez-toc-section\" id=\"Fedora_23_icin\"><\/span>\nFedora 23 i\u00e7in<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre># wget http:\/\/rpms.remirepo.net\/fedora\/remi-release-23.rpm \r\n \r\n# dnf install remi-release-23.rpm \r\n<\/pre>\n<h4><span class=\"ez-toc-section\" id=\"Fedora_22_Icin\"><\/span>Fedora 22 \u0130\u00e7in<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre>wget http:\/\/rpms.remirepo.net\/fedora\/remi-release-22.rpm   \r\ndnf install remi-release-22.rpm<\/pre>\n<h4><span class=\"ez-toc-section\" id=\"Fedora_20_Icin\"><\/span>Fedora 20 \u0130\u00e7in<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre>wget http:\/\/rpms.remirepo.net\/fedora\/remi-release-20.rpm  \r\nyum install remi-release-20.rpm<\/pre>\n<h4><span class=\"ez-toc-section\" id=\"2_Adim_Nginx_ve_MariaDB_icin_Repo_Tanitimi_nano_-w_etcyumreposdnginxrepo\"><\/span>\n<strong>2. Ad\u0131m Nginx ve MariaDB i\u00e7in Repo Tan\u0131t\u0131m\u0131<\/p>\n<p><\/strong>nano -w\u00a0\/etc\/yum.repos.d\/nginx.repo<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"RHEL_76\"><\/span>RHEL 7\/6:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>&nbsp;<\/p>\n<pre> \r\n[nginx] \r\nname=nginx repo  \r\nbaseurl=http:\/\/nginx.org\/packages\/rhel\/$releasever\/$basearch\/  \r\ngpgcheck=0  \r\nenabled=1  \r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><span class=\"ez-toc-section\" id=\"CentOS_76\"><\/span>CentOS 7\/6:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>&nbsp;<\/p>\n<pre>[nginx]  \r\nname=nginx repo  \r\nbaseurl=http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/  \r\ngpgcheck=0  \r\nenabled=1 \r\n<\/pre>\n<p><strong>3. Ad\u0131m Kurulmas\u0131 gereken paketleri aktif edelim.<\/strong><\/p>\n<p>nano -w\u00a0\/etc\/yum.repos.d\/remi.repo<\/p>\n<h4><span class=\"ez-toc-section\" id=\"PHP_55_CentOSRHEL_7_ve_Fedora_Icin\"><\/span>PHP 5.5 CentOS\/RHEL 7 ve Fedora \u0130\u00e7in<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>&nbsp;<\/p>\n<pre>[remi-php55]\r\nname=Remi's PHP 5.5 RPM repository for Enterprise Linux 6 - $basearch\r\n#baseurl=http:\/\/rpms.remirepo.net\/enterprise\/6\/php55\/$basearch\/\r\nmirrorlist=http:\/\/rpms.remirepo.net\/enterprise\/6\/php55\/mirror\r\n# NOTICE: common dependencies are in \"remi-safe\"\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-remi\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><span class=\"ez-toc-section\" id=\"PHP_56_CentOSRHEL_7_ve_Fedora_Icin\"><\/span>PHP 5.6 CentOS\/RHEL 7 ve Fedora \u0130\u00e7in<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>&nbsp;<\/p>\n<pre>[remi-php56]\r\nname=Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - $basearch\r\n#baseurl=http:\/\/rpms.remirepo.net\/enterprise\/6\/php56\/$basearch\/\r\nmirrorlist=http:\/\/rpms.remirepo.net\/enterprise\/6\/php56\/mirror\r\n# NOTICE: common dependencies are in \"remi-safe\"\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-remi<\/pre>\n<p><strong>4. Paketlerimizi Y\u00fckleyelim. (Nginx, MariaDB, PHP-FPM)<\/strong><\/p>\n<pre>----------- Installing on RHEL\/CentOS 7\/6 ----------- \r\nyum --enablerepo=remi install nginx MariaDB-client MariaDB-server php php-common php-fpm \r\n----------- Installing on Fedora 22-24 ----------- \r\ndnf --enablerepo=remi install nginx MariaDB-client MariaDB-server php php-common php-fpm \r\n----------- Installing on Fedora 20-21 ----------- \r\nyum --enablerepo=remi install nginx MariaDB-client MariaDB-server php php-common php-fpm \r\n\r\n\r\n\r\n<\/pre>\n<p><strong>5. Ad\u0131m PHP \u00e7al\u0131\u015f\u0131labilir mod\u00fclleri y\u00fckleyelim.<\/strong><\/p>\n<pre>\r\n----------- Installing on RHEL\/CentOS 7\/6 ----------- \r\n# yum --enablerepo=remi install php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache \r\nphp-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo \r\n----------- Installing on Fedora 22-24 ----------- \r\n# dnf --enablerepo=remi install php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache\r\n php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo \r\n----------- Installing on Fedora 20-21 ----------- \r\n# yum --enablerepo=remi install php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache\r\n php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo<\/pre>\n<p><strong>6. Ad\u0131m Servisleri Aktif Edelim.<\/strong><\/p>\n<pre># systemctl start nginx \r\n# systemctl start mariadb \r\n# systemctl start php-fpm<\/pre>\n<p>service nginx <a href=\"https:\/\/sunucucozumleri.com\/blog\/reboot-ve-restart-arasindaki-farklar-nedir\/\">restart<\/a><\/p>\n<p>service php-fpm restart<\/p>\n<p>service mysqld restart<\/p>\n<p><strong>7. Ad\u0131m Nginx ayarlar\u0131n\u0131 yapal\u0131m<\/strong><\/p>\n<p>sunucucozumleri.com i\u00e7in hesap a\u00e7t\u0131\u011f\u0131m\u0131z\u0131 d\u00fc\u015f\u00fcnelim ve bu hesap, \/home\/sunucu\/ klasorunu kullanaca\u011f\u0131n\u0131 varsay\u0131yoruz.<\/p>\n<pre># mkdir -p \/home\/sunucu\/public_html \r\n# mkdir \/home\/sunucu\/logs \r\n# chown -R nginx:nginx \/home\/sunucu\/<\/pre>\n<p>&nbsp;<\/p>\n<pre># mkdir \/etc\/nginx\/sites-available \r\n# mkdir \/etc\/nginx\/sites-enabled<\/pre>\n<p>nano -w\u00a0\/etc\/nginx\/nginx.conf<\/p>\n<p>Dosyas\u0131n\u0131 a\u00e7\u0131yoruz ve a\u015fa\u011f\u0131da ki komutu ekliyoruz.<\/p>\n<pre>## Load virtual host conf files. ## \r\ninclude \/etc\/nginx\/sites-enabled\/*; \r\n\r\n\r\n<\/pre>\n<p>nano -w \/etc\/nginx\/sites-available\/sunucucozumleri.conf<\/p>\n<p>Dosyas\u0131n\u0131 olu\u015fturduktan sonra a\u015fa\u011f\u0131da bulunan komutlar\u0131 girelim.<\/p>\n<pre>server { \r\nlisten 80 default; \r\nserver_name sunucucozumleri.com; \r\naccess_log \/home\/sunucu\/logs\/access.log; \r\nerror_log \/home\/sunucu\/logs\/error.log; \r\nroot \/home\/sunucu\/public_html; \r\nlocation ~* \\.php$ { \r\nfastcgi_index   index.php; \r\nfastcgi_pass    127.0.0.1:9000; \r\ninclude         fastcgi_params; \r\nfastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name; \r\nfastcgi_param   SCRIPT_NAME        $fastcgi_script_name; \r\n} \r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<pre>ln -s \/etc\/nginx\/sites-available\/sunucucozumleri.conf \r\n\/etc\/nginx\/sites-enabled\/sunucucozumleri.conf<\/pre>\n<pre>nginx -t<\/pre>\n<p>\u0130\u015flemlerimiz bu kadar, Bol trafikli g\u00fcnler dileriz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Merhabalar, makalemizde LEMP\u00a0(Linux, Nginx, MariaDB, PHP) Centos ve Fedora i\u00e7in Nginx Kurulumu MariaDB 10 Kurulumu PHP 5.6\u00a0ve\u00a0PHP5.5\u00a0Kurulumuna ili\u015fkin bilgi payla\u015f\u0131m\u0131 ger\u00e7ekle\u015ftirece\u011fiz. Nginx Nedir ? HTTP, SMTP, POP3 ve IMAP protokolleri i\u00e7in a\u00e7\u0131k kaynak, hafif ve y\u00fcksek performansl\u0131 Web sunucusu, ters proxy sunucu ve ayr\u0131ca posta proxy sunucusudur. Daha fazla ayr\u0131nt\u0131 i\u00e7in http:\/\/wiki.nginx.org\/Overview adresini ziyaret edebilirsiniz. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1456,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/comments?post=800"}],"version-history":[{"count":0,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/800\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media\/1456"}],"wp:attachment":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media?parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/categories?post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/tags?post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}