动态网页基本框架
lamp
l-linux 平台
a-apache 服务应用程序
m-mariable 默认开源数据库
p-php 应用程序
第一步安装httpd服务
[root@redhat ~]# yum install httpd -y
修改配置文件
[root@redhat ~]# vim /etc/httpd/conf.d/vhost.conf
打开文件添加如下
<VirtualHost 192.168.12.130:80>
DocumentRoot /www/xiaopang/
ServerName 192.168.12.130
</VirtualHost>
<Directory /www>
AllowOverride none
Require all granted
</Directory>
新建目录
[root@redhat ~]# mkdir /www/xiaopang
重启服务
[root@redhat conf.d]# systemctl restart httpd
关闭防火墙
[root@redhat upload]# systemctl stop firewalld
临时关闭selinux
[root@redhat upload]# setenforce 0
第二步得话就是导入我们Windows下的论坛包
后期加载网页信息php需要在我们得目录下加载,所以我们将论坛包导入我们的/www/xiaopang 目录下
导包方式:
- 使用Xftb工具
- 使用Xshell工具,直接使用rz命令
如果虚拟机没有安装rz命令
使用 yum -y install lrzsz下载
第三步解压论坛包
[root@redhat xiaopang]# unzip Discuz_X3.4_SC_UTF8_0101.zip
第四步安装数据库
[root@redhat xiaopang]# yum install mariadb-server -y
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Repository epel is listed more than once in the configuration
Last metadata expiration check: 1:07:20 ago on Wed 18 Aug 2021 07:53:00 PM CST.
Dependencies resolved.
=======================================================================
Package Arch Version Repo Size
==========