Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

TÀI LIỆU HỆ THỐNG EMAIL

MARKETING
Mụ c lụ c
I. Hệ thống Web-App................................................................................................................................1
1.1 Thư mục cài đặt & lưu trữ..............................................................................................................1
1.2 File cấu hình.....................................................................................................................................1
1.3 Các lệnh khi cài đặt.........................................................................................................................2

I. Hệ thống Web-App
- Server Web-App có IP 10.36.96.38, cài đặt Apache, PHP2, MariaDB & phần
mềm Interspire.
- Public port 80,443 ra Internet
1.1 Thư mục cài đặt & lưu trữ
- Thư mục lưu trữ source code
/var/ww/html/dbs

- Thư mục lưu trữ database


/var/lib/mysql/emk_dbs/

1.2 File cấu hình


- File cấu hình web
/etc/httpd/conf.d/emk-dbs.conf

- Log web theo cấu hình trong file emk-dbs.conf


- File cấu hình hạn chế IP truy cập
/var/www/html/dbs/admin/.htaccess
- File cấu hình MariaDB
/etc/my.cnf
/etc/my.cnf.d/

1.3 Các lệnh khi cài đặt


- Thực hiện lần lượt các lệnh sau
yum update –y
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum install httpd
yum --enablerepo=remi-php72 install php php-xml php-soap php-xmlrpc php-
mbstring php-json php-gd php-mcrypt php-mysql
yum install mariadb mariadb-server mariadb-client –y
systemctl start httpd
systemctl enable httpd
systemctl start mariadb
systemctl enable mariadb

- Nếu bước cài đặt php mà gặp lỗi thì chạy lệnh sau
yum clean all
yum remove epel-release
yum install epel-release

- Set password cho Mariadb


mysql_secure_installation

You might also like