{"id":36624,"date":"2023-08-14T22:23:14","date_gmt":"2023-02-07T11:07:40","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/"},"modified":"2024-04-30T18:35:14","modified_gmt":"2024-04-30T10:35:14","slug":"%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/","title":{"rendered":"\u642d\u5efa Apache + php (cgi) \u73af\u5883"},"content":{"rendered":"<h1>\u80cc\u666f\u9648\u8ff0<\/h1>\n<p>\u6211\u66fe\u7ecf\u7528Apache + php\u5efa\u7acb\u8fc7\u73af\u5883\uff0c\u4f46\u53ea\u7528\u8fc7\u6a21\u5757\u7248\u7684php\u6765\u8fdb\u884c\u73af\u5883\u642d\u5efa\uff0c\u56e0\u6b64\u6211\u5c06\u8fd9\u4e2a\u6b65\u9aa4\u7559\u4e0b\u6765\u3002<\/p>\n<p>\u56e0\u4e3a\u60f3\u8981\u5148\u7528\u666e\u901a\u7684 cgi \u8fd0\u884c\uff0c\u6240\u4ee5\u8fd9\u7bc7\u6587\u7ae0\u4f7f\u7528\u4e86 cgi\u3002\u4e0e\u6a21\u5757\u7248\u76f8\u6bd4\uff0c\u6a21\u5757\u7248\u7684\u8fd0\u884c\u901f\u5ea6\u66f4\u5feb\uff0c\u4f46\u5b9e\u7528\u6027\u8f83\u4f4e\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528Web\u670d\u52a1\u5668\u6765\u4f7f\u7528cgi\u7248\u672c\uff0c\u5e94\u8be5\u4f7f\u7528php-fpm\u3002<\/p>\n<p>\u5728\u5de5\u4f5c\u4e2d\uff0c\u6211\u901a\u5e38\u4f1a\u4ece\u6e90\u4ee3\u7801\u8fdb\u884c\u5b89\u88c5\uff0c\u4f46\u7531\u4e8e\u672c\u6b21\u53ea\u9700\u8981\u786e\u8ba4\u8bbe\u7f6e\u6587\u4ef6\u800c\u4e0d\u9700\u8981\u5c06\u5176\u4f5c\u4e3aWeb\u670d\u52a1\u5668\u516c\u5f00\uff0c\u6240\u4ee5\u6211\u4eec\u5c06\u4f7f\u7528yum\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>\u4e3a\u4e86\u5728\u5b89\u88c5\u540e\u80fd\u591f\u6e05\u7406\u5e72\u51c0\uff0c\u6211\u4eec\u4f1a\u5728Docker\u5bb9\u5668\u4e0a\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<h1>\u73af\u5883<\/h1>\n<p>\u4e3b\u673a\u64cd\u4f5c\u7cfb\u7edf\uff1a\u4e9a\u9a6c\u900aLinux\u53d1\u884c\u72482\uff08Karoo\uff09<br \/>\n\u5bb9\u5668\u64cd\u4f5c\u7cfb\u7edf\uff1aCentOS Linux\u53d1\u884c\u72487.9.2009\uff08Core\uff09<br \/>\nDocker\u7248\u672c20.10.4<br \/>\nApache\/2.4.6<br \/>\nPHP 5.4.16\uff08\u547d\u4ee4\u884c\u754c\u9762\uff09<\/p>\n<h1>\u6b65\u9a5f<\/h1>\n<h2>\u51c6\u5907\u8d27\u67dc<\/h2>\n<p>\u521b\u5efa\u5e76\u542f\u52a8\u5bb9\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo docker run -tid -v \/opt\/app\/:\/var\/www\/html -p 80:80 centos:centos7\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u8fdb\u5165\u5bb9\u5668\u3002<br \/>\n86 \u662f\u5bb9\u5668\u7684ID\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo docker exec -ti 86 bash\r\n<\/code><\/pre>\n<h2>\u5b89\u88c5Apache<\/h2>\n<p>\u9996\u5148\uff0c\u6267\u884c yum update\u3002<\/p>\n<pre class=\"post-pre\"><code>yum update -y\r\n<\/code><\/pre>\n<p>\u7136\u540e\uff0c\u5b89\u88c5Apache\u3002<\/p>\n<pre class=\"post-pre\"><code>yum install -y httpd\r\n<\/code><\/pre>\n<p>\u542f\u52a8 Apache\uff0c\u5e76\u786e\u8ba4\u6d4b\u8bd5\u9875\u9762\u662f\u5426\u663e\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>httpd -k start\r\n<\/code><\/pre>\n<p>\u5f53\u6d4b\u8bd5\u9875\u9762\u663e\u793a\u51fa\u6765\u540e\uff0c\u53ef\u4ee5\u4e86\u3002<\/p>\n<h2>PHP \u5b89\u88c5<\/h2>\n<p>\u63a5\u4e0b\u6765\u5b89\u88c5PHP\u3002<\/p>\n<pre class=\"post-pre\"><code>yum install -y php\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u786e\u8ba4 PHP \u7684\u8fd0\u884c\u60c5\u51b5\uff0c\u5c06\u6587\u4ef6\u653e\u7f6e\u5728\u6587\u6863\u6839\u76ee\u5f55\u8fdb\u884c\u68c0\u67e5\u3002<\/p>\n<pre class=\"post-pre\"><code>vi \/var\/www\/html\/index.php\r\n&lt;?php echo phpinfo(); ?&gt;\r\n<\/code><\/pre>\n<p>\u91cd\u542f Apache\u3002<\/p>\n<pre class=\"post-pre\"><code>httpd -k stop\r\nhttpd -k start\r\n<\/code><\/pre>\n<p>\u5f53\u5728\u6d4f\u89c8\u5668\u4e2d\u663e\u793a phpinfo \u65f6\uff0c\u4e00\u5207\u6b63\u5e38\u3002<\/p>\n<p>\u901a\u8fc7\u67e5\u770b phpinfo\uff0c\u60a8\u53ef\u4ee5\u786e\u8ba4\u5f53\u524d\u7684 PHP \u662f\u4ee5\u6a21\u5757\u65b9\u5f0f\u8fd8\u662f CGI \u65b9\u5f0f\u8fd0\u884c\u7684\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2a4b37434c4406c46d58\/31-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u76ee\u524d\uff0c\u6211\u5011\u6b63\u4f7f\u7528\u6a21\u584a\u7248\u904b\u884c\uff0c\u5c07\u9010\u6b65\u8f49\u63db\u70baCGI\u7248\u3002<\/p>\n<h2>\u5207\u6362\u5230CGI\u7248<\/h2>\n<h3>\u505c\u6b62\u52a0\u8f7d\u6a21\u5757\u7248PHP\u3002<\/h3>\n<p>\u9996\u5148\uff0c\u9700\u8981\u7981\u6b62\u52a0\u8f7d\u6a21\u5757\u7248\u7684PHP\u3002<br \/>\n\u8bf7\u6309\u7167\u4e0b\u9762\u7684\u65b9\u5f0f\u8fdb\u884c\u6ce8\u91ca\u5904\u7406\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n#&lt;IfModule prefork.c&gt;\r\n#  LoadModule php5_module modules\/libphp5.so\r\n#&lt;\/IfModule&gt;\r\n\r\n<\/code><\/pre>\n<h3>\u7f16\u8f91 php.conf<\/h3>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cphp.conf \u7684\u5185\u5bb9\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>#\r\n# Cause the PHP interpreter to handle files with a .php extension.\r\n#\r\n&lt;FilesMatch \\.php$&gt;\r\n    SetHandler application\/x-httpd-php\r\n&lt;\/FilesMatch&gt;\r\n\r\n#\r\n# Allow php to handle Multiviews\r\n#\r\nAddType text\/html .php\r\n\r\n#\r\n# Add index.php to the list of files that will be served as directory\r\n# indexes.\r\n#\r\nDirectoryIndex index.php\r\n\r\n#\r\n# Uncomment the following lines to allow PHP to pretty-print .phps\r\n# files as PHP source code:\r\n#\r\n#&lt;FilesMatch \\.phps$&gt;\r\n#    SetHandler application\/x-httpd-php-source\r\n#&lt;\/FilesMatch&gt;\r\n\r\n#\r\n# Apache specific PHP configuration options\r\n# those can be override in each configured vhost\r\n#\r\nphp_value session.save_handler \"files\"\r\nphp_value session.save_path    \"\/var\/lib\/php\/session\"\r\n<\/code><\/pre>\n<p>\u6211\u5df2\u7ecf\u6309\u4e0b\u9762\u7684\u65b9\u5f0f\u8fdb\u884c\u4e86\u7f16\u8f91\u3002<\/p>\n<pre class=\"post-pre\"><code>#\r\n# Cause the PHP interpreter to handle files with a .php extension.\r\n#\r\n&lt;FilesMatch \\.(php|phps)$&gt;\r\n    SetHandler php54-cgi\r\n&lt;\/FilesMatch&gt;\r\n\r\n#\r\n# Allow php to handle Multiviews\r\n#\r\n#AddType text\/html .php\r\n\r\nAction php54-cgi \/cgi-bin\/php54\r\n\r\n#\r\n# Add index.php to the list of files that will be served as directory\r\n# indexes.\r\n#\r\nDirectoryIndex index.php\r\n\r\n#\r\n# Uncomment the following lines to allow PHP to pretty-print .phps\r\n# files as PHP source code:\r\n#\r\n#&lt;FilesMatch \\.phps$&gt;\r\n#    SetHandler application\/x-httpd-php-source\r\n#&lt;\/FilesMatch&gt;\r\n\r\n#\r\n# Apache specific PHP configuration options\r\n# those can be override in each configured vhost\r\n#\r\n#php_value session.save_handler \"files\"\r\n#php_value session.save_path    \"\/var\/lib\/php\/session\"\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u662f\u66f4\u6539\u7684\u5185\u5bb9\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u56e0\u4e3a.php\u6587\u4ef6\u88ab\u5206\u914d\u7ed9\u4e86application\/x-httpd-php\u7684\u5904\u7406\u5668\uff0c\u6240\u4ee5\u5c06\u5176\u5206\u914d\u7ed9php54-cgi\u5904\u7406\u5668\u3002(.phps\u4e5f\u540c\u6837\u5206\u914d)<\/ol>\n<\/li>\n<\/ol>\n<p>\u786e\u4fdd\u5f53\u8bf7\u6c42php54-cgi\u5904\u7406\u5668\u65f6\u8c03\u7528\/cgi-bin\/php54\u3002<\/p>\n<h2>CGI\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u4f4d\u7f6e\u6446\u653e<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u786e\u8ba4\u5728 httpd.conf \u6587\u4ef6\u4e2d\u5c06 cgi \u4e8c\u8fdb\u5236\u6587\u4ef6\u653e\u7f6e\u5728\u54ea\u4e2a\u76ee\u5f55\u4e0b\u3002\u7136\u540e\uff0c\u5c06 \/cgi-bin\/php54 \u8def\u5f84\u5199\u5165 php.conf \u6587\u4ef6\u4e2d\u914d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>ScriptAlias \/cgi-bin\/ \"\/var\/www\/cgi-bin\/\"\r\n<\/code><\/pre>\n<p>\u6211\u660e\u767d\u4e86\u53ea\u9700\u8981\u5c06\/var\/www\/cgi-bin\u76ee\u5f55\u4e0b\u914d\u7f6e\u5373\u53ef\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u8fd8\u8981\u786e\u8ba4 CGI \u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>which php-cgi\r\n\/usr\/bin\/php-cgi\r\n<\/code><\/pre>\n<p>\u4f7f\u7528\u7b26\u53f7\u94fe\u63a5\u5c06CGI\u4e8c\u8fdb\u5236\u6587\u4ef6\u653e\u7f6e\u5728\u76ee\u6807\u4f4d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>cd \/var\/www\/cgi-bin\/\r\nln -s \/usr\/bin\/php-cgi php54\r\n<\/code><\/pre>\n<h2>\u5141\u8bb8\u7b26\u53f7\u94fe\u63a5\u7684\u8bbe\u7f6e<\/h2>\n<p>\u56e0\u4e3a\u901a\u8fc7\u7b26\u53f7\u94fe\u63a5\u6765\u653e\u7f6e CGI \u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u6240\u4ee5\u9700\u8981\u5728 httpd.conf \u4e2d\u914d\u7f6e\u5141\u8bb8\u7b26\u53f7\u94fe\u63a5\u7684\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;Directory \"\/var\/www\/cgi-bin\"&gt;\r\n    AllowOverride None\r\n    Options FollowSymLinks\r\n    Require all granted\r\n&lt;\/Directory&gt;\r\n<\/code><\/pre>\n<h2>\u5141\u8bb8\u4f7f\u7528CGI\u7684\u8bbe\u7f6e<\/h2>\n<p>\u8fd9\u6b21\u6211\u4eec\u5c06\u4f7f\u7528\u9ed8\u8ba4\u7684\u6587\u6863\u6839\u76ee\u5f55 \/var\/www\/html\uff0c\u56e0\u6b64\u5c06\u5176\u8bbe\u7f6e\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e2d\u3002<\/p>\n<p>\u4ee5\u4e0b\u63d0\u4f9b\u4e00\u79cd\u53ef\u80fd\u7684\u4e2d\u6587\u7ffb\u8bd1\uff1a\u6b63\u5728\u63cf\u8ff0\u9009\u9879 FollowSymLinks Includes ExecCGI\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;Directory \"\/var\/www\/html\"&gt;\r\n    #\r\n    # Possible values for the Options directive are \"None\", \"All\",\r\n    # or any combination of:\r\n    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews\r\n    #\r\n    # Note that \"MultiViews\" must be named *explicitly* --- \"Options All\"\r\n    # doesn't give it to you.\r\n    #\r\n    # The Options directive is both complicated and important.  Please see\r\n    # http:\/\/httpd.apache.org\/docs\/2.4\/mod\/core.html#options\r\n    # for more information.\r\n    #\r\n    Options FollowSymLinks Includes ExecCGI\r\n\r\n    #\r\n    # AllowOverride controls what directives may be placed in .htaccess files.\r\n    # It can be \"All\", \"None\", or any combination of the keywords:\r\n    #   Options FileInfo AuthConfig Limit\r\n    #\r\n    AllowOverride None\r\n\r\n    #\r\n    # Controls who can get stuff from this server.\r\n    #\r\n    Require all granted\r\n&lt;\/Directory&gt;\r\n<\/code><\/pre>\n<h2>\u8bf7\u786e\u8ba4CGI\u6b63\u5728\u8fd0\u884c\u4e2d<\/h2>\n<p>\u53ea\u8981\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165URL\uff0c\u5e76\u4e14\u663e\u793a\u5982\u4e0b\u5185\u5bb9\u5373\u53ef\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2a4b37434c4406c46d58\/61-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u6700\u7ec8<\/h2>\n<p>\u8fd9\u6b21\u4f5c\u4e3a\u5b66\u4e60\u7684\u4e00\u90e8\u5206\uff0c\u6211\u5c1d\u8bd5\u4f7f\u7528CGI\u6765\u8fd0\u884cPHP\u3002<br \/>\n\u4e0b\u4e00\u6b65\uff0c\u6211\u4f1a\u4f7f\u7528\u66f4\u5b9e\u7528\u7684php-fpm\u6765\u64b0\u5199\u6587\u7ae0\u3002<\/p>\n<p>\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f\u9648\u8ff0 \u6211\u66fe\u7ecf\u7528Apache + php\u5efa\u7acb\u8fc7\u73af\u5883\uff0c\u4f46\u53ea\u7528\u8fc7\u6a21\u5757\u7248\u7684php\u6765\u8fdb\u884c\u73af\u5883\u642d\u5efa\uff0c\u56e0\u6b64\u6211\u5c06\u8fd9\u4e2a\u6b65\u9aa4\u7559 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-36624","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u642d\u5efa Apache + php (cgi) \u73af\u5883 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u642d\u5efa-apache-php-cgi-\u73af\u5883\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u642d\u5efa Apache + php (cgi) \u73af\u5883\" \/>\n<meta property=\"og:description\" content=\"\u80cc\u666f\u9648\u8ff0 \u6211\u66fe\u7ecf\u7528Apache + php\u5efa\u7acb\u8fc7\u73af\u5883\uff0c\u4f46\u53ea\u7528\u8fc7\u6a21\u5757\u7248\u7684php\u6765\u8fdb\u884c\u73af\u5883\u642d\u5efa\uff0c\u56e0\u6b64\u6211\u5c06\u8fd9\u4e2a\u6b65\u9aa4\u7559 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u642d\u5efa-apache-php-cgi-\u73af\u5883\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-07T11:07:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T10:35:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2a4b37434c4406c46d58\/31-0.png\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/\",\"name\":\"\u642d\u5efa Apache + php (cgi) \u73af\u5883 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-07T11:07:40+00:00\",\"dateModified\":\"2024-04-30T10:35:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u642d\u5efa Apache + php (cgi) \u73af\u5883\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u642d\u5efa Apache + php (cgi) \u73af\u5883 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u642d\u5efa-apache-php-cgi-\u73af\u5883\/","og_locale":"zh_CN","og_type":"article","og_title":"\u642d\u5efa Apache + php (cgi) \u73af\u5883","og_description":"\u80cc\u666f\u9648\u8ff0 \u6211\u66fe\u7ecf\u7528Apache + php\u5efa\u7acb\u8fc7\u73af\u5883\uff0c\u4f46\u53ea\u7528\u8fc7\u6a21\u5757\u7248\u7684php\u6765\u8fdb\u884c\u73af\u5883\u642d\u5efa\uff0c\u56e0\u6b64\u6211\u5c06\u8fd9\u4e2a\u6b65\u9aa4\u7559 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u642d\u5efa-apache-php-cgi-\u73af\u5883\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-07T11:07:40+00:00","article_modified_time":"2024-04-30T10:35:14+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2a4b37434c4406c46d58\/31-0.png"}],"author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/","name":"\u642d\u5efa Apache + php (cgi) \u73af\u5883 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-07T11:07:40+00:00","dateModified":"2024-04-30T10:35:14+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u642d\u5efa Apache + php (cgi) \u73af\u5883"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%90%ad%e5%bb%ba-apache-php-cgi-%e7%8e%af%e5%a2%83\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/36624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=36624"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/36624\/revisions"}],"predecessor-version":[{"id":93589,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/36624\/revisions\/93589"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=36624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=36624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=36624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}