摘要:系统运维 实验:LAMP的php模块方式应用phpmyadm和wordpress 两台主机一台A:httpd,php一台B:mariadb server 1 A:yum httpd php php-mysql v
系统运维
实验:LAMP的php模块方式应用phpmyadm和wordpress
两台主机
一台A:httpd,php
一台B:mariadb server
1 A:
yum httpd php php-mysql
vim /etc/php.ini
date.timezone = Asia/Shanghai
vim /etc/httpd/conf/httpd.conf
DirectoryIndex index.php index.html
systemctl restart httpd
vim /var/www/html/index.php
2 B
yum install mariadb-server
systemctl start mariadb
Mysql_secure_installation
MYSQL -uroot -pcentos
>grant all on *.* to root@\'192.168.37.%\' identified by \'centos\';
vim /var/www/html/index2.php
close();
测试 http://websrv/
3 实现phpmyadmin
yum install php-mbstring
unzip phpMyAdmin-4.0.10.20-all-languages.zip
cp -r phpMyAdmin-4.0.10.20-all-languages /var/www/html/pma
cd /var/www/html/pma
cp config.sample.inc.php config.inc.php
vim config.inc.php
$cfg[\'Servers\'][$i][\'host\'] = \'mysqlserverip\';
测试 http://websrv/pma/
root,centos
4 A上部署wordpress
mysql -uroot -pcentos
> create database wpdb;
> grant all wpdb.* to wpuser@\'192.168.37.%\' identified by \'centos\';
> flush privileges;
tar xvf wordpress-4.8.1-zh_CN.tar.gz
cp -r wordpress /var/www/html/blog
cd /var/www/html/blog
cp wp-config-sample.php wp-config.php
vim wp-config.php
define(\'DB_NAME\', \'wpdb\');
define(\'DB_USER\', \'wpuser\');
define(\'DB_PASSWORD\', \'centos\');
define(\'DB_HOST\', \'192.168.37.107\');
测试http://websrv/blog
相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28