{"id":602,"date":"2025-09-10T15:57:26","date_gmt":"2025-09-10T12:57:26","guid":{"rendered":"https:\/\/destek.narhost.com\/?p=602"},"modified":"2025-11-04T06:51:33","modified_gmt":"2025-11-04T03:51:33","slug":"almalinux-apache2-php-7-1-ve-mariadb-10-kurulumu","status":"publish","type":"post","link":"https:\/\/narhost.com\/destek\/almalinux-apache2-php-7-1-ve-mariadb-10-kurulumu\/","title":{"rendered":"Almalinux Apache2, PHP 7.1 ve MariaDB 10 Kurulumu"},"content":{"rendered":"<p data-start=\"221\" data-end=\"465\">Sunucu y\u00f6netiminde g\u00fcvenli ve kararl\u0131 yaz\u0131l\u0131m s\u00fcr\u00fcmleri b\u00fcy\u00fck \u00f6nem ta\u015f\u0131r. <strong data-start=\"295\" data-end=\"306\">Narhost<\/strong> olarak PHP 7.1, Apache (Httpd) ve MariaDB 10 kurulumlar\u0131n\u0131 manuel olarak ger\u00e7ekle\u015ftirmek isteyen kullan\u0131c\u0131lar\u0131m\u0131z i\u00e7in ad\u0131m ad\u0131m kurulum rehberini haz\u0131rlad\u0131k.<\/p>\n<hr data-start=\"467\" data-end=\"470\" \/>\n<h3 data-start=\"472\" data-end=\"497\">\u2705 1. PHP 7.1 Kurulumu<\/h3>\n<p data-start=\"499\" data-end=\"589\">PHP 7.1 kurulumu i\u00e7in \u00f6ncelikle gerekli havuzlar\u0131 (repository) etkinle\u015ftirmeniz gerekiyor:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">yum install yum-utils -y<br \/>\nyum install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm -y<br \/>\nyum-config-manager --<span class=\"hljs-built_in\">enable<\/span> remi-php71<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"738\" data-end=\"800\">Ard\u0131ndan PHP ve yayg\u0131n kullan\u0131lan mod\u00fclleri y\u00fckleyebilirsiniz:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"902\" data-end=\"952\">\u2705 Kurulum sonras\u0131 PHP s\u00fcr\u00fcm\u00fcn\u00fc kontrol etmek i\u00e7in:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">php -v<br \/>\n<\/code><\/div>\n<\/div>\n<hr data-start=\"974\" data-end=\"977\" \/>\n<h3 data-start=\"979\" data-end=\"1024\">\u2705 2. Apache (Httpd) Web Sunucusu Kurulumu<\/h3>\n<p data-start=\"1026\" data-end=\"1138\">PHP kurulumu sonras\u0131 web sunucusu olarak Apache\u2019yi aktif hale getirmek i\u00e7in a\u015fa\u011f\u0131daki ad\u0131mlar\u0131 izleyebilirsiniz:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">yum install httpd -y<br \/>\nsystemctl <span class=\"hljs-built_in\">enable<\/span> httpd<br \/>\nsystemctl start httpd<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"1219\" data-end=\"1268\">Apache\u2019nin ba\u015far\u0131yla \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131 do\u011frulamak i\u00e7in:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">systemctl status httpd<br \/>\n<\/code><\/div>\n<\/div>\n<hr data-start=\"1306\" data-end=\"1309\" \/>\n<h3 data-start=\"1311\" data-end=\"1341\">\u2705 3. MariaDB 10.1 Kurulumu<\/h3>\n<p data-start=\"1343\" data-end=\"1457\">MySQL yerine a\u00e7\u0131k kaynak kodlu MariaDB tercih eden kullan\u0131c\u0131lar\u0131m\u0131z i\u00e7in MariaDB 10.1 kurulumu \u015fu \u015fekilde yap\u0131l\u0131r:<\/p>\n<h4 data-start=\"1459\" data-end=\"1493\">MariaDB Repository Tan\u0131mlama:<\/h4>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\"><span class=\"hljs-built_in\">cat<\/span> &gt; \/etc\/yum.repos.d\/MariaDB.repo &lt;&lt;<span class=\"hljs-string\">EOF<br \/>\n[mariadb]<br \/>\nname = MariaDB<br \/>\nbaseurl = http:\/\/yum.mariadb.org\/10.1\/centos7-amd64<br \/>\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB<br \/>\ngpgcheck=1<br \/>\nEOF<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<h4 data-start=\"1693\" data-end=\"1733\">MariaDB Sunucu ve \u0130stemci Kurulumu:<\/h4>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">yum install MariaDB-server MariaDB-client -y<br \/>\n<\/code><\/div>\n<\/div>\n<h4 data-start=\"1793\" data-end=\"1843\">Servisi Ba\u015flatma ve Otomatik Ba\u015flang\u0131ca Alma:<\/h4>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">systemctl <span class=\"hljs-built_in\">enable<\/span> mariadb<br \/>\nsystemctl start mariadb<br \/>\nsystemctl status mariadb<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"1932\" data-end=\"1989\">\u2705 Kurulum sonras\u0131 g\u00fcvenlik ayarlar\u0131n\u0131 yap\u0131land\u0131rmak i\u00e7in:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">mysql_secure_installation<\/code><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Sunucu y\u00f6netiminde g\u00fcvenli ve kararl\u0131 yaz\u0131l\u0131m s\u00fcr\u00fcmleri b\u00fcy\u00fck \u00f6nem ta\u015f\u0131r. Narhost olarak PHP 7.1, Apache (Httpd) ve MariaDB 10 kurulumlar\u0131n\u0131 manuel olarak ger\u00e7ekle\u015ftirmek isteyen kullan\u0131c\u0131lar\u0131m\u0131z i\u00e7in ad\u0131m ad\u0131m kurulum rehberini haz\u0131rlad\u0131k.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[49],"class_list":["post-602","post","type-post","status-publish","format-standard","hentry","category-vps-server","tag-centos"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/comments?post=602"}],"version-history":[{"count":3,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"predecessor-version":[{"id":1424,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/602\/revisions\/1424"}],"wp:attachment":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}