Lamp architecture installation and production installation blog

LAMP architecture installation
1 My own production real environment
Centos 7 or higher system
execute the following command to install
2 #yum -y install httpd php php-mysql

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

#rpm -ivh mysql-community-release-el7-5.noarch.rpm

yum install mysql-community-server

3 Start each service
Systemctl start httpd
Systemctl start mysqld
4 Test whether the environment is normal
Cd /var/www/html
Vi index.php

<?php echo " Phpinfo Test.php"; phpinfo() ?>

5 Restart apache
Systemctl restart httpd and
visit the website http://www.jkkcss.cn/
Insert picture description here

Install forum

  1. Upload dz forum package
    html]# yum install lrzsz
    drag the php project to the release directory /var/www/html
    as follows:
    Insert picture description here

2 Unzip and install
unzip Discuz_X3.4_SC_UTF8.zip
3 Install in the browser
http://www.jkkcss.cn/upload/
Insert picture description here

For non-writable directories, permission is required
Chmod 777 -R *
Insert picture description here
Insert picture description here

Set the above database password
mysqladmin -uroot password "12345678" to
complete the following. My own website is deployed as follows:
http://www.jkkcss.cn/
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_39418469/article/details/107658660