{"id":7,"date":"2016-03-21T06:09:07","date_gmt":"2016-03-21T06:09:07","guid":{"rendered":"http:\/\/120.27.50.22\/wordpress\/?p=7"},"modified":"2016-03-21T06:09:07","modified_gmt":"2016-03-21T06:09:07","slug":"%e5%9c%a8centos7%e4%b8%8a%e6%90%ad%e5%bb%baapachemariadbphp7","status":"publish","type":"post","link":"http:\/\/www.homconnect.cn\/?p=7","title":{"rendered":"\u5728centos7\u4e0a\u642d\u5efaApache+mariadb+php7"},"content":{"rendered":"<ul>\n<li>\n<h1>\u5b89\u88c5mariadb<\/h1>\n<\/li>\n<\/ul>\n<p><em># yum install mariadb-server mariadb<\/em><\/p>\n<p>\u555f\u52d5\u53ca\u8a2d\u5b9a\u958b\u6a5f\u81ea\u52d5\u57f7\u884c MariaDB:<\/p>\n<p><em># systemctl start mariadb<\/em><br \/>\n<em># systemctl enable mariadb<\/em><\/p>\n<h1><strong>\u5b89\u88c5Apache<\/strong><\/h1>\n<p><em># yum install httpd<\/em><\/p>\n<p>\u8ddf\u8457\u56de\u7b54 \u201cy\u201d \u5f8c\u4fbf\u6703\u5b8c\u6210\u5b89\u88dd, \u7136\u5f8c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u555f\u52d5\u53ca\u8a2d\u5b9a Apache \u958b\u6a5f\u81ea\u52d5\u57f7\u884c:<\/p>\n<p><em># systemctl start httpd<\/em><br \/>\n<em># systemctl enable httpd<\/em><\/p>\n<h1><b>\u5b89\u88dd PHP 7<\/b><\/h1>\n<p>\u4e0b\u8f7dphp7\u5305\u5230<em>\/usr\/local\/src\/<\/em> \u76ee\u5f55\u5e76\u89e3\u538b<\/p>\n<p>\u5b89\u88c5\u6269\u5c55\u5305<\/p>\n<p><em># yum install gcc libxml2-devel pkgconfig openssl-devel bzip2-devel libpng-devel libpng-devel libjpeg-devel libXpm-devel freetype-devel gmp-devel libmcrypt-devel mariadb-devel aspell-devel recode-devel httpd-devel<\/em><\/p>\n<p>\u8fdb\u5165php7\u89e3\u538b\u5305<\/p>\n<p><em># .\/configure \\<\/em><br \/>\n<em>\u2013prefix=\/usr\/local\/php7\/usr \\<\/em><br \/>\n<em>\u2013with-config-file-path=\/usr\/local\/php7\/usr\/etc \\<\/em><br \/>\n<em>\u2013enable-mbstring \\<\/em><br \/>\n<em>\u2013enable-zip \\<\/em><br \/>\n<em>\u2013enable-bcmath \\<\/em><br \/>\n<em>\u2013enable-pcntl \\<\/em><br \/>\n<em>\u2013enable-ftp \\<\/em><br \/>\n<em>\u2013enable-exif \\<\/em><br \/>\n<em>\u2013enable-calendar \\<\/em><br \/>\n<em>\u2013enable-sysvmsg \\<\/em><br \/>\n<em>\u2013enable-sysvsem \\<\/em><br \/>\n<em>\u2013enable-sysvshm \\<\/em><br \/>\n<em>\u2013enable-wddx \\<\/em><br \/>\n<em>\u2013with-curl \\<\/em><br \/>\n<em>\u2013with-mcrypt \\<\/em><br \/>\n<em>\u2013with-iconv \\<\/em><br \/>\n<em>\u2013with-gmp \\<\/em><br \/>\n<em>\u2013with-pspell \\<\/em><br \/>\n<em>\u2013with-gd \\<\/em><br \/>\n<em>\u2013with-jpeg-dir=\/usr \\<\/em><br \/>\n<em>\u2013with-png-dir=\/usr \\<\/em><br \/>\n<em>\u2013with-zlib-dir=\/usr \\<\/em><br \/>\n<em>\u2013with-xpm-dir=\/usr \\<\/em><br \/>\n<em>\u2013with-freetype-dir=\/usr \\<\/em><br \/>\n<em>\u2013enable-gd-native-ttf \\<\/em><br \/>\n<em>\u2013enable-gd-jis-conv \\<\/em><br \/>\n<em>\u2013with-openssl \\<\/em><br \/>\n<em>\u2013with-pdo-mysql=\/usr \\<\/em><br \/>\n<em>\u2013with-gettext=\/usr \\<\/em><br \/>\n<em>\u2013with-zlib=\/usr \\<\/em><br \/>\n<em>\u2013with-bz2=\/usr \\<\/em><br \/>\n<em>\u2013with-recode=\/usr \\<\/em><br \/>\n<em>\u2013with-mysqli=\/usr\/bin\/mysql_config \\<\/em><br \/>\n<em>\u2013with-apxs2<\/em><\/p>\n<p>\u7136\u540e<\/p>\n<p><em>#make<\/em><\/p>\n<p><em>#make test<\/em><\/p>\n<p><em>#make install<\/em><\/p>\n<p>\u590d\u5236\u00a0<em>php.ini-development<\/em> \u6587\u4ef6\u5230\u00a0<em>\/usr\/local\/lib <\/em>\u4fdd\u5b58\u4e3a<em> php.ini<\/em><\/p>\n<p>\u7f16\u8f91Apache\u914d\u7f6e\u6587\u4ef6\u00a0<em>\/etc\/httpd\/conf\/httpd.conf<\/em> \u00a0\u52a0\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<p><em>LoadModule php7_module \/usr\/lib64\/httpd\/modules\/libphp7.so<\/em><br \/>\n<em>&lt;FilesMatch \\.php$&gt;<\/em><br \/>\n<em>SetHandler application\/x-httpd-php<\/em><br \/>\n<em>&lt;\/FilesMatch&gt;<\/em><\/p>\n<p>\u4fdd\u5b58\u540e\u91cd\u542fApache<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5mariadb # yum install mariadb-server mariadb \u555f\u52d5\u53ca\u8a2d\u5b9a\u958b\u6a5f\u81ea &hellip; <a href=\"http:\/\/www.homconnect.cn\/?p=7\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u5728centos7\u4e0a\u642d\u5efaApache+mariadb+php7\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,2,5,3],"tags":[8,10,6,11],"_links":{"self":[{"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=\/wp\/v2\/posts\/7"}],"collection":[{"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":1,"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":8,"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions\/8"}],"wp:attachment":[{"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.homconnect.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}