{"id":77087,"date":"2026-02-23T23:19:53","date_gmt":"2026-02-23T15:19:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/77087.html"},"modified":"2026-02-23T23:19:53","modified_gmt":"2026-02-23T15:19:53","slug":"php%e5%ae%89%e5%85%a8%e5%ae%9e%e6%88%98%ef%bc%9a%e5%a6%82%e4%bd%95%e4%bb%8ephpinfo%e6%b3%84%e9%9c%b2%e7%9a%84%e4%bf%a1%e6%81%af%e4%b8%ad%e4%bf%9d%e6%8a%a4%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/77087.html","title":{"rendered":"PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09"},"content":{"rendered":"<h2>PHP\u5b89\u5168\u5b9e\u6218&#xff1a;\u4ecephpinfo()\u6cc4\u9732\u5230\u670d\u52a1\u5668\u52a0\u56fa\u7684\u5168\u65b9\u4f4d\u9632\u62a4\u7b56\u7565<\/h2>\n<p>\u5f53\u4f60\u5728\u670d\u52a1\u5668\u4e0a\u5076\u7136\u53d1\u73b0\u4e00\u4e2a\u672a\u88ab\u4fdd\u62a4\u7684phpinfo()\u9875\u9762\u65f6&#xff0c;\u90a3\u79cd\u611f\u89c9\u5c31\u50cf\u5728\u81ea\u5bb6\u540e\u9662\u53d1\u73b0\u4e86\u4e00\u6247\u655e\u5f00\u7684\u4fdd\u9669\u67dc\u95e8\u3002\u8fd9\u4e2a\u770b\u4f3c\u65e0\u5bb3\u7684PHP\u5185\u7f6e\u51fd\u6570&#xff0c;\u5b9e\u9645\u4e0a\u662f\u4e00\u628a\u53cc\u5203\u5251\u2014\u2014\u5b83\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u8c03\u8bd5\u4fbf\u5229\u7684\u540c\u65f6&#xff0c;\u4e5f\u6210\u4e3a\u4e86\u9ed1\u5ba2\u773c\u4e2d\u7684&#034;\u60c5\u62a5\u4e2d\u5fc3&#034;\u3002\u6211\u66fe\u4eb2\u773c\u89c1\u8bc1\u8fc7\u4e00\u4e2a\u4e2d\u578b\u7535\u5546\u5e73\u53f0\u56e0\u4e3a\u4e00\u4e2a\u9057\u7559\u7684phpinfo.php\u6587\u4ef6&#xff0c;\u5bfc\u81f4\u6574\u4e2a\u7528\u6237\u6570\u636e\u5e93\u88ab\u62d6\u53d6\u7684\u6848\u4f8b\u3002\u90a3\u6b21\u4e8b\u4ef6\u540e&#xff0c;\u6211\u82b1\u4e86\u4e09\u4e2a\u6708\u65f6\u95f4\u5e2e\u52a9\u5ba2\u6237\u91cd\u5efa\u5b89\u5168\u4f53\u7cfb&#xff0c;\u4e5f\u8ba9\u6211\u6df1\u523b\u8ba4\u8bc6\u5230phpinfo()\u4fe1\u606f\u6cc4\u9732\u7684\u4e25\u91cd\u6027\u3002<\/p>\n<h3>1. phpinfo()\u4e3a\u4f55\u6210\u4e3a\u5b89\u5168\u91cd\u707e\u533a<\/h3>\n<p>phpinfo()\u51fd\u6570\u4f1a\u8f93\u51fa\u8d85\u8fc7200\u9879PHP\u73af\u5883\u914d\u7f6e\u4fe1\u606f&#xff0c;\u8fd9\u4e9b\u6570\u636e\u5728\u653b\u51fb\u8005\u624b\u4e2d\u5c31\u50cf\u62fc\u56fe\u7684\u5404\u4e2a\u788e\u7247\u3002\u5f53\u8fd9\u4e9b\u788e\u7247\u88ab\u7ec4\u5408\u8d77\u6765&#xff0c;\u5c31\u80fd\u52fe\u52d2\u51fa\u670d\u52a1\u5668\u7684\u5b8c\u6574\u8f6e\u5ed3\u3002\u8ba9\u6211\u4eec\u770b\u770b\u8fd9\u4e9b\u4fe1\u606f\u5982\u4f55\u88ab\u6b66\u5668\u5316&#xff1a;<\/p>\n<p>\u7cfb\u7edf\u6307\u7eb9\u8bc6\u522b\u4e09\u8981\u7d20&#xff1a;<\/p>\n<ul>\n<li>System\u5b57\u6bb5&#xff1a;\u76f4\u63a5\u66b4\u9732\u64cd\u4f5c\u7cfb\u7edf\u7c7b\u578b\u548c\u5185\u6838\u7248\u672c&#xff08;\u5982&#034;Linux ubuntu 5.4.0-84-generic&#034;&#xff09;<\/li>\n<li>Server API&#xff1a;\u63ed\u793aWeb\u670d\u52a1\u5668\u7c7b\u578b&#xff08;Apache\/Nginx&#xff09;\u53ca\u8fd0\u884c\u6a21\u5f0f&#xff08;mod_php\/FPM&#xff09;<\/li>\n<li>Architecture&#xff1a;CPU\u67b6\u6784\u4fe1\u606f&#xff08;x86_64\/arm&#xff09;\u51b3\u5b9a\u653b\u51fb\u8f7d\u8377\u7684\u9009\u62e9<\/li>\n<\/ul>\n<p>\u6211\u66fe\u5904\u7406\u8fc7\u4e00\u4e2a\u6848\u4f8b&#xff0c;\u653b\u51fb\u8005\u901a\u8fc7phpinfo()\u53d1\u73b0\u670d\u52a1\u5668\u4f7f\u7528\u8f83\u65e7\u7684PHP 7.2\u7248\u672c&#xff0c;\u968f\u540e\u5229\u7528CVE-2018-19518\u6f0f\u6d1e\u5b9e\u73b0\u4e86\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u3002\u6574\u4e2a\u8fc7\u7a0b\u4ece\u4fe1\u606f\u6536\u96c6\u5230\u653b\u9677\u670d\u52a1\u5668&#xff0c;\u8017\u65f6\u4e0d\u52302\u5c0f\u65f6\u3002<\/p>\n<p>PHP\u7248\u672c\u4e0e\u6f0f\u6d1e\u6620\u5c04\u8868&#xff1a;<\/p>\n<table>\n<tr>PHP\u7248\u672c\u76f8\u5173\u9ad8\u5371\u6f0f\u6d1e\u6f5c\u5728\u98ce\u9669<\/tr>\n<tbody>\n<tr>\n<td>&lt;7.3.0<\/td>\n<td>CVE-2019-11043<\/td>\n<td>PHP-FPM\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c<\/td>\n<\/tr>\n<tr>\n<td>&lt;8.0.0<\/td>\n<td>CVE-2021-21703<\/td>\n<td>\u8def\u5f84\u904d\u5386\u5bfc\u81f4\u4fe1\u606f\u6cc4\u9732<\/td>\n<\/tr>\n<tr>\n<td>5.x\u7cfb\u5217<\/td>\n<td>CVE-2012-1823<\/td>\n<td>CGI\u53c2\u6570\u6ce8\u5165\u6f0f\u6d1e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u63d0\u793a&#xff1a;\u5373\u4f7f\u662f\u6700\u65b0\u7684PHP\u7248\u672c&#xff0c;\u9519\u8bef\u914d\u7f6e\u4ecd\u53ef\u80fd\u5bfc\u81f4\u4e25\u91cd\u5b89\u5168\u95ee\u9898\u3002\u7248\u672c\u53f7\u53ea\u662f\u653b\u51fb\u9762\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<h3>2. \u654f\u611f\u8def\u5f84\u4fe1\u606f\u7684\u81f4\u547d\u66b4\u9732<\/h3>\n<p>phpinfo()\u4f1a\u6cc4\u9732\u7684\u6587\u4ef6\u7cfb\u7edf\u4fe1\u606f\u6bd4\u5927\u591a\u6570\u7ba1\u7406\u5458\u610f\u8bc6\u5230\u7684\u8981\u591a\u5f97\u591a\u3002\u5728\u4e00\u6b21\u6e17\u900f\u6d4b\u8bd5\u4e2d&#xff0c;\u6211\u901a\u8fc7\u4ee5\u4e0b\u5b57\u6bb5\u6210\u529f\u5b9a\u4f4d\u5230\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>DOCUMENT_ROOT: \/var\/www\/vhosts\/example.com<br \/>\ninclude_path: .:\/usr\/share\/php:\/tmp<br \/>\nmysql.default_host: localhost<br \/>\nsession.save_path: \/var\/lib\/php\/sessions<\/p>\n<p>\u5173\u952e\u8def\u5f84\u98ce\u9669\u77e9\u9635&#xff1a;<\/p>\n<table>\n<tr>\u8def\u5f84\u7c7b\u578b\u793a\u4f8b\u503c\u653b\u51fb\u5229\u7528\u65b9\u5f0f<\/tr>\n<tbody>\n<tr>\n<td>Web\u6839\u76ee\u5f55<\/td>\n<td>\/var\/www\/html<\/td>\n<td>\u5b9a\u4f4d\u91cd\u8981\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td>Session\u8def\u5f84<\/td>\n<td>\/tmp\/php_sessions<\/td>\n<td>Session\u56fa\u5b9a\u653b\u51fb<\/td>\n<\/tr>\n<tr>\n<td>\u5305\u542b\u8def\u5f84<\/td>\n<td>.:\/usr\/share\/php<\/td>\n<td>\u672c\u5730\u6587\u4ef6\u5305\u542b(LFI)\u5229\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u4f20\u76ee\u5f55<\/td>\n<td>\/tmp\/uploads<\/td>\n<td>Webshell\u4e0a\u4f20\u76ee\u6807<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u4e2a\u771f\u5b9e\u6848\u4f8b&#xff1a;\u67d0CMS\u7cfb\u7edf\u5728phpinfo()\u4e2d\u66b4\u9732\u4e86upload_tmp_dir\u8bbe\u7f6e\u4e3a\/tmp\/upload&#xff0c;\u653b\u51fb\u8005\u901a\u8fc7\u4e0a\u4f20\u56fe\u7247\u9a6c\u540e\u7ed3\u5408\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e&#xff0c;\u6700\u7ec8\u83b7\u53d6\u4e86\u670d\u52a1\u5668\u6743\u9650\u3002\u6574\u4e2a\u8fc7\u7a0b\u5b8c\u5168\u4f9d\u8d56\u4e8ephpinfo()\u63d0\u4f9b\u7684\u8def\u5f84\u4fe1\u606f\u3002<\/p>\n<h3>3. \u6269\u5c55\u6a21\u5757\u7684\u5b89\u5168\u8fde\u9501\u53cd\u5e94<\/h3>\n<p>PHP\u6269\u5c55\u5c31\u50cf\u7ed9\u8bed\u8a00\u6dfb\u52a0\u65b0\u529f\u80fd\u7684\u63d2\u4ef6&#xff0c;\u4f46\u6bcf\u4e2a\u6269\u5c55\u90fd\u53ef\u80fd\u6210\u4e3a\u653b\u51fb\u5165\u53e3\u3002\u68c0\u67e5\u4ee5\u4e0b\u9ad8\u5371\u6269\u5c55\u7ec4\u5408&#xff1a;<\/p>\n<p>\/\/ \u5371\u9669\u6269\u5c55\u7ec4\u5408\u793a\u4f8b<br \/>\n$dangerous_extensions &#061; [<br \/>\n    &#039;phar&#039; &#061;&gt; &#039;\u53ef\u80fd\u5f15\u53d1\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e&#039;,<br \/>\n    &#039;imap&#039; &#061;&gt; &#039;\u53ef\u7528\u4e8eSSRF\u653b\u51fb&#039;,<br \/>\n    &#039;ldap&#039; &#061;&gt; &#039;\u53ef\u80fd\u66b4\u9732\u5185\u90e8\u7f51\u7edc\u7ed3\u6784&#039;,<br \/>\n    &#039;xmlreader&#039; &#061;&gt; &#039;XXE\u653b\u51fb\u5411\u91cf&#039;<br \/>\n];<\/p>\n<p>\u6269\u5c55\u98ce\u9669\u8bc4\u7ea7\u8868&#xff1a;<\/p>\n<table>\n<tr>\u6269\u5c55\u540d\u98ce\u9669\u7b49\u7ea7\u5178\u578b\u653b\u51fb\u65b9\u5f0f<\/tr>\n<tbody>\n<tr>\n<td>phar<\/td>\n<td>\u9ad8\u5371<\/td>\n<td>\u53cd\u5e8f\u5217\u5316\u653b\u51fb<\/td>\n<\/tr>\n<tr>\n<td>gd<\/td>\n<td>\u4e2d\u5371<\/td>\n<td>\u56fe\u50cf\u5904\u7406\u6f0f\u6d1e<\/td>\n<\/tr>\n<tr>\n<td>mysqli<\/td>\n<td>\u4e2d\u5371<\/td>\n<td>SQL\u6ce8\u5165<\/td>\n<\/tr>\n<tr>\n<td>openssl<\/td>\n<td>\u4f4e\u5371<\/td>\n<td>\u7279\u5b9a\u7248\u672c\u6f0f\u6d1e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8bb0\u5f97\u53bb\u5e74\u5ba1\u8ba1\u7684\u4e00\u4e2a\u91d1\u878d\u7cfb\u7edf&#xff0c;\u5c31\u56e0\u4e3a\u5f00\u542f\u4e86IMAP\u6269\u5c55\u4e14\u914d\u7f6e\u4e0d\u5f53&#xff0c;\u5bfc\u81f4\u653b\u51fb\u8005\u80fd\u591f\u901a\u8fc7\u90ae\u4ef6\u7cfb\u7edf\u53d1\u8d77SSRF\u653b\u51fb&#xff0c;\u6700\u7ec8\u8bbf\u95ee\u5230\u5185\u7f51\u7684\u7ba1\u7406\u63a5\u53e3\u3002<\/p>\n<h3>4. \u52a0\u56fa\u670d\u52a1\u5668\u7684\u56db\u91cd\u9632\u62a4\u4f53\u7cfb<\/h3>\n<h4>4.1 \u5f7b\u5e95\u6e05\u9664phpinfo()\u66b4\u9732<\/h4>\n<p>\u5728\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;phpinfo()\u5e94\u8be5\u50cf\u6838\u6309\u94ae\u4e00\u6837\u88ab\u4e25\u683c\u63a7\u5236\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5168\u5c40\u641c\u7d22\u6b8b\u7559\u6587\u4ef6&#xff1a;<\/p>\n<p># \u67e5\u627e\u670d\u52a1\u5668\u4e0a\u6240\u6709phpinfo\u76f8\u5173\u6587\u4ef6<br \/>\nfind \/var\/www -type f -name &#034;*.php&#034; -exec grep -l &#034;phpinfo()&#034; {} \\\\;<\/p>\n<p>\u6e05\u9664\u7b56\u7565\u4e09\u6b65\u8d70&#xff1a;<\/p>\n<li>\u5220\u9664\u6d4b\u8bd5\u6587\u4ef6&#xff08;info.php\u3001test.php\u7b49&#xff09;<\/li>\n<li>\u5ba1\u67e5\u6846\u67b6\u8c03\u8bd5\u6a21\u5f0f&#xff08;\u5982Laravel\u7684APP_DEBUG&#xff09;<\/li>\n<li>\u914d\u7f6eWeb\u670d\u52a1\u5668\u7981\u6b62\u8bbf\u95ee\u654f\u611f\u8def\u5f84<\/li>\n<h4>4.2 PHP\u5b89\u5168\u53c2\u6570\u7684\u9ec4\u91d1\u914d\u7f6e<\/h4>\n<p>\u5728php.ini\u4e2d\u8bbe\u7f6e\u8fd9\u4e9b\u53c2\u6570&#xff0c;\u76f8\u5f53\u4e8e\u7ed9PHP\u88c5\u4e0a\u9632\u5f39\u8863&#xff1a;<\/p>\n<p>; \u5173\u952e\u5b89\u5168\u914d\u7f6e<br \/>\nexpose_php &#061; Off<br \/>\ndisplay_errors &#061; Off<br \/>\ndisable_functions &#061; exec,passthru,shell_exec,system<br \/>\nopen_basedir &#061; \/var\/www:\/tmp<br \/>\nallow_url_fopen &#061; Off<\/p>\n<p>\u6ce8\u610f&#xff1a;\u4fee\u6539php.ini\u540e\u9700\u8981\u91cd\u542fPHP\u670d\u52a1&#xff08;\u5982systemctl restart php-fpm&#xff09;<\/p>\n<h4>4.3 Web\u670d\u52a1\u5668\u7684\u6df1\u5ea6\u9632\u62a4<\/h4>\n<p>Nginx\u914d\u7f6e\u793a\u4f8b&#xff0c;\u9650\u5236\u654f\u611f\u8def\u5f84\u8bbf\u95ee&#xff1a;<\/p>\n<p>location ~* (phpinfo|info|test)\\\\.php$ {<br \/>\n    deny all;<br \/>\n    return 403;<br \/>\n}<\/p>\n<p>location ~ \/\\\\.ht {<br \/>\n    deny all;<br \/>\n}<\/p>\n<p>Apache\u7684\u5bf9\u5e94\u914d\u7f6e&#xff1a;<\/p>\n<p>&lt;FilesMatch &#034;(phpinfo|info|test)\\\\.php$&#034;&gt;<br \/>\n    Require all denied<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<h4>4.4 \u6301\u7eed\u76d1\u63a7\u4e0e\u5e94\u6025\u54cd\u5e94<\/h4>\n<p>\u90e8\u7f72\u6587\u4ef6\u5b8c\u6574\u6027\u76d1\u63a7&#xff08;FIM&#xff09;\u7cfb\u7edf&#xff0c;\u68c0\u6d4b\u5173\u952e\u6587\u4ef6\u53d8\u66f4&#xff1a;<\/p>\n<p># \u4f7f\u7528aide\u5efa\u7acb\u6587\u4ef6\u5b8c\u6574\u6027\u6570\u636e\u5e93<br \/>\naide &#8211;init<br \/>\naide &#8211;check<\/p>\n<p>\u5b89\u5168\u4e8b\u4ef6\u54cd\u5e94\u6e05\u5355&#xff1a;<\/p>\n<ul>\n<li>\u7acb\u5373\u4e0b\u7ebf\u53d7\u5f71\u54cd\u7684\u670d\u52a1\u5668\/\u670d\u52a1<\/li>\n<li>\u4fdd\u7559\u65e5\u5fd7\u548c\u8bc1\u636e<\/li>\n<li>\u8fdb\u884c\u6839\u56e0\u5206\u6790<\/li>\n<li>\u4fee\u590d\u6f0f\u6d1e\u540e\u5168\u9762\u626b\u63cf<\/li>\n<li>\u66f4\u65b0\u6240\u6709\u76f8\u5173\u5bc6\u7801\u548c\u5bc6\u94a5<\/li>\n<\/ul>\n<h3>5. \u8d85\u8d8aphpinfo()\u7684\u5168\u9762\u5b89\u5168\u5b9e\u8df5<\/h3>\n<p>\u771f\u6b63\u7684\u670d\u52a1\u5668\u5b89\u5168\u9700\u8981\u7eb5\u6df1\u9632\u5fa1\u3002\u5728\u4e00\u6b21\u4f01\u4e1a\u7ea7\u5b89\u5168\u8bc4\u4f30\u4e2d&#xff0c;\u6211\u4eec\u53d1\u73b0\u5c3d\u7ba1phpinfo()\u88ab\u59a5\u5584\u4fdd\u62a4&#xff0c;\u4f46\u901a\u8fc7$_SERVER\u53d8\u91cf\u4ecd\u80fd\u83b7\u53d6\u90e8\u5206\u654f\u611f\u4fe1\u606f\u3002\u8fd9\u4fc3\u4f7f\u6211\u4eec\u5efa\u7acb\u4e86\u66f4\u5168\u9762\u7684\u9632\u62a4\u7b56\u7565&#xff1a;<\/p>\n<p>\u5b89\u5168\u52a0\u56fa\u8fdb\u9636\u6280\u5de7&#xff1a;<\/p>\n<ul>\n<li>\u5b9a\u671f\u8fd0\u884cphp -m\u68c0\u67e5\u52a0\u8f7d\u7684\u6269\u5c55<\/li>\n<li>\u4f7f\u7528Suhosin\u7b49\u5f3a\u5316\u8865\u4e01<\/li>\n<li>\u5b9e\u65bd\u6700\u5c0f\u6743\u9650\u539f\u5219&#xff08;\u6bcf\u4e2a\u670d\u52a1\u5355\u72ec\u7528\u6237&#xff09;<\/li>\n<li>\u914d\u7f6e\u9002\u5f53\u7684SELinux\u7b56\u7565<\/li>\n<\/ul>\n<p>\u6700\u540e\u5206\u4eab\u4e00\u4e2a\u5b9e\u7528\u547d\u4ee4&#xff0c;\u5b83\u53ef\u4ee5\u6a21\u62df\u653b\u51fb\u8005\u7684\u89c6\u89d2\u68c0\u67e5\u670d\u52a1\u5668\u4fe1\u606f\u66b4\u9732\u60c5\u51b5&#xff1a;<\/p>\n<p>curl -s http:\/\/localhost\/server-status?auto | grep -E &#034;ServerVersion|ServerMPM&#034;<\/p>\n<p>\u5728\u5b89\u5168\u9886\u57df&#xff0c;phpinfo()\u53ea\u662f\u51b0\u5c71\u4e00\u89d2\u3002\u4fdd\u6301\u8b66\u60d5\u3001\u5b9a\u671f\u5ba1\u8ba1\u3001\u53ca\u65f6\u66f4\u65b0&#xff0c;\u624d\u662f\u786e\u4fdd\u670d\u52a1\u5668\u957f\u6cbb\u4e45\u5b89\u7684\u4e0d\u4e8c\u6cd5\u95e8\u3002\u6bcf\u6b21\u5b89\u5168\u5ba1\u8ba1\u540e&#xff0c;\u6211\u90fd\u4f1a\u95ee\u56e2\u961f\u4e00\u4e2a\u95ee\u9898&#xff1a;&#034;\u5982\u679c\u8fd9\u4e2a\u670d\u52a1\u5668\u660e\u5929\u8981\u9762\u5bf9\u56fd\u5bb6\u7ea7\u9ed1\u5ba2\u653b\u51fb&#xff0c;\u6211\u4eec\u4eca\u665a\u8fd8\u9700\u8981\u505a\u4ec0\u4e48&#xff1f;&#034;\u8fd9\u4e2a\u95ee\u9898\u81f3\u4eca\u4ecd\u5728\u63a8\u52a8\u6211\u4eec\u4e0d\u65ad\u6539\u8fdb\u9632\u62a4\u63aa\u65bd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u5b89\u5168\u5b9e\u6218&#xff1a;\u4ecephpinfo()\u6cc4\u9732\u5230\u670d\u52a1\u5668\u52a0\u56fa\u7684\u5168\u65b9\u4f4d\u9632\u62a4\u7b56\u7565<br \/>\n\u5f53\u4f60\u5728\u670d\u52a1\u5668\u4e0a\u5076\u7136\u53d1\u73b0\u4e00\u4e2a\u672a\u88ab\u4fdd\u62a4\u7684phpinfo()\u9875\u9762\u65f6&#xff0c;\u90a3\u79cd\u611f\u89c9\u5c31\u50cf\u5728\u81ea\u5bb6\u540e\u9662\u53d1\u73b0\u4e86\u4e00\u6247\u655e\u5f00\u7684\u4fdd\u9669\u67dc\u95e8\u3002\u8fd9\u4e2a\u770b\u4f3c\u65e0\u5bb3\u7684PHP\u5185\u7f6e\u51fd\u6570&#xff0c;\u5b9e\u9645\u4e0a\u662f\u4e00\u628a\u53cc\u5203\u5251\u2014\u2014\u5b83\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u8c03\u8bd5\u4fbf\u5229\u7684\u540c\u65f6&#xff0c;\u4e5f\u6210\u4e3a\u4e86\u9ed1\u5ba2\u773c\u4e2d\u7684\\&#8221;\u60c5\u62a5\u4e2d\u5fc3\\&#8221;\u3002\u6211\u66fe\u4eb2\u773c\u89c1\u8bc1\u8fc7\u4e00\u4e2a\u4e2d\u578b\u7535\u5546\u5e73\u53f0\u56e0\u4e3a\u4e00\u4e2a\u9057\u7559\u7684phpinfo.php\u6587\u4ef6&#xff0c;\u5bfc\u81f4\u6574\u4e2a\u7528\u6237\u6570\u636e\u5e93\u88ab\u62d6\u53d6\u7684\u6848\u4f8b\u3002\u90a3\u6b21\u4e8b\u4ef6\u540e&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8440,7929,8441,1800],"topic":[],"class_list":["post-77087","post","type-post","status-publish","format-standard","hentry","category-server","tag-phpinfo","tag-php","tag-8441","tag-1800"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/77087.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"PHP\u5b89\u5168\u5b9e\u6218&#xff1a;\u4ecephpinfo()\u6cc4\u9732\u5230\u670d\u52a1\u5668\u52a0\u56fa\u7684\u5168\u65b9\u4f4d\u9632\u62a4\u7b56\u7565 \u5f53\u4f60\u5728\u670d\u52a1\u5668\u4e0a\u5076\u7136\u53d1\u73b0\u4e00\u4e2a\u672a\u88ab\u4fdd\u62a4\u7684phpinfo()\u9875\u9762\u65f6&#xff0c;\u90a3\u79cd\u611f\u89c9\u5c31\u50cf\u5728\u81ea\u5bb6\u540e\u9662\u53d1\u73b0\u4e86\u4e00\u6247\u655e\u5f00\u7684\u4fdd\u9669\u67dc\u95e8\u3002\u8fd9\u4e2a\u770b\u4f3c\u65e0\u5bb3\u7684PHP\u5185\u7f6e\u51fd\u6570&#xff0c;\u5b9e\u9645\u4e0a\u662f\u4e00\u628a\u53cc\u5203\u5251\u2014\u2014\u5b83\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u8c03\u8bd5\u4fbf\u5229\u7684\u540c\u65f6&#xff0c;\u4e5f\u6210\u4e3a\u4e86\u9ed1\u5ba2\u773c\u4e2d\u7684&quot;\u60c5\u62a5\u4e2d\u5fc3&quot;\u3002\u6211\u66fe\u4eb2\u773c\u89c1\u8bc1\u8fc7\u4e00\u4e2a\u4e2d\u578b\u7535\u5546\u5e73\u53f0\u56e0\u4e3a\u4e00\u4e2a\u9057\u7559\u7684phpinfo.php\u6587\u4ef6&#xff0c;\u5bfc\u81f4\u6574\u4e2a\u7528\u6237\u6570\u636e\u5e93\u88ab\u62d6\u53d6\u7684\u6848\u4f8b\u3002\u90a3\u6b21\u4e8b\u4ef6\u540e&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/77087.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-23T15:19:53+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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.wsisp.com\/helps\/77087.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/77087.html\",\"name\":\"PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-23T15:19:53+00:00\",\"dateModified\":\"2026-02-23T15:19:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/77087.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/77087.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77087.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/77087.html","og_locale":"zh_CN","og_type":"article","og_title":"PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"PHP\u5b89\u5168\u5b9e\u6218&#xff1a;\u4ecephpinfo()\u6cc4\u9732\u5230\u670d\u52a1\u5668\u52a0\u56fa\u7684\u5168\u65b9\u4f4d\u9632\u62a4\u7b56\u7565 \u5f53\u4f60\u5728\u670d\u52a1\u5668\u4e0a\u5076\u7136\u53d1\u73b0\u4e00\u4e2a\u672a\u88ab\u4fdd\u62a4\u7684phpinfo()\u9875\u9762\u65f6&#xff0c;\u90a3\u79cd\u611f\u89c9\u5c31\u50cf\u5728\u81ea\u5bb6\u540e\u9662\u53d1\u73b0\u4e86\u4e00\u6247\u655e\u5f00\u7684\u4fdd\u9669\u67dc\u95e8\u3002\u8fd9\u4e2a\u770b\u4f3c\u65e0\u5bb3\u7684PHP\u5185\u7f6e\u51fd\u6570&#xff0c;\u5b9e\u9645\u4e0a\u662f\u4e00\u628a\u53cc\u5203\u5251\u2014\u2014\u5b83\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u8c03\u8bd5\u4fbf\u5229\u7684\u540c\u65f6&#xff0c;\u4e5f\u6210\u4e3a\u4e86\u9ed1\u5ba2\u773c\u4e2d\u7684\"\u60c5\u62a5\u4e2d\u5fc3\"\u3002\u6211\u66fe\u4eb2\u773c\u89c1\u8bc1\u8fc7\u4e00\u4e2a\u4e2d\u578b\u7535\u5546\u5e73\u53f0\u56e0\u4e3a\u4e00\u4e2a\u9057\u7559\u7684phpinfo.php\u6587\u4ef6&#xff0c;\u5bfc\u81f4\u6574\u4e2a\u7528\u6237\u6570\u636e\u5e93\u88ab\u62d6\u53d6\u7684\u6848\u4f8b\u3002\u90a3\u6b21\u4e8b\u4ef6\u540e&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/77087.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-23T15:19:53+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/77087.html","url":"https:\/\/www.wsisp.com\/helps\/77087.html","name":"PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-23T15:19:53+00:00","dateModified":"2026-02-23T15:19:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/77087.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/77087.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/77087.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"PHP\u5b89\u5168\u5b9e\u6218\uff1a\u5982\u4f55\u4ecephpinfo()\u6cc4\u9732\u7684\u4fe1\u606f\u4e2d\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u5668\uff08\u9644\u9632\u62a4\u6307\u5357\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=77087"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77087\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=77087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=77087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=77087"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=77087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}