Get the App
SLTechnology News&Howtos  ›  Database  › 

Https station building experiment

Shulou Source: shulou.com Published: 2022-06-01 17:15:20 11月08日 Update

The ip of my linux host is 172.16.29.2 and the system is centos7.2. The operation content of using centos6 may be different, mainly because two, one is the database, the centos7 uses the database is mariadb,6 uses mysql;, the second is the httpd program is different, and the two versions vary greatly. Before writing this blog, I originally planned to write a script automation implementation, but in the middle of writing, I found that some of the contents that need to be changed need to use the network to transfer some files, and the versatility is relatively poor. I sorted out the script and organized the language to write this blog. There is a half-written script I also posted in the attachment of the article, if you are interested, you can have a look.

The reason for https is that https is becoming popular all over the station.

1 Environment ready setenforce 0 # turn off selinuxiptables-F # turn off firewall yum install mariadb-server httpd phpphp-mysql unzip php-mbstring mod_ssl-y

Install various components, which in order are database, Apache,php,php connection database component, linux tools to extract zip files, phpMyAdmin required components, encryption components

2 File preparation wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip# download wget https://files.phpmyadmin.net/phpMyAdmin/4.6.5.2/phpMyAdmin-4.6.5.2-all-languages.zip# download mkdir / www # create folder unzip phpMyAdmin-4.6.5.2-all-languages.zip-d / www # extract unzip Discuz_X3.2_SC_UTF8.zip- D/www/discuz/ # decompress chown-R apache:apache / www # change permissions

3 Database systemctl start mariadb.service # Open the database

The next step is to build the library with one click.

Mysql / etc/httpd/conf.d/vhost.conf

Tags: Data configuration database file certificate content component host website transfer two blog environment script preparation generation different location site-wide log Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi MariaDB Huawei Linux Microsoft