WordPress安装所需的环境,需要编译的中间件和组件 作者: _囧rz_ 时间: 2021-10-21 分类: 计算机类 Although WordPress can work in almost any environment, even very minimal ones, it must be acknowledged that it does not work completely well in these. That’s why here we are going to make some minimum recommendations of the environment in which it would work most effectively. https://make.wordpress.org/hosting/handbook/server-environment/ Web Server #Web Server The web server is the software dedicated to run the files of the website and where users come to consult them, mainly through the Web. There are many web servers and, generally, any that support the execution of PHP files should be able to work with WordPress. When it comes to the server, web, WordPress officially supports: Apache HTTPD 2.4 nginx 1.20 / 1.19 http://nginx.org/download/nginx-1.21.3.tar.gz Also, checked or used by hosting companies and developers: LiteSpeed Web Server 6.0 / 5.4 / 5.3 OpenLiteSpeed 1.7 / 1.6 / 1.5 / 1.4 WordPress may work with older versions, but we recommend only versions that are stable and supported. Remember that if you have a website running in production, it is recommended to use the latest stable version of each of the web servers (mainly for security, rather than functionality), but not alpha, beta or candidate (RC) versions. PHP #PHP PHP is a programming language on which WordPress code is based. This language runs on the server and it is important to keep it up to date, both for security and functionality. WordPress supports many versions of PHP, some even obsolete, but as a general rule you should use only those with security or stable support. Officially the WordPress core supports from PHP 5.6.20 to PHP 8.0. However, not all themes or plugins are supported. When it comes to PHP, WordPress works best with the following versions: PHP 8.0 PHP 7.4 https://www.php.net/distributions/php-8.0.11.tar.gz https://www.php.net/distributions/php-7.4.24.tar.gz 必须安装扩展 curl,dom,exif,fileinfo,hash,imagick,json,mbstring,mysqli,openssl,pcre,sodium,xml,zip, 推荐安装扩展 bcmath,filter,gd,iconv,intl,mcrypt,simplexml,xmlreader,zlib, 另外安装服务 ssh2,ftp,sockets, 系统扩展 ImageMagick,Ghost Script 数据库 MariaDB 10.5 / 10.4 / 10.3 / 10.2 MySQL 8.0 / 5.7 https://dev.mysql.com/downloads/mysql/ https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.26-1.el8.x86_64.rpm-bundle.tar https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-server-8.0.26-1.el8.x86_64.rpm 推荐运平台数据库 Amazon Aurora Amazon RDS for MariaDB Amazon RDS for MySQL Google Cloud SQL Percona MySQL Server 8.0 NGINX https://www.icode9.com/content-3-1087281.html http://nginx.org/en/linux_packages.html#RHEL-CentOS PHP8 https://wvww.cn/15.html MYSQL https://www.gaoxiaobo.com/web/server/169.html systemctl stop firewalld https://blog.csdn.net/weixin_46106069/article/details/114700217 https://blog.csdn.net/qq_39289155/article/details/111501000 linux服务器nginx安装资源(nginx、openssl、pcre、zlib、gcc、gcc-c++) ./configure --prefix=/usr/local/libiconv yum -y install wget vim pcre pcre-devel openssl openssl-devel libicu-devel gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel ncurses ncurses-devel curl curl-devel krb5-devel libidn libidn-devel openldap openldap-devel nss_ldap jemalloc-devel cmake boost-devel bison automake libevent libevent-devel gd gd-devel libtool* libmcrypt libmcrypt-devel mcrypt mhash libxslt libxslt-devel readline readline-devel gmp gmp-devel libcurl libcurl-devel openjpeg-devel sqlite-devel net-tools* yum -y install ntpdate gcc gcc-c++ ncurses ncurses-devel cmake readline-devel zlib.x86_64 zlib-devel.x86_64 bison libcurl-* net-tool* tree nmap sysstat lrzsz dos2unix telnet.x86_64 nethogs iftop iotop unzip ftp.x86_64 xfs* expect vim wget psmisc openssh-client* libaio libaio1 libnuma openssl-devel bzip2 https://blog.51cto.com/u_15162069/2699925 https://www.gaoxiaobo.com/web/server/169.html ------------------------------------------------------ 1、首先下载mysql-8.0.26 RPM安装包。 官方rpm包下载地址:https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.26-1.el7.x86_64.rpm-bundle.tar wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.26-1.el7.x86_64.rpm-bundle.tar 2、解压tar包 tar -xvf mysql-8.0.26-1.el7.x86_64.rpm-bundle.tar 3、安装mysql-common rpm -ivh mysql-community-common-8.0.26-1.el7.x86_64.rpm 4、安装mysql-client-plugins rpm -ivh mysql-community-client-plugins-8.0.26-1.el7.x86_64.rpm 5、安装mysql-community-libs rpm -ivh mysql-community-libs-8.0.26-1.el7.x86_64.rpm 6、安装mysql-community-client rpm -ivh mysql-community-client-8.0.26-1.el7.x86_64.rpm 7、安装mysql-community-server rpm -ivh mysql-community-server-8.0.26-1.el7.x86_64.rpm 报错,提示缺少net-tools error: Failed dependencies: net-tools is needed by mysql-community-server-8.0.26-1.el7.x86_64 安装net-tools yum install -y net-tools* 再次执行上述mysql-community-server安装命令,OK了,可以正常安装。 8、启动mysql service mysqld start 9、mysql8.0版本后,启动时会生成初始密码,在/var/log/mysqld.log日志中,查看初始密码 grep 'temporary password' /var/log/mysqld.log mysql -u root -p show databases; use mysql; 10、登录mysql,修改root用户密码,开启远程登录权限 #mysql 8.*修改的密码强度需要包含大小写字母、特殊符号、数字,否则将报错修改失败 alter user 'root'@'localhost' identified by 'password'; use mysql update user set host = '%' where user='root'; flush privileges; 作者:只是甲 链接:https://www.jianshu.com/p/090e4a055713 来源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 必须安装扩展 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/conf --enable-curl --enable-dom --enable-exif --enable-fileinfo--enable-hash --enable-imagick --enable-json --enable-mbstring--enable-mysqli --enable-openssl --enable-pcre --enable-sodium--enable-xml --enable-zip --enable-bcmath --enable-filter --enable-gd--enable-iconv --enable-intl --enable-mcrypt --enable-simplexml --enable-xmlreader --enable-zlib--with-pdo-mysql --with-openssl --with-curl --with-gd --with-gettext--with-mhash --with-openssl --with-mcrypt --with-tidy --enable-wddx--with-xmlrpc --with-zlib 标签: none
评论已关闭