In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Compile, install, build wordpress name version name Centos7.4CentOS Linux release 7.4.1708 (Core) Apache2.4.37httpd-2.4.37.tar.bz2APR1.6.5apr-1.6.5.tar.bz2APR-util1.6.1apr-util-1.6.1.tar.bz2PHP7.1.18php-7.1.18.tar.bz2Mariadb10.2.15mariadb-10.2.15-linux-x86_64.tar.gzWordPress4.9.4wordpress-4.9.4-zh_CN.tar.gz
1. Compile and install httpd
(1) decompress the software package of httpd,APR,APR-util
Tar xvf apr-1.6.5.tar.bz2 tar xvf apr-util-1.6.1.tar.bz2 tar xvf httpd-2.4.37.tar.bz2
(2) move the APR and APR-util directories to the srclib directory of httpd
Mv apr-util-1.6.1 httpd-2.4.37/srclib/apr-util mv apr-1.6.5 httpd-2.4.37/srclib/apr
(3) start compilation:
Cd httpd-2.4.37/./configure-prefix=/app/httpd24-sysconfdir=/etc/httpd24-enable-so-enable-ssl-enable-cgi-enable-rewrite-with-zlib--with-pcre-with-included-apr-enable-modules=most-enable-mpms-shared=all-with-mpm=preforkmake & make install
(4) create a user environment
Useradd-r-s / sbin/nologin apache [root@localhost src] # vim / etc/profile.d/httpd24.shexport PATH=/app/httpd24/bin/:$PATH. / etc/profile.d/httpd24.sh
(5) use apachectl command to control Apache service
Apachectl-options
two。 Binary installation Mariadb
(1) prepare users:
Useradd-r-d / data/mysql mysql
(2) prepare the data directory:
Mkdir / data/mysqchown mysql:mysql / data/mysqll
(3) prepare the binary program
Tar xvf mariadb-10.2.15-linux-x86_64.tar.gz-C / usr/local/ cd / usr/local/ ln-sv mariadb-10.2.15-linux-x86_64 mysql chown-R root:mysql / usr/local/mysql/
(4) configuration file
Add datadir = / data/mysqlinnodb_file_per_table = onskip_name_resolve = on to mkdir / etc/mysql/cp / usr/local/mysql/support-files/my-large.cnf / etc/mysql/my.cnf [mysql]
(5) create a database file
Cd / usr/local/mysql/./scripts/mysql_install_db-datadir=/data/mysql-user=mysql
(6) prepare the service script and start the script
Cp. / support-files/mysql.server / etc/rc.d/init.d/mysqld chkconfig-- add mysqld service mysqld start
(7) PATH path
Echo 'PATH=/user/local/mysql/bin:$PATH' > / etc/profile.d/mysql.sh. / etc/profile.d/mysql.sh
(8) create databases and authorized users
Mysql > create database wordpress;mysql > grant all on wordpress.* to wpuser@'172.20.10/e.%' identified by 'wpuser'
3. Compile and install PHP
(1) install relevant software packages
Yum install libxml2-devel bzip2-devel libmcrypt-devel-y
(2) decompress PHP and install
Tar xvf php-7.1.18.tar.xz cd php-7.1.18/./configure-prefix=/app/php-enable-mysqlnd-with-mysqli=mysqlnd-with-openssl-with-pdo-mysql=mysqlnd-enable-mbstring-with-freetype-dir-with-jpeg-dir-with-png-dir-with-zlib-with-libxml-dir=/usr-enable-xml enable-sockets with-apxs2=/app/httpd24/bin/apxs with -mcrypt-with-config-file-path=/etc-with-config-file-scan-dir=/etc/php.d-enable-maintainer-zts-disable-fileinfomake & & make install
(3) configuration file settings
Cp php.ini-production / etc/php.inivim / etc/httpd24/httpd.conf DirectoryIndex index.php index.html # writes the following two lines of code AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps at the end of the file
(4) Test the connection to the database
[root@localhost htdocs] # vim mysql.php
4. Set up wordpress
(1) decompress the wordpress package
Tar xvf wordpress-4.9.4-zh_CN.tar.gzmv wordpress / app/httpd24/htdocs/blog
(2) modify wordpress configuration file
[root@localhost blog] # vim wp-config.php// * * MySQL setting-specific information comes from the name of the host * * / / * * WordPress database * / define ('DB_NAME',' wordpress') that you are using; / * MySQL database user name * / define ('DB_USER',' wpuser'); / * MySQL database password * / define ('DB_PASSWORD',' wppass') / * * MySQL host * / define ('DB_HOST',' 172.20.10.5'); / * default text encoding when creating datasheets * / define ('DB_CHARSET',' utf8')
(3) set up login account
(4) Login:
(5) visit:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.