LAMP下载搭建wordpress、ecshop、discuz

LAMP下搭建discuz

1.Apache的配置
yum  -y install  httpd          //安装apache  
systemctl  start  httpd         //
开启httpd服务

systemctl  enable  httpd      //设置httpd服务开机自启

 

2.php组件的配置
yum  -y  install  php     //安装php组件
yum  -y install   php-mysql     //安装php连接mysql的组件

 

3.数据库的配置
yum  -y  install   mariadb-server                  或 mysqld                        //安装mysql
systemctl  start  mariadb                         或mysqld                   / /开启数据库

systemctl  enable  mariadb                   或 mysqld      //并且设置为开机自启
mysql_secure_installation                        //初始化数据库,设置root密码

mysql -uroot -p     //登录数据库

>create  database  discuz;

>grant   all on  discuz.*  identified  by '123';

>exit

 

cd /var/www/html

wget http://download.comsenz.com/DiscuzX/3.3/Discuz_X3.3_SC_UTF8.zip 

yum -y install unzip

unzip Discuz_X3.3_SC_UTF8.zip

cd upload

mv * /var/www/html
chmod -R 777 /var/www/html/
systemctl restart httpd

在浏览器中输入ip,开始安装discuz.

 

LAMP下搭建ecshop

1.安装Apache

yum install -y httpd

 

2.安装Mysql57

wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

yum localinstall -y mysql57-community-release-el7-8.noarch.rpm

yum install -y mysql-community-server

systemctl start mysqld

grep 'temporary password' /var/log/mysqld.log     //查看mysql密码

mysql -uroot -p

set global validate_password_policy=0;     //修改密码规则(8位就行)

ALTER USER 'root'@'localhost' IDENTIFIED BY '12345678';

quit;

 

3.安装php70w

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm --nodeps --force

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum -y install php70w php70w-cli php70w-common php70w-devel php70w-embedded php70w-fpm php70w-gd php70w-mbstring php70w-mysqlnd php70w-opcache php70w-pdo php70w-xml

 

4.框架搭建

cd /var/www/html

yum -y install lrzsz

rz   ecshop.tar

tar -vxf ecshop.tar

将文件解压,appserver文件夹上传到/var/www 目录下

ecshop内文件上传到/var/www/html 目录下

 

cd source

mv appserver/ ../../

mv ecshop/ ../../

cd ../../ecshop/

mv ./* ../html/

rm -rf ecshop/

systemctl start httpd

chmod -R 777 /var/www

浏览器访问ip

 

LAMP下搭建wordpress

 

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum search php

yum -y install php71w

yum -y install php71w-common

yum -y install php71w-gd

yum -y install php71w-mysql

yum search mysql

yum install -y mariadb-server mariadb

yum install -y httpd

yum -y install php71w-imap php71w-xml php71w-ldap php71w-odbc php71w-xmlrpc

cd  /var/www/html

ll

yum -y install wget

wget https://wordpress.org/wordpress-5.2.1.zip

yum -y install unzip vim

ll

unzip wordpress-5.2.1.zip

ll

systemctl start mariadb

mysql_secure_installation

Set root password? [Y/n] y

New password:

Re-enter new password:

Remove anonymous users? [Y/n] y

Disallow root login remotely? [Y/n] n

Remove test database and access to it? [Y/n] y

Reload privilege tables now? [Y/n] y

 

mysql -uroot -p

MariaDB [(none)]>  create database wordpress;

MariaDB [(none)]> exit

LAMP下载搭建wordpress、ecshop、discuz_第1张图片

 

cd wordpress

 cp wp-config-sample.php wp-config.php

 ll

 vim wp-config.php

/** The name of the database for WordPress */

define( 'DB_NAME', 'wordpress' );

/** MySQL database username */

define( 'DB_USER', 'root' );

/** MySQL database password */

define( 'DB_PASSWORD', '123456' );

LAMP下载搭建wordpress、ecshop、discuz_第2张图片

mv ./* /var/www/html

chmod -R 777 /var/www/html/

cd

systemctl restart httpd mariadb

LAMP下载搭建wordpress、ecshop、discuz_第3张图片

LAMP下载搭建wordpress、ecshop、discuz_第4张图片

LAMP下载搭建wordpress、ecshop、discuz_第5张图片

LAMP下载搭建wordpress、ecshop、discuz_第6张图片

你可能感兴趣的:(LAMP下载搭建wordpress、ecshop、discuz)