In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
LAMP is an open source software architecture for building dynamic websites, which forms a powerful Web application platform with low investment cost in software projects, so it is concerned by the whole IT industry and used by a large number of companies.
1.LAMP enterprise installation configuration: there are two ways to build a LAMP architecture, one is to install online using yum, and the other is to compile and install based on source code.
1) yum online installation
# yum install httpd httpd-devel mysql mysql-server mysql-devel php php-devel php-mysql-y
# service httpd restart
# service mysqld restart
2) install based on source code: LAP (CentOS+Apache+PHP): 192.168.153.142
Apache: https://blog.51cto.com/sky9896/2467218
MySQL: https://blog.51cto.com/sky9896/2467552
PHP: source code compilation and installation
[root@lap tools] # wget http://mirrors.sohu.com/php/php-5.3.28.tar.gz
-- 2020-01-20 10 1214 00 muri-http://mirrors.sohu.com/php/php-5.3.28.tar.gz
Parsing host mirrors.sohu.com (mirrors.sohu.com)... Failure: unknown name or service.
Wget: unable to resolve host address "mirrors.sohu.com"
[root@lap tools] # cat / etc/resolv.conf
# Generated by NetworkManager
Nameserver 202.101.224.68
Nameserver 8.8.8.8
[root@lap tools] # tar-zxf php-5.3.28.tar.gz
[root@lap tools] # cd php-5.3.28
[root@lap php-5.3.28] #
[root@lap php-5.3.28] # / configure-- prefix=/usr/local/php5-- with-config-file-path=/usr/local/php5/etc-- with-apxs2=/usr/local/apache2/bin/apxs-- with-mysql=mysqlnd-- with-mysqli=mysqlnd-- with-pdo-mysql=mysqlnd-- with-mysql=/usr/local/mysql/
.
Configure: error: xml2-config not found. Please check your libxml2 installation.
[root@lap php-5.3.28] # yum install libxml2 libxml2-devel-y
[root@lap php-5.3.28] # / configure-- prefix=/usr/local/php5-- with-config-file-path=/usr/local/php5/etc-- with-apxs2=/usr/local/apache2/bin/apxs-- with-mysql=mysqlnd-- with-mysqli=mysqlnd-- with-pdo-mysql=mysqlnd-- with-mysql=/usr/local/mysql/
.
Thank you for using PHP.
[root@lap php-5.3.28] # make
In file included from / tools/php-5.3.28/ext/standard/basic_functions.c:49:0:
/ tools/php-5.3.28/Zend/zend_language_parser.h:317:5: error: conflict with 'zendparse' type
Int zendparse (void)
/ tools/php-5.3.28/Zend/zend_globals_macros.h:35:5: note: 'zendparse' 's last statement is here
Int zendparse (void * compiler_globals)
Make: * * [ext/standard/basic_functions.lo] error 1
[root@lap Zend] # pwd
/ tools/php-5.3.28/Zend
[root@lap Zend] # vim zend_language_parser.h
# int zendparse (void); # you can delete this statement
Int zendparse (void * compiler_globals); # add this statement
[root@lap php-5.3.28] # make
.
Build complete.
Don't forget to run 'make test'.
[root@lap php-5.3.28] # make install
.
/ tools/php-5.3.28/build/shtool install-c ext/phar/phar.phar / usr/local/php5/bin
Ln-s-f / usr/local/php5/bin/phar.phar / usr/local/php5/bin/phar
Installing PDO headers: / usr/local/php5/include/php/ext/pdo/
[root@lap /] # vim / etc/php.ini
LoadModule php5_module modules/libphp5.so
DirectoryIndex index.php ndex.html index.htm
AddType application/x-httpd-php .php
[root@lap htdocs] # cat > / usr/local/apache2/htdocs/index.php
> EOF
two。 Configure Discuz PHP discussion installation: LAP (CentOS+Apache+PHP): 192.168.153.142
[root@lap tools] # unzip Discuz_X3.4_SC_UTF8.zip-d / usr/local/apache2/htdocs/
Bash: unzip: command not found
[root@lap tools] # yum install unzip
[root@lap tools] # unzip Discuz_X3.4_SC_UTF8.zip-d / usr/local/apache2/htdocs/
[root@lap bbs] # unzip Discuz_X3.4_SC_UTF8.zip-d / usr/local/apache2/htdocs/bbs/
[root@lap tools] # cd / usr/local/apache2/htdocs/bbs/
[root@lap bbs] # mv upload/*.
[root@lap bbs] # chmod 757-R data/ uc_server/ config/ uc_client/
3.MySQL database related configuration: 192.168.153.143
MySQL [(none)] > create database ultrax; # create initialization database first
MySQL [(none)] > grant all on ultrax.* to root@'192.168.153.142' identified by "sky9890"; # Licensing
# the above two steps are important, otherwise the following error will be reported:
4.Discuz PHP discusses the installation process: LAP (CentOS+Apache+PHP): 192.168.153.142
Summary: how to optimize the LAMP architecture, how to split the LAMP architecture to, how to separate Apache and MySQL on different machines? The purpose of splitting the LAMP architecture is to ease the pressure on a single server. PHP and MySQL can be installed on multiple servers separately. This actual combat implements the architecture of LAP+MySQL, that is, separate MySQL.
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.