In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
CentOS7.2 builds LAMP+xcache environment, creates multiple virtual hosts and deploys phpMyadmin and wordpres respectively
Experimental environment:
CentOS7.2, lapm+xcache, rpm package, php module
A) one virtual host provides phpMyAdmin and the other virtual host provides wordpress
B) provide https services for phpMyAdmim
Web server: CentOS7.2 IP address: 192.168.1.12
Client: CentOS 6.7 IP address: 192.168.1.14
Set up the basic environment and deploy phpMyAdmin programs
1. Yum installs the httpd program
Yum-y install httpd httpd-devel pcre-devel openssl-devel libevent-devel
2. Yum installs the php program
Yum-y install phpphp-devel libxml2-devel gd-devel freetype-devel libmcrypt-devel php-mbstring.x86_64
3. Install the maraidb database
Yum-y installmariadb-server php-mysql
4. In the / etc/httpd/conf.d/ directory, create a file called virtualhost.conf, edit the file, and enter the following:
5. Create the necessary files, check the configuration file syntax format, and reload the httpd process
6. Verify that the two virtual hosts are accessible on the client.
Edit the / etc/hosts file:
Using curl command, access to two virtual hosts, even virtual hosts, can be accessed normally.
7. Deploy phpMyAdmin programs on www1.ipsecx.com virtual hosts
Place the phpMyAdmin program in the / var/www/vhost/www1/ directory
Extract the phpMyAdmin program and establish the symbolic link pma of the extracted directory
8. Go to the pma directory and use the configuration template that comes with the program to generate the configuration file
9. Modify the configuration file config.inc.php to add some random strings between the two single quotes. These strings are based on cookie authentication and are used to encrypt cookie password data, save and exit.
10. Restart the httpd process, and in the client browser, verify that http://www1.ipsec.com/pma can be opened
11. Set the password to the root account of the mariadb database
twelve。 Enter the account password of the database to verify whether you can log in successfully
At this point, the virtual host www1.ipsecx.com can provide phpMyAdmin services
Deploy the wordpress program
13. Configure virtual host www2.ipsecx.com to provide wordpress service
Place the wordpress package in the web root directory of the virtual host www2.ipsecx.com, and create a symbolic link file that points to the directory of the wordpress program, as shown in the following figure:
14. Enter the wp directory and use the configuration template file that comes with the program to generate the configuration file.
15. First create a mariadb database for wordpress and the account password for logging in to the database
16. Modify the configuration file of wordpress, wp-config.php, according to the dimensioned configuration
17. After the configuration is completed, save and exit, restart the httpd process, and use client browsing to verify whether you can enter the configuration page of wordpress.
Ok, you can visit www2.ipsecx.com 's wordpress installation page!
As to how to provide https service, I already wrote in my last blog, I will not repeat the configuration here. There should be no problem if you follow the configuration steps of the previous blog.
Deploy xcache
1. Copy the xcache package to the Linux system and execute the phpize command
The phpize command is used to extend the php expansion module, and the plug-in module of php can be established through phpize.
two。 Configure the xcache configuration environment, mainly to establish a relationship with the php configuration file
3. Execute the make command
4. Execute the make install command
5. Copy the xcache.ini file to the / etc/php.d/ directory
6. Restart the httpd process to verify whether the xcache plug-in is loaded successfully. By opening www1.ipsecx.com, it shows that the xcache is loaded successfully.
In fact, the home page here calls a function in php, attaching the source code of the home page, and if you configure it correctly, the page above will be displayed.
If you want to test the performance of the web page after xcache deployment is completed, you can use the ab command. If you are interested, you can do it on your own.
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.