{"id":25451,"date":"2020-11-29T17:42:29","date_gmt":"2020-11-29T10:42:29","guid":{"rendered":"https:\/\/tom.ji42.com\/?p=25451"},"modified":"2021-01-05T09:45:01","modified_gmt":"2021-01-05T02:45:01","slug":"how-to-install-apache-php-mysql-phpmyadmin-on-centos-7-lamp","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=25451","title":{"rendered":"How To Install Apache PHP MySQL phpMyAdmin On CentOS 7 (LAMP)"},"content":{"rendered":"<p id=\"0ca5\" class=\"hf hg fn hh b hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx hy cl dw\" data-selectable-paragraph=\"\">\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Web Server \u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e17\u0e35\u0e48\u0e04\u0e38\u0e49\u0e19\u0e2b\u0e39 \u0e04\u0e37\u0e2d LAMP (\u0e2b\u0e25\u0e2d\u0e14\u0e44\u0e1f\u0e46\u0e46\u0e46\u0e46\u0e46) \u0e40\u0e23\u0e34\u0e48\u0e21\u0e01\u0e31\u0e19\u0e40\u0e25\u0e22<\/p>\n<blockquote class=\"hz ia ib\">\n<p id=\"103d\" class=\"hf hg ic hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\"><strong class=\"hh by\">L<\/strong>\u00a0\u0e15\u0e31\u0e27\u0e41\u0e23\u0e01\u0e04\u0e37\u0e2d Linux ,\u00a0<strong class=\"hh by\">A<\/strong>\u00a0\u0e04\u0e37\u0e2d Apache \u0e2b\u0e23\u0e37\u0e2d httpd,\u00a0<strong class=\"hh by\">M<\/strong>\u00a0\u0e04\u0e37\u0e2d MySQL \u0e2b\u0e23\u0e37\u0e2d MariaDB \u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u00a0<strong class=\"hh by\">P<\/strong>\u00a0\u0e04\u0e37\u0e2d PHP \u0e04\u0e23\u0e31\u0e1a<\/p>\n<\/blockquote>\n<p id=\"32ba\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">0. \u0e17\u0e33\u0e01\u0e32\u0e23 Update Package list \u0e08\u0e32\u0e01 Repository \u0e01\u0e48\u0e2d\u0e19\u0e41\u0e25\u0e49\u0e27\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"f8db\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@server ~]#yum update -y<\/span><\/pre>\n<p id=\"5073\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">1. \u0e17\u0e33\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 HTTP Server \u0e14\u0e49\u0e27\u0e22 httpd package \u0e41\u0e25\u0e30\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e34\u0e14 Service \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"63dc\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@server ~]#yum install -y httpd<\/span><span id=\"ad63\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@server ~]#systemctl start httpd<\/span><span id=\"5936\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@server ~]#systemctl enable httpd<\/span><\/pre>\n<p id=\"4762\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a httpd services<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"0e6b\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@server ~]#systemctl status httpd<\/span><span id=\"8cb6\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u25cf httpd.service \u2014 The Apache HTTP Server<\/span><span id=\"081f\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Loaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; disabled; vendor preset: disabled)<\/span><span id=\"efc6\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Active: active (running) since Thu 2017\u201303\u201309 01:51:52 ICT; 1min 56s ago<\/span><span id=\"bd8a\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Docs: man:httpd(8)<\/span><span id=\"3227\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">man:apachectl(8)<\/span><span id=\"92ae\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Main PID: 2158 (httpd)<\/span><span id=\"8a40\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Status: \u201cTotal requests: 0; Current requests\/sec: 0; Current traffic: 0 B\/sec\u201d<\/span><span id=\"2ea0\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">CGroup: \/system.slice\/httpd.service<\/span><span id=\"6272\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u251c\u25002158 \/usr\/sbin\/httpd -DFOREGROUND<\/span><span id=\"ee3c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u251c\u25002159 \/usr\/sbin\/httpd -DFOREGROUND<\/span><span id=\"fef0\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u251c\u25002160 \/usr\/sbin\/httpd -DFOREGROUND<\/span><span id=\"ac78\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u251c\u25002161 \/usr\/sbin\/httpd -DFOREGROUND&lt;br&gt;<\/span><span id=\"7bb8\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u251c\u25002162 \/usr\/sbin\/httpd -DFOREGROUND<\/span><span id=\"76d7\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2514\u25002163 \/usr\/sbin\/httpd -DFOREGROUND<\/span><span id=\"95c5\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Mar 09 01:51:52 server01.thaiops.com systemd[1]: Starting The Apache HTTP Serv\u2026.<\/span><span id=\"1b79\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Mar 09 01:51:52 server01.thaiops.com systemd[1]: Started The Apache HTTP Server.<\/span><span id=\"4486\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Hint: Some lines were ellipsized, use -l to show in full.<\/span><span id=\"2bfc\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><span id=\"772f\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# ss -tln<\/span><span id=\"3fc8\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">State Recv-Q Send-Q Local Address:Port Peer Address:Port<\/span><span id=\"4539\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">LISTEN 0 128 *:22 *:*<\/span><span id=\"0cf4\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">LISTEN 0 128 :::80 :::*<\/span><span id=\"ed02\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><\/pre>\n<p id=\"b9c5\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e42\u0e14\u0e22\u0e40\u0e1b\u0e34\u0e14 Web Browser \u0e41\u0e25\u0e49\u0e27\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e0a\u0e48\u0e2d\u0e07 URL \u0e40\u0e1b\u0e47\u0e19\u00a0<strong class=\"hh by\">http:\/\/IP-Address-Server<\/strong><!--more--><\/p>\n<figure class=\"ii ij ik il im jd fa fb paragraph-image\">\n<div class=\"je jf ae jg w jh\" tabindex=\"0\" role=\"button\">\n<div class=\"fa fb jc\">\n<div class=\"jm s ae jn\">\n<div class=\"jo jp s\">\n<div class=\"du ji fd eu er jj w dp jk jl\"><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"qe qf fd eu er jj w c\" src=\"https:\/\/miro.medium.com\/max\/994\/0*paW3Oe_GZLQPeAqw.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/276\/0*paW3Oe_GZLQPeAqw.png 276w, https:\/\/miro.medium.com\/max\/552\/0*paW3Oe_GZLQPeAqw.png 552w, https:\/\/miro.medium.com\/max\/640\/0*paW3Oe_GZLQPeAqw.png 640w, https:\/\/miro.medium.com\/max\/700\/0*paW3Oe_GZLQPeAqw.png 700w\" alt=\"Image for post\" width=\"994\" height=\"678\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"0d90\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">2. \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 SQL Server \u0e41\u0e25\u0e30 Configuration \u0e14\u0e49\u0e27\u0e22 MariaDB \u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"af6f\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#yum install -y mariadb mariadb-server mysql<\/span><span id=\"b357\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#systemctl start mariadb<\/span><span id=\"83d6\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#systemctl enable mariadb<\/span><span id=\"34a1\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Created symlink from \/etc\/systemd\/system\/multi-user.target.wants\/mariadb.service to \/usr\/lib\/systemd\/system\/mariadb.service.<\/span><span id=\"f574\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><\/pre>\n<p id=\"e828\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e17\u0e33\u0e01\u0e32\u0e23 Secure Installation \u0e02\u0e2d\u0e07 Mariadb \u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"2f22\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# mysql_secure_installation<\/span><span id=\"30ec\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<\/span><span id=\"9efb\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!<\/span><span id=\"af8c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">In order to log into MariaDB to secure it, we\u2019ll need the current<\/span><span id=\"2c2a\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">password for the root user. If you\u2019ve just installed MariaDB, and<\/span><span id=\"6575\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">you haven\u2019t set the root password yet, the password will be blank,<\/span><span id=\"b9fa\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">so you should just press enter here.<\/span><span id=\"92e2\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Enter current password for root (enter for none):<\/span><span id=\"7447\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">OK, successfully used password, moving on\u2026<\/span><span id=\"4c0c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Setting the root password ensures that nobody can log into the MariaDB<\/span><span id=\"f2e0\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">root user without the proper authorisation.<\/span><span id=\"5960\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Set root password? [Y\/n] Y<\/span><span id=\"91eb\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">New password:<\/span><span id=\"87a4\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Re-enter new password:<\/span><span id=\"09b2\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Password updated successfully!<\/span><span id=\"01b6\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Reloading privilege tables..<\/span><span id=\"77db\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2026 Success!<\/span><span id=\"5bbb\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">By default, a MariaDB installation has an anonymous user, allowing anyone<\/span><span id=\"3b25\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">to log into MariaDB without having to have a user account created for<\/span><span id=\"08c4\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">them. This is intended only for testing, and to make the installation<\/span><span id=\"8d1f\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">go a bit smoother. You should remove them before moving into a<\/span><span id=\"98b4\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">production environment.<\/span><span id=\"dde4\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Remove anonymous users? [Y\/n] Y<\/span><span id=\"d9b3\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2026 Success!<\/span><span id=\"4020\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Normally, root should only be allowed to connect from \u2018localhost\u2019. This<\/span><span id=\"8ebe\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">ensures that someone cannot guess at the root password from the network.<\/span><span id=\"d5eb\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Disallow root login remotely? [Y\/n] Y<\/span><span id=\"d77c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2026 Success!<\/span><span id=\"ce68\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">By default, MariaDB comes with a database named \u2018test\u2019 that anyone can<\/span><span id=\"cfae\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">access. This is also intended only for testing, and should be removed<\/span><span id=\"88e2\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">before moving into a production environment.<\/span><span id=\"4c43\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Remove test database and access to it? [Y\/n] Y<\/span><span id=\"ffa5\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">- Dropping test database\u2026<\/span><span id=\"4ace\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2026 Success!<\/span><span id=\"f181\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">- Removing privileges on test database\u2026<\/span><span id=\"4a57\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2026 Success!<\/span><span id=\"37eb\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Reloading the privilege tables will ensure that all changes made so far<\/span><span id=\"09b1\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">will take effect immediately.<\/span><span id=\"9543\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Reload privilege tables now? [Y\/n] Y<\/span><span id=\"ebb9\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2026 Success!<\/span><span id=\"bdf0\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Cleaning up\u2026<\/span><span id=\"742c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">All done! If you\u2019ve completed all of the above steps, your MariaDB<\/span><span id=\"3524\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">installation should now be secure.<\/span><span id=\"6b82\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Thanks for using MariaDB!<\/span><span id=\"78c2\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><\/pre>\n<p id=\"f7e8\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a MySQL services<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"e909\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# systemctl status mariadb<\/span><span id=\"857b\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u25cf mariadb.service \u2014 MariaDB database server<\/span><span id=\"5195\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Loaded: loaded (\/usr\/lib\/systemd\/system\/mariadb.service; disabled; vendor preset: disabled)<\/span><span id=\"75e4\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Active: active (running) since Thu 2017\u201303\u201309 02:09:19 ICT; 18s ago<\/span><span id=\"093a\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Process: 2382 ExecStartPost=\/usr\/libexec\/mariadb-wait-ready $MAINPID (code=exited, status=0\/SUCCESS)<\/span><span id=\"f4b2\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Process: 2302 ExecStartPre=\/usr\/libexec\/mariadb-prepare-db-dir %n (code=exited, status=0\/SUCCESS)<\/span><span id=\"de74\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Main PID: 2381 (mysqld_safe)<\/span><span id=\"6f8e\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">CGroup: \/system.slice\/mariadb.service<\/span><span id=\"5f6c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u251c\u25002381 \/bin\/sh \/usr\/bin\/mysqld_safe \u2014 basedir=\/usr<\/span><span id=\"2d11\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2514\u25002538 \/usr\/libexec\/mysqld \u2014 basedir=\/usr \u2014 datadir=\/var\/lib\/mysql -\u2026<\/span><span id=\"afb9\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><\/pre>\n<p id=\"86bf\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 MySQL services<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"6c7b\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# mysql -u root -p<\/span><span id=\"9408\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Enter password:<\/span><span id=\"e6f5\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Welcome to the MariaDB monitor. Commands end with ; or \\g.<\/span><span id=\"3129\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Your MariaDB connection id is 10<\/span><span id=\"a39e\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Server version: 5.5.52-MariaDB MariaDB Server<\/span><span id=\"d2a1\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Copyright \u00a9 2000, 2016, Oracle, MariaDB Corporation Ab and others.<\/span><span id=\"a93f\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Type \u2018help;\u2019 or \u2018\\h\u2019 for help. Type \u2018\\c\u2019 to clear the current input statement.<\/span><span id=\"1e4c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">MariaDB [(none)]&gt; show databases;<\/span><span id=\"6f11\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">+ \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 +<\/span><span id=\"ecfe\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">| Database |<\/span><span id=\"741d\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">+ \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 +<\/span><span id=\"693f\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">| information_schema |<\/span><span id=\"f666\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">| mysql |<\/span><span id=\"39bb\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">| performance_schema |<\/span><span id=\"48b9\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">+ \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 \u2014 +<\/span><span id=\"cc75\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">3 rows in set (0.00 sec)<\/span><span id=\"11ea\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">MariaDB [(none)]&gt; exit<\/span><span id=\"d650\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Bye<\/span><span id=\"2d50\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><\/pre>\n<p id=\"4f51\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">3. \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 PHP Package \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"491f\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@server ~]# yum install php php-mysql -y<\/span><\/pre>\n<p id=\"8536\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a PHP version<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"a050\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# php \u2014 version<\/span><span id=\"3e19\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02)<\/span><span id=\"3871\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Copyright \u00a9 1997\u20132013 The PHP Group<\/span><span id=\"94cc\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Zend Engine v2.4.0, Copyright \u00a9 1998\u20132013 Zend Technologies<\/span><span id=\"8752\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><\/pre>\n<p id=\"9376\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e17\u0e33\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02 Timezone \u0e40\u0e1b\u0e47\u0e19 \u201cAsia\/Bangkok\u201d \u0e1a\u0e19 PHP Configuration \u0e44\u0e1f\u0e25\u0e4c php.ini \u0e15\u0e32\u0e21\u0e02\u0e49\u0e32\u0e07\u0e25\u0e48\u0e32\u0e07<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"09bb\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#vi \/etc\/php.ini<\/span><span id=\"73db\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[Date]<\/span><span id=\"adeb\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">; Defines the default timezone used by the date functions<\/span><span id=\"1b07\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">; <a class=\"cq jb\" href=\"http:\/\/php.net\/date.timezone\" rel=\"noopener nofollow\">http:\/\/php.net\/date.timezone<\/a><\/span><span id=\"411a\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">date.timezone = \u201cAsia\/Bangkok\u201d<\/span><span id=\"cf30\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><\/pre>\n<p id=\"e887\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e17\u0e33\u0e01\u0e32\u0e23 Restart httpd \u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07 \u0e40\u0e1e\u0e37\u0e48\u0e2d Reload Configure \u0e02\u0e49\u0e32\u0e07\u0e15\u0e49\u0e19<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"bb5e\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@server ~]#systemctl restart httpd<\/span><span id=\"2ec5\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@server ~]#systemctl status httpd<\/span><\/pre>\n<p id=\"5a7a\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 PHP \u0e1a\u0e19 httpd<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"acf5\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#mkdir web<\/span><span id=\"b567\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#cd \/root\/web<\/span><span id=\"c43d\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 web]#echo \u201c&lt;?php phpinfo(); ?&gt;\u201d &gt;&gt; index.php<\/span><span id=\"3711\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 web]#<\/span><span id=\"0bba\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 web]# ll<\/span><span id=\"1b5e\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">total 4<\/span><span id=\"317d\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">-rw-r \u2014 r \u2014 1 root root 20 Mar 9 02:31 index.php<\/span><span id=\"790b\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 web]#<\/span><span id=\"d703\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 web]# php -S 0.0.0.0:8080<\/span><span id=\"35cc\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">PHP 5.4.16 Development Server started at Thu Mar 9 02:40:23 2017<\/span><span id=\"75e8\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Listening on <\/span><span id=\"6e81\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Document root is \/root\/web<\/span><span id=\"d3d8\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Press Ctrl-C to quit.<\/span><\/pre>\n<p id=\"d8c3\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e34\u0e14 Web Browser \u0e41\u0e25\u0e49\u0e27\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e0a\u0e48\u0e2d\u0e07 URL \u0e40\u0e1b\u0e47\u0e19\u00a0<strong class=\"hh by\">http:\/\/IP-Address-Server:8080<\/strong><\/p>\n<figure class=\"ii ij ik il im jd fa fb paragraph-image\">\n<div class=\"je jf ae jg w jh\" tabindex=\"0\" role=\"button\">\n<div class=\"fa fb jt\">\n<div class=\"jm s ae jn\">\n<div class=\"ju jp s\">\n<div class=\"du ji fd eu er jj w dp jk jl\"><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"qe qf fd eu er jj w c\" src=\"https:\/\/miro.medium.com\/max\/996\/0*HodFrVG3cnkvJ8Br.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/276\/0*HodFrVG3cnkvJ8Br.png 276w, https:\/\/miro.medium.com\/max\/552\/0*HodFrVG3cnkvJ8Br.png 552w, https:\/\/miro.medium.com\/max\/640\/0*HodFrVG3cnkvJ8Br.png 640w, https:\/\/miro.medium.com\/max\/700\/0*HodFrVG3cnkvJ8Br.png 700w\" alt=\"Image for post\" width=\"996\" height=\"678\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"35f9\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e16\u0e49\u0e32\u0e40\u0e1b<span id=\"rmm\">\u0e34<\/span>\u0e14\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e14\u0e49\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49 \u0e01\u0e47\u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e31\u0e19\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 PHP \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e01\u0e47\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19 Ctrl+C \u0e41\u0e25\u0e30\u0e25\u0e1a Folder web \u0e17\u0e34\u0e49\u0e07\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"d102\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 web]# php -S 0.0.0.0:8080<\/span><span id=\"26ad\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">PHP 5.4.16 Development Server started at Thu Mar 9 02:40:23 2017<\/span><span id=\"658a\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Listening on <\/span><span id=\"e34a\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Document root is \/root\/web<\/span><span id=\"bf95\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Press Ctrl-C to quit.<\/span><span id=\"35fb\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[Thu Mar 9 02:40:34 2017] 172.25.1.1:17707 [200]: \/<\/span><span id=\"0517\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[Thu Mar 9 02:40:34 2017] 172.25.1.1:17708 [404]: \/favicon.ico \u2014 No such file or directory<\/span><span id=\"874c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">^C<\/span><span id=\"a090\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 web]#<\/span><span id=\"17d5\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 web]# cd ~<\/span><span id=\"3e10\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# rm -rf web<\/span><span id=\"4d32\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]#<\/span><\/pre>\n<p id=\"fdbf\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">4. \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 PhpMyAdmin \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"75f5\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# yum install epel-release -y<\/span><span id=\"6a0c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# yum install phpmyadmin -y<\/span><\/pre>\n<p id=\"7249\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e17\u0e33\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e1f\u0e25\u0e4c phpMyAdmin.conf \u0e17\u0e35\u0e48 Apache \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"07e5\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 \/]# httpd -v<\/span><span id=\"9178\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Server version: Apache\/2.4.6 (CentOS)<\/span><span id=\"4a66\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Server built: Nov 14 2016 18:04:44<\/span><span id=\"89d6\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 \/]#<\/span><span id=\"59c4\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# vi \/etc\/httpd\/conf.d\/phpMyAdmin.conf<\/span><span id=\"cf70\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">\u2026\u2026\u2026.<\/span><span id=\"621e\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Alias \/phpMyAdmin \/usr\/share\/phpMyAdmin<\/span><span id=\"f7d2\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Alias \/phpmyadmin \/usr\/share\/phpMyAdmin<\/span><span id=\"d97c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;Directory \/usr\/share\/phpMyAdmin\/&gt;<\/span><span id=\"bd83\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">AddDefaultCharset UTF-8<\/span><span id=\"3ebc\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;IfModule mod_authz_core.c&gt;<\/span><span id=\"7bf1\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\"># Apache 2.4<\/span><span id=\"ec69\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;RequireAny&gt;<\/span><span id=\"5e4d\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Require ip 127.0.0.1<\/span><span id=\"65e8\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Require ip ::1<\/span><span id=\"21bc\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Require ip 172.25.1.0\/24<\/span><span id=\"e171\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;\/RequireAny&gt;<\/span><span id=\"298e\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;\/IfModule&gt;<\/span><span id=\"9427\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;IfModule !mod_authz_core.c&gt;<\/span><span id=\"5c47\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\"># Apache 2.2<\/span><span id=\"d4ca\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Order Deny,Allow<\/span><span id=\"66b0\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Deny from All<\/span><span id=\"f610\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Allow from 127.0.0.1<\/span><span id=\"8255\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Allow from ::1<\/span><span id=\"e8ad\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;\/IfModule&gt;<\/span><span id=\"76b6\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;\/Directory&gt;<\/span><span id=\"f13c\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;Directory \/usr\/share\/phpMyAdmin\/setup\/&gt;<\/span><span id=\"5539\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;IfModule mod_authz_core.c&gt;<\/span><span id=\"5006\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\"># Apache 2.4<\/span><span id=\"8fe3\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;RequireAny&gt;<\/span><span id=\"e682\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Require ip 127.0.0.1<\/span><span id=\"34ee\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Require ip ::1<\/span><span id=\"0359\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;\/RequireAny&gt;<\/span><span id=\"c7d5\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;\/IfModule&gt;<\/span><span id=\"177b\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;IfModule !mod_authz_core.c&gt;<\/span><span id=\"e739\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\"># Apache 2.2<\/span><span id=\"a2ba\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Order Deny,Allow<\/span><span id=\"2c0f\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Deny from All<\/span><span id=\"b6df\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Allow from 127.0.0.1<\/span><span id=\"8eff\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">Allow from ::1<\/span><span id=\"0349\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;\/IfModule&gt;<\/span><span id=\"f76b\" class=\"dw iq ir fn is b cn iw ix iy iz ja iu s iv\" data-selectable-paragraph=\"\">&lt;\/Directory&gt;<\/span><\/pre>\n<p id=\"e471\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u2026\u2026\u2026<\/p>\n<blockquote class=\"hz ia ib\">\n<p id=\"4a82\" class=\"hf hg ic hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">Require ip 172.25.1.0\/24 \u0e04\u0e37\u0e2d Network Address \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e43\u0e2b\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 PhpMyAdmin \u0e44\u0e14\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n<\/blockquote>\n<p id=\"36bd\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e40\u0e21\u0e37\u0e48\u0e2d Configure \u0e40\u0e2a\u0e23\u0e47\u0e08\u0e02\u0e49\u0e32\u0e07\u0e15\u0e49\u0e19\u0e01\u0e47\u0e2d\u0e31\u0e19\u0e40\u0e0a\u0e34\u0e0d Restart \u0e15\u0e31\u0e27 httpd \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre class=\"ii ij ik il im in io ip\"><span id=\"2b9f\" class=\"dw iq ir fn is b cn it iu s iv\" data-selectable-paragraph=\"\">[root@thaiops01 ~]# systemctl restart httpd<\/span><\/pre>\n<p id=\"ba64\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e34\u0e14 Web Browser \u0e41\u0e25\u0e49\u0e27\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e0a\u0e48\u0e2d\u0e07 URL \u0e40\u0e1b\u0e47\u0e19\u00a0<strong class=\"hh by\">http:\/\/IP-Address-Server\/phpmyadmin<\/strong><strong class=\"hh by\">\u00a0<\/strong>\u0e41\u0e25\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e17\u0e14\u0e2a\u0e2d\u0e1a Login \u0e14\u0e49\u0e27\u0e22 root \u0e41\u0e25\u0e30\u0e23\u0e2b\u0e31\u0e2a\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e15\u0e31\u0e49\u0e07\u0e44\u0e27\u0e49\u0e43\u0e19\u0e02\u0e49\u0e2d 2 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<figure class=\"ii ij ik il im jd fa fb paragraph-image\">\n<div class=\"je jf ae jg w jh\" tabindex=\"0\" role=\"button\">\n<div class=\"fa fb jv\">\n<div class=\"jm s ae jn\">\n<div class=\"jw jp s\">\n<div class=\"du ji fd eu er jj w dp jk jl\"><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"qe qf fd eu er jj w c\" src=\"https:\/\/miro.medium.com\/max\/949\/0*rJPE_ChkULf6WgPt.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/276\/0*rJPE_ChkULf6WgPt.png 276w, https:\/\/miro.medium.com\/max\/552\/0*rJPE_ChkULf6WgPt.png 552w, https:\/\/miro.medium.com\/max\/640\/0*rJPE_ChkULf6WgPt.png 640w, https:\/\/miro.medium.com\/max\/700\/0*rJPE_ChkULf6WgPt.png 700w\" alt=\"Image for post\" width=\"949\" height=\"680\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<figure class=\"ii ij ik il im jd fa fb paragraph-image\">\n<div class=\"je jf ae jg w jh\" tabindex=\"0\" role=\"button\">\n<div class=\"fa fb jx\">\n<div class=\"jm s ae jn\">\n<div class=\"jy jp s\">\n<div class=\"du ji fd eu er jj w dp jk jl\"><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"qe qf fd eu er jj w c\" src=\"https:\/\/miro.medium.com\/max\/1038\/0*F7get25ZSTaS3mme.png\" sizes=\"auto, 700px\" srcset=\"https:\/\/miro.medium.com\/max\/276\/0*F7get25ZSTaS3mme.png 276w, https:\/\/miro.medium.com\/max\/552\/0*F7get25ZSTaS3mme.png 552w, https:\/\/miro.medium.com\/max\/640\/0*F7get25ZSTaS3mme.png 640w, https:\/\/miro.medium.com\/max\/700\/0*F7get25ZSTaS3mme.png 700w\" alt=\"Image for post\" width=\"1038\" height=\"679\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/figure>\n<p id=\"c591\" class=\"hf hg fn hh b hi id hj hk hl ie hm hn ho if hp hq hr ig hs ht hu ih hv hw hy cl dw\" data-selectable-paragraph=\"\">\u0e01\u0e47\u0e19\u0e48\u0e32\u0e08\u0e30\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e21\u0e1a\u0e39\u0e23\u0e13\u0e4c\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a \u0e02\u0e2d\u0e08\u0e1a\u0e41\u0e04\u0e48\u0e19\u0e35\u0e49\u0e01\u0e48\u0e2d\u0e19 \u0e40\u0e14\u0e35\u0e4b\u0e22\u0e27\u0e08\u0e30\u0e22\u0e32\u0e27\u0e44\u0e1b\u0e04\u0e23\u0e31\u0e1a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Web Server \u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e17\u0e35\u0e48\u0e04\u0e38\u0e49\u0e19\u0e2b\u0e39 \u0e04\u0e37\u0e2d LAMP (\u0e2b\u0e25\u0e2d\u0e14\u0e44\u0e1f\u0e46\u0e46\u0e46\u0e46\u0e46) \u0e40\u0e23\u0e34\u0e48\u0e21\u0e01\u0e31\u0e19\u0e40\u0e25\u0e22 L\u00a0\u0e15\u0e31\u0e27\u0e41\u0e23\u0e01\u0e04\u0e37\u0e2d Linux ,\u00a0A\u00a0\u0e04\u0e37\u0e2d Apache \u0e2b\u0e23\u0e37\u0e2d httpd,\u00a0M\u00a0\u0e04\u0e37\u0e2d MySQL \u0e2b\u0e23\u0e37\u0e2d MariaDB \u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u00a0P\u00a0\u0e04\u0e37\u0e2d PHP \u0e04\u0e23\u0e31\u0e1a 0. \u0e17\u0e33\u0e01\u0e32\u0e23 Update Package list \u0e08\u0e32\u0e01 Repository \u0e01\u0e48\u0e2d\u0e19\u0e41\u0e25\u0e49\u0e27\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a [root@server ~]#yum update -y 1. \u0e17\u0e33\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 HTTP Server \u0e14\u0e49\u0e27\u0e22 httpd package \u0e41\u0e25\u0e30\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e34\u0e14 Service \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49 [root@server ~]#yum install -y httpd[root@server ~]#systemctl start httpd[root@server ~]#systemctl enable httpd \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a [&hellip;]<\/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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-25451","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6cOVM-6Cv","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25451"}],"version-history":[{"count":7,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25451\/revisions"}],"predecessor-version":[{"id":25522,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25451\/revisions\/25522"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}