{"id":73,"date":"2023-02-12T21:35:35","date_gmt":"2023-02-12T13:35:35","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=73"},"modified":"2023-02-12T21:38:43","modified_gmt":"2023-02-12T13:38:43","slug":"centos-install-php-74","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/12\/centos-install-php-74\/","title":{"rendered":"CentOS\u4e0bPHP 7.4 \u5feb\u901f\u5b89\u88c5"},"content":{"rendered":"<p><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.php.net\/downloads.php\">https:\/\/www.php.net\/downloads.php<\/a><\/p>\n<pre><code class=\"language-bash\"># yum install wget gcc gcc-c++ g++ autoconf autoconf2.13 automake make m4\n# yum install openssl openssl-devel python-devel libxml2 libxml2-devel zlib-devel pcre-devel libcurl-devel libjpeg-devel libpng-devel libpng12-devel freetype-devel mhash-devel libmcrypt-devel libXpm-devel libedit-devel re2c libxslt libxslt-devel libicu-devel\n\n# yum install sqlite-devel\n# yum install oniguruma-devel<\/code><\/pre>\n<pre><code class=\"language-bash\"># .\/configure --prefix=\/data\/server\/php7 --with-config-file-path=\/data\/server\/php7\/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-zip= --with-pdo_sqlite --with-gettext --with-iconv --enable-ftp --with-sqlite3 --enable-xml --enable-mbstring --enable-sockets --enable-soap --enable-fileinfo --enable-exif --enable-bcmath --with-readline --with-libedit --with-openssl --with-zlib --with-curl --enable-gd --with-jpeg --with-png --with-freetype --with-libxml --with-xpm --with-mcrypt --with-mhash --enable-mysqlnd --enable-pdo --with-mysqli --with-pdo-mysql --without-pear --with-libdir=lib64 --with-mysql-sock --enable-opcache --enable-intl --with-xsl --disable-cgi\n\nconfigure: WARNING: unrecognized options: --with-png, --with-mcrypt\n\n# make\n# make install\n# cd \/data\/server\/php7\/etc\/\n# cp php-fpm.conf.default php-fpm.conf\n# cp php-fpm.d\/www.conf.default php-fpm.d\/www.conf\n# ln -s \/data\/server\/php7\/bin\/* \/usr\/bin\/\n# ln -s \/data\/server\/php7\/sbin\/* \/usr\/bin\/\n# php -v<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.php.net\/downloads.php # yum install wget gc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[47],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-php"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}