{"id":34741,"date":"2023-05-08T02:56:12","date_gmt":"2023-03-02T10:35:38","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/"},"modified":"2024-04-30T03:07:47","modified_gmt":"2024-04-29T19:07:47","slug":"%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/","title":{"rendered":"\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09"},"content":{"rendered":"<p>\u6709\u4e00\u5929\uff0cGCE\u5b9e\u4f8b\u7a81\u7136\u505c\u6b62\u5de5\u4f5c\u4e86\uff0c\u5e76\u4e14\u65e0\u6cd5\u6062\u590d\uff0c\u8003\u8651\u5230\u91cd\u65b0\u521b\u5efa\u5b9e\u4f8b\u6bd4\u6392\u67e5\u539f\u56e0\u66f4\u52a0\u5feb\u6377\uff0c\u6240\u4ee5\u6211\u4eec\u9009\u62e9\u4e86\u91cd\u65b0\u521b\u5efa\u5b9e\u4f8b\u3002\u800c\u4e14\uff0cJessie\u7684\u652f\u6301\u4e5f\u5df2\u7ecf\u7ec8\u6b62\u4e86\u3002<\/p>\n<p>\u7531\u4e8e\u6211\u6253\u7b97\u5728\u53e6\u4e00\u7bc7\u6587\u7ae0\u4e2d\u4ed4\u7ec6\u9610\u8ff0\u539f\u56e0\uff0c\u6240\u4ee5\u8fd9\u6b21\u6211\u5c06\u53ea\u5199\u5173\u4e8e\u5728GCE\u4e0a\u642d\u5efaWordPress\u73af\u5883\u7684\u6b65\u9aa4\u3002<br \/>\n\u8fd9\u53ef\u4ee5\u88ab\u89c6\u4e3a\u4e4b\u524d\u535a\u5ba2\u4e2d\u5185\u5bb9\u7684\u6700\u65b0\u7248\u672c\u3002<\/p>\n<p>\u7531\u4e8e\u672c\u6587\u5c06\u4e2a\u4eba\u8a00\u8bba\u7b49\u5185\u5bb9\u653e\u5728\u4e86\u811a\u6ce8\u4e2d\uff0c\u6240\u4ee5\u57fa\u672c\u4e0a\u53ef\u4ee5\u4e0d\u5fc5\u9605\u8bfb\u811a\u6ce8\u3002<\/p>\n<h1>\u8fde\u63a5\u5230GCE\u5b9e\u4f8b\u7684SSH<\/h1>\n<p>\u7531\u4e8e\u4f5c\u4e1a\u673a\u5668\u662fWindows\uff0c\u9996\u5148\u5c06\u5176\u914d\u7f6e\u4e3a\u53ef\u4ee5\u4f7f\u7528PuTTY\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<ul class=\"post-ul\">PuTTY\u3067\u516c\u958b\u9375\u8a8d\u8a3c\u65b9\u5f0f\u3067\u306eSSH\u63a5\u7d9a\u3092\u884c\u3046\u624b\u9806\u307e\u3068\u3081<\/ul>\n<h2>\u66f4\u6539\u7aef\u53e3\u53f7<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u7c21\u5358\u306b\u7ba1\u7406\u3067\u304d\u308bufw\u3092\u4f7f\u3046<\/ul>\n<\/li>\n<\/ul>\n<p>ufw\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\nUbuntu\u3067SSH\u3068SSH\u306b\u95a2\u3059\u308b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u3059\u308b<\/p>\n<p>\u307e\u305a\u4ed6\u306e\u30dd\u30fc\u30c8\u3092\u958b\u3051\u3066\u3001\u63a5\u7d9a\u3067\u304d\u308b\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u304b\u308922\u756a\u3092\u9589\u3058\u308b<\/p>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u9589\u3058\u305a\u306b\u8907\u6570\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u78ba\u8a8d\u3059\u308b\u3068\u3088\u308a\u5b89\u5168<\/p>\n<p>&#8211; \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3060\u3051\u3067\u306a\u304fSSH\u306e\u8a2d\u5b9a\u3082\u5909\u66f4\u3059\u308b<\/p>\n<p>80\u756a\u3001443\u756a\u3082\u958b\u3051\u308b<\/p>\n<p>GCE\u306e\u5834\u5408\u306fWeb\u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u3082\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb \u30eb\u30fc\u30eb\u306e\u5909\u66f4\u304c\u5fc5\u8981\u306a\u306e\u3067\u6ce8\u610f<\/p>\n<p>RDP\u306a\u3069\u4f7f\u308f\u306a\u3044\u7269\u306f\u9589\u3058\u3066OK<\/p>\n<pre class=\"post-pre\"><code>sudo apt install ufw\r\nsudo ufw allow 22\/tcp &lt;- \u5f8c\u3067\u6d88\u3059\r\nsudo ufw allow XXX\/tcp &lt;- \u5909\u66f4\u3057\u305f\u3044\u30dd\u30fc\u30c8\u756a\u53f7\r\nsudo ufw allow 80\/tcp\r\nsudo ufw allow 443\/tcp\r\nsudo vi \/etc\/ssh\/sshd_config &lt;- \u30dd\u30fc\u30c8\u756a\u53f7\u3092\u66f8\u304d\u63db\u3048\u308b\r\nsudo service sshd restart\r\n<\/code><\/pre>\n<h1>\u4ea4\u6362\u9886\u57df\u7684\u5f62\u6210<\/h1>\n<p>\u8c03\u4f18\u53ef\u4ee5\u7a0d\u540e\u8fdb\u884c\uff0c\u4f46\u662f\uff08\u5728f1-micro\u60c5\u51b5\u4e0b\uff09\u521b\u5efaswap\u9700\u8981\u5728\u7f16\u8bd1PHP\u4e4b\u524d\u5b8c\u6210\uff0c\u6240\u4ee5\u6700\u597d\u5148\u8fdb\u884c\u521b\u5efa\u3002<br \/>\n\u5982\u679c\u662ff1-micro\uff0c\u5927\u7ea6\u9700\u89812GB\u7684\u7a7a\u95f4\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo dd if=\/dev\/zero of=\/swapfile bs=1M count=2048\r\nsudo mkswap \/swapfile\r\nsudo swapon \/swapfile\r\nsudo vi \/etc\/fstab\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>\/swapfile none swap sw 0 0\r\n<\/code><\/pre>\n<h1>\u63d0\u524d\u51c6\u5907\u597d\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9<\/h1>\n<pre class=\"post-pre\"><code>sudo apt install git\r\nsudo apt install unzip\r\nsudo apt install xsel\r\n<\/code><\/pre>\n<p>\u5176\u4ed6\u6839\u636e\u4f60\u7684\u559c\u597d\u6765\u9009\u62e9\u30023 4<\/p>\n<h1>\u5b89\u88c5MariaDB<\/h1>\n<ul class=\"post-ul\">Google Compute Engine \u3067 MySQL \u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5<\/ul>\n<p>\u4e0d\u8981\u5fd8\u8bb0\u8fd0\u884csudo mysql_secure_installation\u547d\u4ee4\u3002\u57fa\u672c\u4e0a\uff0c\u60a8\u9700\u8981\u5168\u90e8\u56de\u7b54yes\u3002<br \/>\nroot\u7684\u521d\u59cb\u5bc6\u7801\u4e3a\u7a7a\u3002<\/p>\n<h2>\u5c06\u5df2\u5907\u4efd\u7684SQL\u6587\u4ef6\u52a0\u8f7d\u8fdb\u6765<\/h2>\n<p>\u4eceMariaDB\u5f00\u59cb\uff0c\u4f3c\u4e4e\u5fc5\u987b\u4f7f\u7528sudo\u624d\u80fd\u767b\u5f55\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo mysql -u root -p\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"k\">create<\/span> <span class=\"k\">database<\/span> <span class=\"n\">wordpress<\/span><span class=\"p\">;<\/span>\r\n<span class=\"n\">exit<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>sudo mysql -u root -p wordpress &lt; filename.sql\r\n<\/code><\/pre>\n<h2>\u521b\u5efaWordPress\u7528\u6237<\/h2>\n<pre class=\"post-pre\"><code><span class=\"k\">create<\/span> <span class=\"k\">user<\/span> <span class=\"n\">username<\/span><span class=\"o\">@<\/span><span class=\"n\">localhost<\/span> <span class=\"n\">identified<\/span> <span class=\"k\">by<\/span> <span class=\"s1\">'password'<\/span><span class=\"p\">;<\/span>\r\n<span class=\"k\">grant<\/span> <span class=\"k\">all<\/span> <span class=\"k\">on<\/span> <span class=\"n\">wordpress<\/span><span class=\"p\">.<\/span><span class=\"o\">*<\/span> <span class=\"k\">to<\/span> <span class=\"n\">username<\/span><span class=\"o\">@<\/span><span class=\"n\">localhost<\/span><span class=\"p\">;<\/span>\r\n<span class=\"k\">select<\/span> <span class=\"k\">Host<\/span><span class=\"p\">,<\/span> <span class=\"k\">User<\/span><span class=\"p\">,<\/span> <span class=\"n\">Password<\/span> <span class=\"k\">from<\/span> <span class=\"n\">mysql<\/span><span class=\"p\">.<\/span><span class=\"k\">user<\/span><span class=\"p\">;<\/span> <span class=\"o\">#<\/span> <span class=\"err\">\u78ba\u8a8d<\/span>\r\n<\/code><\/pre>\n<h1>\u5b89\u88c5Apache<\/h1>\n<ul class=\"post-ul\">\u57fa\u672c\u7684\u306a Apache \u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306e\u5b9f\u884c<\/ul>\n<pre class=\"post-pre\"><code>sudo apt update &amp;&amp; sudo apt install apache2 -y\r\nsudo apt install apache2-dev # PHP\u52d5\u304b\u3059\u306e\u306b\u5fc5\u8981\uff08\u3068\u601d\u3046\uff09\r\n<\/code><\/pre>\n<h2>\u6fc0\u6d3b\u6240\u9700\u7684\u6a21\u5757\u3002<\/h2>\n<p>\u5728WordPress\u4e2d\uff0c\u5fc5\u987b\u4f7f\u7528mod_rewrite\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo a2enmod rewrite\r\nsudo a2enmod expires\r\nsudo a2enmod headers\r\n<\/code><\/pre>\n<h2>SSL\u7684\u914d\u7f6e<\/h2>\n<pre class=\"post-pre\"><code>sudo a2enmod ssl\r\n<\/code><\/pre>\n<p>\u8bf7\u53c2\u9605Google Cloud Platform\u4e0a\u7684\u72ec\u7279\u57df\u540d\u76f8\u5173\u603b\u7ed3\u4ee5\u83b7\u53d6\u66f4\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528SSL\uff0c\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u8bc1\u4e66\uff0c\u6240\u4ee5\u8bf7\u6ce8\u610f\u3002<br \/>\n\u53ef\u4ee5\u4f7f\u7528sudo apachectl configtest\u5bf9Apache\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u8bed\u6cd5\u68c0\u67e5\u3002<\/p>\n<p>\u5b8c\u6210\u540e\uff0c\u8bf7\u4f7f\u7528SSL\u670d\u52a1\u5668\u6d4b\u8bd5\u8fdb\u884c\u68c0\u67e5\u3002<\/p>\n<p>\u5982\u679c\u5728\u4f7f\u7528Chrome\u67e5\u770b\u7f51\u7ad9\u65f6\u88ab\u5f3a\u5236\u91cd\u5b9a\u5411\u5230HTTPS\u800c\u611f\u5230\u56f0\u6270\uff0c\u53ef\u4ee5\u5220\u9664HSTS\u8bbe\u7f6e\u3002<\/p>\n<ul class=\"post-ul\">Chrome\u3067http\u304b\u3089https\u3078\u5f37\u5236\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u308b\u5834\u5408\u306e\u5bfe\u51e6\u6cd5<\/ul>\n<h1>\u5b89\u88c5PHP<\/h1>\n<h2>\u5982\u679c\u4e0d\u4f7f\u7528MPM\u4e8b\u4ef6\u3002<\/h2>\n<p>\u53ea\u9700\u8981\u4e00\u4e2a\u9009\u9879\uff0c\u4ee5\u4e0b\u662f\u7528\u4e2d\u6587\u539f\u751f\u7684\u65b9\u5f0f\u6539\u5199\uff1a<br \/>\n\u5b89\u88c5\u8fd9\u4e2a\u5305\u662f\u6700\u597d\u7684\u9009\u62e9\u3002<br \/>\nhttps:\/\/packages.debian.org\/sid\/php7.1<\/p>\n<p>\u5728\u6e90\u5217\u8868\u4e2d\uff0c\u6dfb\u52a0\u79bb\u670d\u52a1\u5668\u4f4d\u7f6e\u8f83\u8fd1\u7684\u955c\u50cf\u3002<\/p>\n<pre class=\"post-pre\"><code>deb http:\/\/ftp.us.debian.org\/debian sid main\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>sudo apt install php7.1\r\nsudo apt install php7.1-mysql php7.1-xml php7.1-curl # \u5fc5\u8981\u306a\u3082\u306e\u306f\u9069\u5b9c\r\n<\/code><\/pre>\n<h2>\u5982\u679c\u4f7f\u7528MPM\u4e8b\u4ef6\u7684\u8bdd<\/h2>\n<p>\u9700\u8981\u81ea\u5df1\u7f16\u8bd1\u7ebf\u7a0b\u5b89\u5168\u7684PHP\u3002<\/p>\n<ul class=\"post-ul\">PHP7.1\u3092\u95a2\u9023\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u5171\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u30bd\u30fc\u30b9\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\uff09for Apache2.4+CentOS7.4<\/ul>\n<p>\u5982\u679c\u4f60\u7684\u5185\u5b58\u8f83\u5c11\u6216\u9700\u8981\u52a0\u5feb\u901f\u5ea6\uff0cMPM Event\u662f\u5fc5\u9700\u7684\u5417\uff1f<\/p>\n<p>\u5982\u679c\u60a8\u53ef\u4ee5\u68c0\u67e5\u4ee5\u524d\u7684\u73af\u5883\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 php -i | grep configure \u6216 php -m \u8fdb\u884c\u67e5\u8be2\u3002<\/p>\n<h3>\u8bf7\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u6587\u4ef6\u3002<\/h3>\n<pre class=\"post-pre\"><code>sudo apt install libbz2-dev\r\nsudo apt install libxml2-dev\r\nsudo apt install libc-client-dev\r\nsudo apt install libcurl4-openssl-dev\r\nsudo apt install libjpeg-dev\r\nsudo apt install libpng-dev\r\nsudo apt install libfreetype6-dev\r\nsudo apt install libxpm-dev\r\nsudo apt install libgd-dev #GD\r\nsudo apt install libkrb5-dev # Kerberos\r\nsudo apt install libmcrypt-dev\r\nsudo apt install libgmp-dev\r\nsudo apt install libpspell-dev\r\nsudo apt install libreadline-dev\r\n<\/code><\/pre>\n<h3>\u7f16\u8bd1\u548c\u5b89\u88c5<\/h3>\n<pre class=\"post-pre\"><code>wget --trust-server-names http:\/\/jp2.php.net\/get\/php-7.1.16.tar.gz\/from\/this\/mirror\r\ntar xvzf php-7.1.16.tar.gz\r\ncd php-7.1.16\r\n\r\n.\/configure --disable-dba --disable-rpath --enable-calendar --enable-cgi --enable-exif --enable-ftp --enable-gd-native-ttf --enable-gd-jis-conv --enable-huge-code-pages --enable-maintainer-zts --enable-debug --enable-mbstring --enable-mbregex --enable-fpm --enable-bcmath --enable-opcache --enable-pcntl --enable-inline-optimization --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-wddx --enable-zip --with-apxs2=\/usr\/bin\/apxs2 --with-bz2 --with-curl=\/usr\/local --with-gmp --with-mhash --with-pcre-regex --with-fpm-user=www-data --with-fpm-group=www-data --with-gd=\/usr\/include --with-freetype-dir=\/usr\/local\/src\/phpmodule\/freetype-2.7 --with-jpeg-dir=\/usr\/local\/lib --with-png-dir=\/usr\/local --with-iconv-dir=\/usr\/local --with-libxml-dir=\/usr\/local --with-mcrypt=\/usr\/local --with-tsrm-pthreads --with-openssl --with-pspell --with-readline --with-xpm-dir=\/usr --with-gettext --with-pdo-mysql --with-mysqli --with-mysql-sock=\/var\/run\/mysqld\/mysqld.sock --with-kerberos --with-zlib --with-zlib-dir=\/usr --without-pear\r\n\r\nsudo make\r\nsudo make install\r\n<\/code><\/pre>\n<p>\u5728\u4e2d\u6587\u4e2d\uff0capxs2\u7684\u4f4d\u7f6e\u53ef\u4ee5\u901a\u8fc7whereis apxs2\u6765\u67e5\u627e\u3002\u5176\u4ed6\u5e93\u4e5f\u53ef\u4ee5\u7c7b\u4f3c\u5730\u8fdb\u884c\u67e5\u627e\u3002<\/p>\n<p>\u5982\u679c\u51fa\u73b0\u7c7b\u4f3c\u4e8e [Makefile:297: sapi\/cli\/php] Error 1 \u7684\u9519\u8bef\uff0c\u8bf7\u5148\u8fd0\u884c sudo make clean \u518d\u91cd\u65b0\u6267\u884c\u3002<\/p>\n<p>\u6700\u540e\u5728\/usr\/local\/lib\u76ee\u5f55\u4e0b\u521b\u5efaphp.ini\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo cp php.ini-production \/usr\/local\/lib\/php.ini\r\n<\/code><\/pre>\n<h3>\u5c06PHP\u914d\u7f6e\u5230Apache\u4e0a\u3002<\/h3>\n<p>\u5982\u679c\u4fdd\u6301\u8fd9\u6837\uff0c\u914d\u7f6e\u6587\u4ef6\u5c06\u4e0d\u5b8c\u6574\uff0cPHP\u5c06\u65e0\u6cd5\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u3002<br \/>\n\u590d\u5236\uff08\u6216\u91cd\u547d\u540d\uff09\u53ef\u4ee5\u4f5c\u4e3a\u8f6f\u4ef6\u5305\u5b89\u88c5\u7684PHP7.1\u914d\u7f6e\u6587\u4ef6.<\/p>\n<pre class=\"post-pre\"><code>sudo a2dismod php7\r\nsudo a2enmod php7\r\n<\/code><\/pre>\n<p>\u8bf7\u5c06\u5176\u52a0\u8f7d\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;FilesMatch \".+\\.ph(ar|p|tml)$\"&gt;\r\n    SetHandler application\/x-httpd-php\r\n&lt;\/FilesMatch&gt;\r\n&lt;FilesMatch \".+\\.phps$\"&gt;\r\n    SetHandler application\/x-httpd-php-source\r\n    Require all denied\r\n&lt;\/FilesMatch&gt;\r\n&lt;FilesMatch \"^\\.ph(ar|p|ps|tml)$\"&gt;\r\n    Require all denied\r\n&lt;\/FilesMatch&gt;\r\n&lt;IfModule mod_userdir.c&gt;\r\n    &lt;Directory \/home\/*\/public_html&gt;\r\n        php_admin_flag engine Off\r\n    &lt;\/Directory&gt;\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<h2>mbstring\u7684\u914d\u7f6e<\/h2>\n<p>\u5982\u679c\u4f60\u4e0d\u81ea\u5df1\u7ec4\u5efa\u7684\u8bdd\uff0c\u5c31\u5b89\u88c5\u5b83\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo apt install php7.1-mbstring\r\n<\/code><\/pre>\n<p>\u65e0\u8bba\u54ea\u79cd\u60c5\u51b5\uff0c\u90fd\u9700\u8981\u5728php.ini\u4e2d\u8bbe\u7f6embstring\u3002<\/p>\n<ul class=\"post-ul\">\u65e5\u672c\u8a9e\u74b0\u5883\u306e\u8a2d\u5b9a &#8211; mbstring<\/ul>\n<h1>\u8c03\u97f3<\/h1>\n<h2>MySQL\u7684\u8c03\u4f18<\/h2>\n<p>\u9274\u4e8e\u76ee\u524d\u4f7f\u7528\u8f83\u591a\u7684\u662fMyISAM\uff0c\u5efa\u8bae\u589e\u52a0\u7f13\u51b2\u533a\u5927\u5c0f\uff0c\u6839\u636e\u9700\u8981\u8fd8\u53ef\u80fd\u9700\u8981\u8003\u8651\u7f13\u5b58\u7b49\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">set<\/span> <span class=\"k\">global<\/span> <span class=\"n\">key_buffer_size<\/span> <span class=\"o\">=<\/span> <span class=\"mi\">256<\/span> <span class=\"o\">*<\/span> <span class=\"mi\">1024<\/span> <span class=\"o\">*<\/span> <span class=\"mi\">1024<\/span><span class=\"p\">;<\/span>\r\n<span class=\"k\">set<\/span> <span class=\"k\">global<\/span> <span class=\"n\">query_cache_limit<\/span> <span class=\"o\">=<\/span> <span class=\"mi\">16<\/span> <span class=\"o\">*<\/span> <span class=\"mi\">1024<\/span> <span class=\"o\">*<\/span> <span class=\"mi\">1024<\/span><span class=\"p\">;<\/span>\r\n<\/code><\/pre>\n<p>\u807d\u8aaa\u5728MySQL 8\u4e2d\u4e0d\u80fd\u4f7f\u7528\u67e5\u8a62\u5feb\u53d6\u3002<\/p>\n<h2>\u8c03\u6574PHP\u7684\u5185\u5b58\u9650\u5236<\/h2>\n<pre class=\"post-pre\"><code><span class=\"py\">memory_limit<\/span> <span class=\"p\">=<\/span> <span class=\"s\">256M<\/span>\r\n<span class=\"py\">realpath_cache_size<\/span> <span class=\"p\">=<\/span> <span class=\"s\">8192k<\/span>\r\n<span class=\"py\">realpath_cache_ttl<\/span> <span class=\"p\">=<\/span> <span class=\"s\">300<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"nb\">define<\/span><span class=\"p\">(<\/span><span class=\"s1\">'WP_MEMORY_LIMIT'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'128M'<\/span><span class=\"p\">);<\/span>\r\n<span class=\"nb\">define<\/span><span class=\"p\">(<\/span><span class=\"s1\">'WP_MAX_MEMORY_LIMIT'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'256M'<\/span><span class=\"p\">);<\/span>\r\n<\/code><\/pre>\n<h2>PHP-FPM\u548cFastCGI<\/h2>\n<p>\u203b\u6839\u636e\u6211\u7684\u73af\u5883\uff0c\u542f\u7528FPM<\/p>\n<blockquote><p>\u60a8\u7684\u670d\u52a1\u5668\u4e0a\u7684 PHP \u770b\u6765\u65e0\u6cd5\u4f7f\u7528 WordPress \u6240\u9700\u7684 MySQL \u6269\u5c55\u3002<\/p><\/blockquote>\n<p>\u7531\u4e8eWordPress\u51fa\u73b0\u4e86\u8fd9\u4e2a\u9519\u8bef\uff0c\u6240\u4ee5\u6211\u6682\u65f6\u53ea\u4f7f\u7528FastCGI\uff08CGI\/FastCGI\uff09\u6765\u8fd0\u884c\u3002<\/p>\n<hr \/>\n<ul class=\"post-ul\">FastCGI PHP \u306e\u8a2d\u5b9a\u65b9\u6cd5 \u3068 mod_php \u3068\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6bd4\u8f03\uff08Apache httpd\uff09<\/ul>\n<p>\u5b89\u88c5mod_fcgid\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo apt install libapache2-mod-fcgid\r\n<\/code><\/pre>\n<p>\u521b\u5efa\u811a\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo vi \/usr\/local\/bin\/php-wrapper\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>#!\/bin\/sh\r\nexport PHP_FCGI_MAX_REQUESTS=5000\r\nexport PHP_FCGI_CHILDREN=0\r\nexec \/usr\/local\/bin\/php-cgi\r\n<\/code><\/pre>\n<p>\u6743\u9650\u66f4\u6539\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo chown www-data \/usr\/local\/bin\/php-wrapper\r\nsudo chmod u+x \/usr\/local\/bin\/php-wrapper\r\n<\/code><\/pre>\n<p>\u7981\u7528\u6a21\u5757\u7248\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo a2dismod php7\r\n<\/code><\/pre>\n<p>\u7f16\u8f91Apache\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>Options \u306b ExecCGI \u3092\u8ffd\u52a0<\/p>\n<p>AddHandler \u3092\u6307\u5b9a<\/p>\n<p>FcgidWrapper \u3092\u6307\u5b9a<\/p>\n<p>FcgidMaxRequestsPerProcess \u3092\u6307\u5b9a<\/p>\n<p>\u8bf7\u53c2\u8003\u4ee5\u4e0b\u94fe\u63a5\u4ee5\u83b7\u53d6\u66f4\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p>\u5b89\u88c5\u5e76\u542f\u7528PHP-FPM\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo apt install php7.1-fpm\r\nsudo a2enmod proxy_fcgi setenvif\r\nsudo a2enconf php7.1-fpm\r\n<\/code><\/pre>\n<p>\u82e5\u4ee5 phpinfo() \u51fd\u6570\u67e5\u770b\u5230\u7684 Server API \u4e3aFPM\/FastCGI\uff0c\u5219\u8868\u793a\u6b63\u5e38\u3002<\/p>\n<h2>MPM \u6d3b\u52a8<\/h2>\n<p>\u6211\u6709\u5f88\u591a\u7169\u60f1\uff0c\u4f46\u662f\u6211\u81ea\u5df1\u5beb\u4e86\u4e00\u7bc7\u6587\u7ae0\uff08\u5b8c\u5168\u5fd8\u8a18\u4e86&#8230;\uff09\u3002<\/p>\n<ul class=\"post-ul\">GCE\u306bWordPress\u4e57\u3063\u3051\u305f\u3089\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u306a\u304b\u3063\u305f\u4ef6\uff08\u89e3\u6c7a\u6e08\u307f\uff09<\/ul>\n<pre class=\"post-pre\"><code>&lt;IfModule mpm_event_module&gt;\r\n        StartServers             1\r\n        ServerLimit              8\r\n        ThreadLimit              4\r\n        ThreadsPerChild          4\r\n        MinSpareThreads          4\r\n        MaxSpareThreads          16\r\n        MaxRequestWorkers        32\r\n        MaxConnectionsPerChild   0\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<h2>OPcache \u539f\u751f\u7684\u4e2d\u6587\u89e3\u91ca\u4e3a&#8221;\u64cd\u4f5c\u4ee3\u7801\u7f13\u5b58&#8221;\u3002<\/h2>\n<ul class=\"post-ul\">OPcache\u5c0e\u5165\u3057\u3066\u307f\u305f\uff01\uff08\u901f\u3055\u691c\u8a3c\u3082\u3042\u308b\u3088\uff01\uff09<\/ul>\n<p>\u5982\u679c\u4e0d\u52a0\u8f7dopcache.so\uff0c\u5219\u65e0\u6cd5\u542f\u7528\u3002<br \/>\n\u4e3a\u4ec0\u4e48\u4e0d\u4ece\u4e00\u5f00\u59cb\u5c31\u5c06\u5b83\u5199\u5165\u6587\u4ef6\u5462\uff1f<\/p>\n<pre class=\"post-pre\"><code><span class=\"py\">zend_extension<\/span><span class=\"p\">=<\/span><span class=\"s\">opcache.so<\/span>\r\n<\/code><\/pre>\n<p>\u6211\u559c\u6b22\u4f7f\u7528opcache-gui\u8fd9\u4e2a\u5de5\u5177\u6765\u8fdb\u884cGUI\u68c0\u67e5\u3002<\/p>\n<h2>\u5185\u5b58\u7f13\u5b58<\/h2>\n<p>\u8bbe\u7f6e\u4e2d\u3002<\/p>\n<ul class=\"post-ul\">PHP\u3067memcached\u3092\u4f7f\u3046\u3068\u304d\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6bd4\u8f03<\/ul>\n<pre class=\"post-pre\"><code>sudo apt install memcached\r\nsudo service memcached start\r\nsudo apt install php-memcached\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"py\">ession.save_handler<\/span> <span class=\"p\">=<\/span> <span class=\"s\">memcache<\/span>\r\n<\/code><\/pre>\n<h1>WordPress\u7684\u8bbe\u7f6e<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">WP\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u6240\u6709\u6a29\u3092Apache\u306b\u5909\u3048\u3066\u304a\u304f<\/ul>\n<\/li>\n<\/ul>\n<p>wp-config.php\u306a\u3069\u306f\u30a2\u30af\u30bb\u30b9\u6a29\u3082\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/p>\n<p>Google\u306a\u3069\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306f\u3084\u308a\u76f4\u3057\u306b\u306a\u308b<\/p>\n<p>\u81ea\u52d5\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7b49\u306e\u8a2d\u5b9a\u306f\u8981\u898b\u76f4\u3057<\/p>\n<div>\n<p>\u7531\u4e8e\u65e0\u6cd5\u767b\u9646\u5b9e\u4f8b\uff0c\u6240\u4ee5\u8fd9\u4e2a\u5b9e\u4f8b\u4f3c\u4e4e\u4f1a\u53d8\u6210\u9ed1\u5323\u5b50\u3002\u800c\u4e14\u8fd9\u4e2a\u535a\u5ba2\u662f\u53e6\u4e00\u4e2aCMS\uff0c\u6240\u4ee5\u8fd8\u6ca1\u6709\u6062\u590d\u2026\u3002<\/p>\n<p>\u5c3d\u7ba1\u6211\u66f4\u6362\u4e86\u542f\u52a8\u78c1\u76d8\uff0c\u4f46\u4e0d\u77e5\u4f55\u6545Linux\u7528\u6237\uff08\u60f3\u4f7f\u7528\u4e0d\u540c\u4e8eGoogle\u5e10\u53f7\u540d\u79f0\u7684\u7528\u6237\u540d\uff09\u548c\u8eab\u4efd\u9a8c\u8bc1\u4fe1\u606f\u4ecd\u7136\u5b58\u5728\u3002\u5982\u679c\u5728\u540c\u4e00\u9879\u76ee\u4e2d\uff0c\u5373\u4f7f\u5728\u5176\u4ed6\u5b9e\u4f8b\u4e2d\u4e5f\u53ef\u4ee5\u5171\u4eab\u5417\uff1f\u4f46\u662f\u6211\u5728\u5feb\u7167\u4e2d\u6ca1\u6709\u627e\u5230\u5176\u4ed6\u7528\u6237\uff0c\u8fd9\u771f\u662f\u4e2a\u8c1c\u3002<\/p>\n<p>\u5728\u5173\u4e8egit\u65b9\u9762\uff0c\u5728GCP\u7684\u5b58\u50a8\u5e93\u4e2d\u65e0\u6cd5\u8fdb\u884c\u63a8\u9001\uff0c\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u6784\u5efa\u3002\u5c3d\u7ba1\u6ca1\u6709\u4f7f\u7528\u81ea\u7b7e\u540d\u8bc1\u4e66\u4e4b\u7c7b\u7684\u4e1c\u897f&#8230;<\/p>\n<p>\u5728\u63a8\u8fdb\u5176\u4ed6\u5de5\u4f5c\u7684\u540c\u65f6\uff0c\u6211\u63a8\u6d4b\u8fd9\u53ef\u80fd\u53ea\u662f\u6682\u65f6\u7684\u95ee\u9898\uff0c\u56e0\u4e3a\u540e\u6765\u53ef\u4ee5\u8fdb\u884c\u63a8\u9001\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u4e00\u5929\uff0cGCE\u5b9e\u4f8b\u7a81\u7136\u505c\u6b62\u5de5\u4f5c\u4e86\uff0c\u5e76\u4e14\u65e0\u6cd5\u6062\u590d\uff0c\u8003\u8651\u5230\u91cd\u65b0\u521b\u5efa\u5b9e\u4f8b\u6bd4\u6392\u67e5\u539f\u56e0\u66f4\u52a0\u5feb\u6377\uff0c\u6240\u4ee5\u6211\u4eec\u9009\u62e9\u4e86\u91cd\u65b0\u521b\u5efa\u5b9e [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34741","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>\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09 - 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\/\u521b\u5efa\u4e00\u4e2alamp\u73af\u5883\uff08debian-9-php-7-1-apache-2-4-mariadb-10-1\uff09\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09\" \/>\n<meta property=\"og:description\" content=\"\u6709\u4e00\u5929\uff0cGCE\u5b9e\u4f8b\u7a81\u7136\u505c\u6b62\u5de5\u4f5c\u4e86\uff0c\u5e76\u4e14\u65e0\u6cd5\u6062\u590d\uff0c\u8003\u8651\u5230\u91cd\u65b0\u521b\u5efa\u5b9e\u4f8b\u6bd4\u6392\u67e5\u539f\u56e0\u66f4\u52a0\u5feb\u6377\uff0c\u6240\u4ee5\u6211\u4eec\u9009\u62e9\u4e86\u91cd\u65b0\u521b\u5efa\u5b9e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u521b\u5efa\u4e00\u4e2alamp\u73af\u5883\uff08debian-9-php-7-1-apache-2-4-mariadb-10-1\uff09\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-02T10:35:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T19:07:47+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \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\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/\",\"name\":\"\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-02T10:35:38+00:00\",\"dateModified\":\"2024-04-29T19:07:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09\"}]},{\"@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\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09 - 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\/\u521b\u5efa\u4e00\u4e2alamp\u73af\u5883\uff08debian-9-php-7-1-apache-2-4-mariadb-10-1\uff09\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09","og_description":"\u6709\u4e00\u5929\uff0cGCE\u5b9e\u4f8b\u7a81\u7136\u505c\u6b62\u5de5\u4f5c\u4e86\uff0c\u5e76\u4e14\u65e0\u6cd5\u6062\u590d\uff0c\u8003\u8651\u5230\u91cd\u65b0\u521b\u5efa\u5b9e\u4f8b\u6bd4\u6392\u67e5\u539f\u56e0\u66f4\u52a0\u5feb\u6377\uff0c\u6240\u4ee5\u6211\u4eec\u9009\u62e9\u4e86\u91cd\u65b0\u521b\u5efa\u5b9e [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u521b\u5efa\u4e00\u4e2alamp\u73af\u5883\uff08debian-9-php-7-1-apache-2-4-mariadb-10-1\uff09\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-02T10:35:38+00:00","article_modified_time":"2024-04-29T19:07:47+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/","name":"\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-02T10:35:38+00:00","dateModified":"2024-04-29T19:07:47+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u521b\u5efa\u4e00\u4e2aLAMP\u73af\u5883\uff08Debian 9 + PHP 7.1 + Apache 2.4 + MariaDB 10.1\uff09"}]},{"@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\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aalamp%e7%8e%af%e5%a2%83%ef%bc%88debian-9-php-7-1-apache-2-4-mariadb-10-1%ef%bc%89%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34741","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34741"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34741\/revisions"}],"predecessor-version":[{"id":89313,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34741\/revisions\/89313"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}