{"id":18380,"date":"2014-08-01T06:07:53","date_gmt":"2014-07-31T22:07:53","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/08\/01\/%e5%9c%a8-centos-7-x-%e5%ae%89%e8%a3%9d-apache-mariadb-php\/"},"modified":"2014-08-01T06:07:53","modified_gmt":"2014-07-31T22:07:53","slug":"%e5%9c%a8-centos-7-x-%e5%ae%89%e8%a3%9d-apache-mariadb-php","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/08\/01\/%e5%9c%a8-centos-7-x-%e5%ae%89%e8%a3%9d-apache-mariadb-php\/","title":{"rendered":"\u5728 CentOS 7.x \u5b89\u88dd Apache \/ MariaDB \/ PHP"},"content":{"rendered":"<p>\u5b89\u88dd Apache <br \/># <span style=\"color: #ff0000;\">yum install httpd<\/span><\/p>\n<p>\u555f\u52d5 Web Server<br \/># <span style=\"color: #ff0000;\">service httpd start<\/span><br \/><span style=\"color: #0000ff;\">Redirecting to \/bin\/systemctl start\u00a0 httpd.service<\/span><br \/>\u6216<br \/># <span style=\"color: #ff0000;\">systemctl start httpd<\/span><\/p>\n<p>\u5728\u9632\u706b\u7246\u958b\u555f http \u670d\u52d9<br \/># <span style=\"color: #ff0000;\">firewall-cmd &#8211;permanent &#8211;add-service=http<\/span><br \/># <span style=\"color: #ff0000;\">systemctl restart firewalld<\/span><\/p>\n<p>\u8a2d\u5b9a\u958b\u6a5f\u6642\u555f\u52d5 Web Server<br \/># <span style=\"color: #ff0000;\">systemctl enable httpd<\/span><br \/>[@more@]\u5b89\u88dd PHP<br \/># <span style=\"color: #ff0000;\">yum install php php-mysql php-pdo php-gd php-mbstring<\/span><\/p>\n<p>\u4fee\u6539\u6642\u5340\u8a2d\u5b9a<br \/># <span style=\"color: #ff0000;\">sed -i &#8216;s\/;date.timezone =\/date.timezone = Asia\/Taipei\/&#8217; \/etc\/php.ini<\/span><\/p>\n<p>\u91cd\u65b0\u555f\u52d5 Web Server<br \/># <span style=\"color: #ff0000;\">service httpd restart<\/span><br \/><span style=\"color: #0000ff;\">Redirecting to \/bin\/systemctl restart\u00a0 httpd.service<\/span><br \/>\u6216<br \/># <span style=\"color: #ff0000;\">systemctl restart httpd<\/span><\/p>\n<p>\u5b89\u88dd MariaDB<br \/># <span style=\"color: #ff0000;\">yum install mariadb-server mariadb<\/span><\/p>\n<p>\u555f\u52d5 MariaDB<br \/># <span style=\"color: #ff0000;\">systemctl start mariadb<\/span><\/p>\n<p>\u521d\u59cb\u5316\u8cc7\u6599\u5eab\u8a2d\u5b9a<br \/># <span style=\"color: #ff0000;\">\/usr\/bin\/mysql_secure_installation<\/span><\/p>\n<p>\u8a2d\u5b9a\u958b\u6a5f\u6642\u555f\u52d5 MariaDB<br \/># <span style=\"color: #ff0000;\">systemctl enable mariadb<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88dd Apache # yum install httpd \u555f\u52d5 Web Server# service ht &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/08\/01\/%e5%9c%a8-centos-7-x-%e5%ae%89%e8%a3%9d-apache-mariadb-php\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5728 CentOS 7.x \u5b89\u88dd Apache \/ MariaDB \/ PHP\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-18380","post","type-post","status-publish","format-standard","hentry","category-c-78462"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["512898"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18380"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18380"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18380\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}