{"id":92901,"date":"2020-03-22T23:32:54","date_gmt":"2020-03-22T15:32:54","guid":{"rendered":"http:\/\/4563.org\/?p=92901"},"modified":"2020-03-22T23:32:54","modified_gmt":"2020-03-22T15:32:54","slug":"apache-%e5%a4%9a-php-%e7%89%88%e6%9c%ac%e5%85%b1%e5%ad%98%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=92901","title":{"rendered":"apache \u591a PHP \u7248\u672c\u5171\u5b58\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  apache \u591a PHP \u7248\u672c\u5171\u5b58\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : just1 <\/span>  <span><i><\/i> 22<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e00\u53f0\u5f88\u8001\u7684\u670d\u52a1\u5668\u4e86\u4e0d\u592a\u80fd\u5927\u5e45\u6539\u52a8\u8fd9\u53ea\u80fd\u5728\u73b0\u6709\u57fa\u7840\u4e0a\u6539\u4e00\u6539\uff0c\u4e4b\u524d\u7684 php \u7248\u672c\u662f php5.3\uff0c\u73b0\u5728\u9700\u8981\u90e8\u7f72\u4e00\u4e2a php7.2 \u7248\u672c\u7684\u9879\u76ee\u4e0a\u53bb\u9047\u5230\u4e86\u5171\u5b58\u7684\u56f0\u96be<\/p>\n<p>http.conf \u90e8\u5206<\/p>\n<pre><code>&lt;IfModule prefork.c&gt;   LoadModule php5_module modules\/libphp5.so &lt;\/IfModule&gt; &lt;IfModule worker.c&gt;   LoadModule php5_module modules\/libphp5-zts.so &lt;\/IfModule&gt; AddHandler php5-script .php AddType text\/html .php DirectoryIndex index.php &lt;VirtualHost *:80&gt; Serveralias example1.com &lt;\/VirtualHost&gt; &lt;VirtualHost *:80&gt; Serveralias example2.com &lt;\/VirtualHost&gt; <\/code><\/pre>\n<p>\u662f\u8fd9\u4e48\u4e2a\u7ed3\u6784\uff08\u5b9e\u9645\u4e0a virtualhost \u662f include \u7684\uff0c\u6211\u7ed9\u5199\u4e00\u8d77\u4e86\uff09<\/p>\n<pre><code>LoadModule php7_module modules\/libphp7.so <\/code><\/pre>\n<p>\u73b0\u5728\u53ea\u8981\u5982\u4e0a\u4e00 load php7 \u5c31\u65e0\u6cd5\u542f\u52a8<\/p>\n<pre><code>\/bin\/bash: line 1:  5667 Segmentation fault      \/usr\/sbin\/httpd <\/code><\/pre>\n<p>\u5e94\u8be5\u662f https:\/\/bugs.php.net\/bug.php?id=70380 \u8fd9\u91cc\u63d0\u5230\u7684\u4e0d\u80fd\u540c\u65f6 load5 \u548c 7<\/p>\n<p>\u4e8e\u662f\u73b0\u5728\u5c31\u9047\u5230\u95ee\u9898\u4e86\uff0c\u600e\u4e48\u591a\u7248\u672c\u5171\u5b58\uff0c\u641c\u7d22\u4e86\u4e00\u5929\u4e86\u4e5f\u6ca1\u80fd\u627e\u5230\u53ef\u4ee5\u4f7f\u7528\u7684\u65b9\u6cd5\uff0c\u6c42\u6559<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"992312\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 127000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f7f\u7528 Fast Common Gateway Interface<br \/>\u8be6\u89c1: my.oschina.net\/u\/2456768\/blog\/1813888                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"992313\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : just1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @127000 \u6211\u60f3\u8d77\u6765\u4e86\u4e4b\u524d\u770b\u5230\u4e86\u56e0\u4e3a glibc \u8fc7\u4f4e\u5c31\u6ca1\u7528<\/p>\n<p>\u7136\u540e\u6211\u73b0\u5728\u5347\u7ea7\u4e86\u3002\u3002\u3002\u7528\u7684 sudoer \u8d26\u53f7\u800c\u4e0d\u662f root\uff0c\u73b0\u5728\u7cfb\u7edf\u5d29\u4e86\u3002\u3002\u3002\u8ba9\u6211\u81ea\u95ed\u4e00\u4f1a\u3002\u3002\u3002<\/p>\n<p>\u4e0d\u8fc7\u8fd8\u662f\u611f\u8c22\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"992314\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ellermister <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/my.oschina.net\/u\/2366984\/blog\/809833<br \/>mod_fcgid+\u7f16\u8bd1\u65b9\u5f0f\uff0c\u53ef\u5171\u5b58 n \u4e2a\u7248\u672c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>apache \u591a PHP \u7248\u672c\u5171\u5b58&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92901"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92901"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92901\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92901"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}