<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.daihockhonggiay.com/blogs/tag/nginx-php-mysql-phpmyadmin/feed" rel="self" type="application/rss+xml"/><title>Đại học Không Giấy - Blog #NGINX-PHP-MySQL-PHPMyadmin</title><description>Đại học Không Giấy - Blog #NGINX-PHP-MySQL-PHPMyadmin</description><link>https://www.daihockhonggiay.com/blogs/tag/nginx-php-mysql-phpmyadmin</link><lastBuildDate>Wed, 10 Sep 2025 18:49:38 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[Cài đặt và cấu hình NGINX-PHP-MySQL-PHPMyadmin]]></title><link>https://www.daihockhonggiay.com/blogs/post/cai-dat-va-cau-hinh-nginx-php-mysql-phpmyadmin</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/files/trunganh/26.jpg"/>Bài viết này sẽ hướng dẫn các bạn cài đặt và cấu hình NGINX-PHP-MySQL-PHPMyadmin]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_uwK1IAcXRJiekPwO0XAp3w" data-element-type="section" class="zpsection "><style type="text/css"> [data-element-id="elm_uwK1IAcXRJiekPwO0XAp3w"].zpsection{ border-style:none; } </style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_hIGw2pZyTAqLQWHTKvyNzg" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"> [data-element-id="elm_hIGw2pZyTAqLQWHTKvyNzg"].zprow{ border-style:none; } </style><div data-element-id="elm_qVDIbUbvTyyhmO13j_uEXA" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"> [data-element-id="elm_qVDIbUbvTyyhmO13j_uEXA"].zpelem-col{ border-style:none; } </style><div data-element-id="elm_ymTCs31uor4jRSTbn-gTvg" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_ymTCs31uor4jRSTbn-gTvg"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_ymTCs31uor4jRSTbn-gTvg"].zpelem-text :is(h1,h2,h3,h4,h5,h6){ text-transform:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p><span style="font-size:14px;font-weight:bold;">1. Giới thiệu về NginX</span></p><p><span style="font-size:14px;">Nginx là một máy chủ sử dụng phổ biến giao thức HTTP, HTTPS, SMTP, POP3 và IMAP , cũng như dùng làm cân bằng tải (load balancer), HTTP cache và máy chủ web (web server). Nginx tập trung vào việc phục vụ số lượng kết nối đồng thời lớn (high concurrency), hiệu suất cao và sử dụng bộ nhớ thấp. Nginx được biết đến bởi sự ổn định cao, nhiều tính năng, cấu hình đơn giản và tiết kiệm tài nguyên.</span></p><p><span style="font-size:14px;font-weight:bold;">2. Các bước triển khai</span></p><p><b><span style="font-size:14px;">B1: </span></b><span style="font-size:14px;">Sửa Hosts file và Hostname của máy cài Nginx</span></p><p><span style="font-size:14px;">&nbsp;&nbsp;&nbsp;&nbsp;#vi /etc/hosts&nbsp;</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;">9.9.9.10&nbsp; web.viettel.com.vn&nbsp; web</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;">#vi /etc/hostname</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;">web</span></p><p><b><span style="font-size:14px;">B2. </span></b><span style="font-size:14px;">Tạo file &quot;nginx.repo&quot; (phải cài từ Internet vì trong đĩa không có Nginx)</span></p><p><span>&nbsp;&nbsp;&nbsp;&nbsp;# vi /etc/yum.repos.d/nginx.repo</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;Viết nội dung cho file &quot;nginx.repo&quot;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;[nginx]</p><p>&nbsp;&nbsp;&nbsp;&nbsp;name=nginx repo</p><p>&nbsp;&nbsp;&nbsp;&nbsp;baseurl=http://nginx.org/packages/centos/$releasever/$basearch/</p><p>&nbsp;&nbsp;&nbsp;&nbsp;gpgcheck=0</p><p>&nbsp;&nbsp;&nbsp;&nbsp;enabled=1</p><p><b><span style="font-size:14px;">B3</span></b><span style="font-size:14px;">: Cài đặt Nginx, PHP và các gói bổ trợ</span></p><p>&nbsp; &nbsp;&nbsp;<span># yum install nginx -y *</span></p><p>&nbsp; &nbsp;&nbsp;<span># yum install php * -y</span></p><p><b><span style="font-size:14px;">B4:</span></b><span style="font-size:14px;"> Cài đặt các gói bổ sung cho PHP-MYSQL</span></p><p><span style="font-size:14px;">&nbsp; &nbsp;&nbsp;# yum install php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc * -y<b>&nbsp;</b></span></p><p><b><span style="font-size:14px;">B5:</span></b><span style="font-size:14px;"> Cài đặt gói PHP-FPM hỗ trợ cho NginX</span></p><p><span style="font-size:14px;">&nbsp; &nbsp;&nbsp;# yum install php-fpm * -y</span></p><p><b><span style="font-size:14px;">B6: </span></b><span style="font-size:14px;">Vô hiệu hóa Apache (httpd) và kích hoạt nginx, php-fpm</span></p><p>&nbsp; &nbsp;&nbsp;<span style="font-size:14px;">systemctl stop httpd</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;"><span>systemctl disable httpd</span></span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;"><span>systemctl start nginx</span></span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;"><span>systemctl enable nginx</span></span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;"><span>systemctl start php-fpm</span></span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;"><span>systemctl enable php-fpm</span></span></p><p><b><span style="font-size:14px;">B7:</span></b><span style="font-size:14px;"> Kiểm tra phiên bản của nginx và php-fpm</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;nginx -v</p><p>&nbsp;&nbsp;&nbsp;&nbsp;php-fpm -v</p><p><b><span style="font-size:14px;">B8</span></b><span style="font-size:14px;">: Mở Port 80 cho Web Server</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;">systemctl start firewalld</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;">firewall-cmd --permanent --zone=public --add-port=80/tcp</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;">firewall-cmd --reload</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;">firewall-cmd --list-all</span></p><p><b><span style="font-size:14px;">B9:</span></b><span style="font-size:14px;"> Mở File default.conf và xóa sạch rồi copy &nbsp;nội dung như sau:&nbsp;</span></p><p><span style="font-size:14px;">&nbsp; &nbsp;&nbsp;# vi /etc/nginx/conf.d/default.conf</span></p><div style="margin-left:16.5pt;margin-right:16.5pt;"><pre><span style="font-size:14px;font-family:Verdana;">&nbsp;server {</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; listen&nbsp; 80;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; server_name&nbsp; web.viettel.com.vn;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #charset koi8-r;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #access_log&nbsp; /var/log/nginx/log/host.access.log&nbsp; main;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; location / {</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; root&nbsp; /usr/share/nginx/html;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; index&nbsp; index.html index.htm index.php;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; }</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #error_page&nbsp; 404&nbsp; /404.html;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; # redirect server error pages to the static page /50x.html</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; error_page&nbsp; 500 502 503 504&nbsp; /50x.html;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; location = /50x.html {</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; root&nbsp; /usr/share/nginx/html;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; }</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; # proxy the PHP scripts to Apache listening on 127.0.0.1:80</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #location ~ \.php$ {</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #&nbsp; proxy_pass&nbsp; http://127.0.0.1;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #}</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; location ~ \.php$ {</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; root&nbsp; &nbsp;/usr/share/nginx/html;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; fastcgi_pass&nbsp; unix:/var/run/php5-fpm.sock; #(<span style="font-weight:bold;">không copy đoạn chú thích này</span>: kết nối giữa Nginx và PHP theo Socket sẽ tăng tính ổn định và nhanh hơn)</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; fastcgi_index&nbsp; index.php;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; fastcgi_param&nbsp; SCRIPT_FILENAME&nbsp; $document_root$fastcgi_script_name;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; include&nbsp; fastcgi_params;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; }</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; # deny access to .htaccess files, if Apache's document root</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; # concurs with nginx's one</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #location ~ /\.ht {</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #&nbsp; deny&nbsp; all;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; #}</span></pre><pre><span style="font-size:14px;font-family:Verdana;">}</span></pre></div><div style="margin-left:16.5pt;margin-right:8.25pt;"><pre><span style="font-size:14px;">&nbsp;</span></pre></div><p><b><span style="font-size:14px;">B10: </span></b><span style="font-size:14px;">Mở File nginx.conf chỉnh sửa thêm một số nội dung nếu cần</span></p><p><span style="font-size:14px;">&nbsp;&nbsp;&nbsp;&nbsp;#<b>vi /etc/nginx/nginx.conf</b></span></p><p><b><span style="font-size:14px;">&nbsp;</span></b>&nbsp; &nbsp; user &nbsp;nginx; &lt;= Gán quyền cho user nginx</p><div><pre><span style="font-size:14px;font-family:Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;worker_processes &nbsp;1; &nbsp;&lt;= Cần chỉnh lại worker_processes bằng với số lượng CPU core bạn được sử dụng​</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;error_log &nbsp;/var/log/nginx/error.log warn; &nbsp;&lt;= Cấu hình đường dẫn file error_log</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;pid &nbsp; &nbsp; &nbsp; &nbsp;/var/run/nginx.pid;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;events {</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; worker_connections &nbsp;1024; &nbsp; &lt;= số kết nối tối đa tai 1 thời điểm; mặc định là 1024; trường hợp bạn muốn nâng cao hơn có thể tùy chỉnh nhưng không nên cao hơn quá 2048.</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;}</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;http {</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; include &nbsp; &nbsp; &nbsp; /etc/nginx/mime.types;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; default_type &nbsp;application/octet-stream;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; log_format &nbsp;main &nbsp;'$remote_addr - $remote_user [$time_local] &quot;$request&quot; '</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; &nbsp; &nbsp;  '$status $body_bytes_sent &quot;$http_referer&quot; '</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; &nbsp; &nbsp;  '&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;';</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; access_log &nbsp;/var/log/nginx/access.log &nbsp;main; &lt;= Cấu hình log access</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; sendfile &nbsp; &nbsp; &nbsp; &nbsp;on;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; server_tokens off; &nbsp; &lt;= Cấu hình ẩn phiên bản nginx đang sử dụng</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; #tcp_nopush &nbsp; &nbsp; on;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; keepalive_timeout &nbsp;65;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; #gzip &nbsp;on;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; fastcgi_buffers &nbsp; &nbsp; &nbsp; &nbsp; 8 16k;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; fastcgi_buffer_size &nbsp; &nbsp; 32k;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; fastcgi_connect_timeout 300;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; fastcgi_send_timeout &nbsp; &nbsp;300;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; fastcgi_read_timeout &nbsp; &nbsp;300;</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp; &nbsp; include /etc/nginx/conf.d/*.conf; &lt;= Đường dẫn gán file cấu hình virtual hosts cho từng site</span></pre><pre><span style="font-size:14px;font-family:Verdana;">&nbsp;&nbsp;&nbsp;&nbsp;}</span></pre></div><p><b><span style="font-size:14px;">B11:</span></b><span style="font-size:14px;"> Thiết lập lại User và Group chạy PHP</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;vi /etc/php-fpm.d/www.conf</p><p>&nbsp;&nbsp;&nbsp;&nbsp;Gõ lệnh :set nu tìm đến dòng 12, 31, 32, 39,40 bỏ dấu ; và sửa lại thành</p><p>&nbsp;&nbsp;&nbsp;&nbsp;listen = /var/run/php5-fpm.sock</p><p>&nbsp;&nbsp;&nbsp;&nbsp;listen.owner = nginx</p><p>&nbsp;&nbsp;&nbsp;&nbsp;listen.group = nginx</p><p>&nbsp;&nbsp;&nbsp;&nbsp;user = nginx</p><p>&nbsp;&nbsp;&nbsp;&nbsp;group = nginx</p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:27pt;">Lưu lại thiết lập và khởi động lại PHP-FPM</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;systemctl restart php-fpm</p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:27pt;">systemctl restart nginx</span></p><p><b><span style="font-size:14px;">B12:</span></b><span style="font-size:14px;"> Cài đặt MYSQL Server</span></p><p><span style="font-size:14px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#<b></b>&nbsp;yum install -y mariadb mariadb-server</span></p><p><b><span style="font-size:14px;">B13:</span></b><span style="font-size:14px;"> Start &nbsp;mysql server lên khởi động cùng mỗi khi khởi động lại Server</span></p><p><span style="font-size:14px;">&nbsp;&nbsp;&nbsp;&nbsp;systemctl start mariadb.service</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:36pt;">systemctl enable mariadb.service</span></p><p><b><span style="font-size:14px;">B14:</span></b><span style="font-size:14px;"> đổi lại mật khẩu của tài khoản Root quản trị Mysql server</span></p><p><span style="font-size:14px;">&nbsp; &nbsp;&nbsp;#<b></b>/usr/bin/mysqladmin -u&nbsp; root&nbsp; password 123456a@</span></p><p><b><span style="font-size:14px;">B15: </span></b><span style="font-size:14px;">Cài đặt PHPMYADMIN cho NGINX</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;+Download phpmyadmin về máy</p><p>&nbsp;&nbsp;&nbsp;&nbsp;+Sử dụng WinsCP để transfer thư mục phpmyadmin vào máy chủ nginx theo đường dẫn /usr/share/nginx/html</p><p>&nbsp;&nbsp;&nbsp;&nbsp;- Giải nén gói cài đặt phpMyAdmin-3.5.1-all-languages.tar.gz</p><p>&nbsp; &nbsp;&nbsp;[root@centos7 ~]# cd /usr/share/nginx/html</p><p>&nbsp; &nbsp;&nbsp;[root@centos7 html]#tar -zxvf phpMyAdmin-3.5.1-all-languages.tar.gz</p><p>&nbsp;&nbsp;&nbsp;&nbsp;-Đổi tên thư mục sau khi giải nén</p><p>&nbsp; &nbsp;&nbsp;[root@centos7 html]# mv phpMyAdmin-3.5.1-all-languages&nbsp; admin</p><p>&nbsp; &nbsp;&nbsp;+Tìm file php.ini (/etc/php.ini).</p><p>&nbsp; &nbsp;&nbsp;<span>[root@centos7 ~]# </span><span>vi /etc/php.ini</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;Tìm dòng 1357: session.save_path = &quot;/tmp&quot; bỏ dấu ; và đổi thành <code>session.save_path = &quot;/var/lib/php/session/&quot;&nbsp; (chú ý phải có dòng này)</code></p><p><span style="font-family:Verdana;"><code><span>B16: </span></code><code><span>Cấp quyền chủ sở hữu cho toàn bộ thư mục</span></code></span></p><p>&nbsp; &nbsp;&nbsp;<span style="font-family:Verdana;"><span style="font-size:14px;">[root@centos7 ~]# </span><code><span style="font-size:14px;">chown</span></code><span style="font-size:14px;"><code>-R nginx:nginx /var/lib/php/session/</code></span></span></p><p><span style="font-family:Verdana;"><code><span style="font-size:14px;">B17: </span></code><code><span style="font-size:14px;">Khởi động lại php-fpm, nginx</span></code></span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:27pt;">systemctl restart php-fpm</span></p><p>&nbsp; &nbsp;&nbsp;<span style="text-indent:27pt;">systemctl restart nginx</span></p><p><b><span style="font-size:14px;">B18:</span></b><span style="font-size:14px;"> truy cập vào <a href="http://9.9.9.9/admin/">http://9.9.9.9/admin/</a> để tạo Database tên là <b>anln</b> (IP của nginx).</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;+Đăng nhập vào với tài khoản đã tạo trong mysql (Username/Password: root/123456a@)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;+Tạo Database với tên <b>anln</b></p><p>&nbsp;&nbsp;&nbsp;&nbsp;+ Sử dụng WinsCP và upload Web site vào /home/nginx/bkap/public_html/</p><p><b><span style="font-size:14px;">B19:</span></b><span style="font-size:14px;"> Vào file Connec: /usr/share/nginx/html /Connect =&gt; sửa mật khẩu và tên cơ sở dữ liệu: $ketnoi = mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;123456a@&quot;) và mysql_select_db(&quot;anln&quot;, $ketnoi ) Chú ý trên Hosting phải sửa cả tên Root tương ứng với tài khoản.</span></p><p><b><span style="font-size:14px;">B20:</span></b><span style="font-size:14px;"> Sửa file functions: /usr/share/nginx/html/Website/Gio_hang/functions.php</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;require('/usr/share/nginx/html/Connect/Connect.php ');</p><p><b><span style="font-size:14px;">B21:</span></b><span style="font-size:14px;"> Kiểm tra</span></p><p><span style="font-size:14px;">Chú ý: nêu muốn đổi thư mục thì phải sửa đường dẫn và phải phân quyền cho thư mục</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;mkdir -p /nginx/log</p><p>&nbsp;&nbsp;&nbsp;&nbsp;touch /nginx/log/error.log</p><p>&nbsp;&nbsp;&nbsp;&nbsp;mkdir -p /nginx/html</p><p><span>&nbsp;&nbsp;&nbsp;&nbsp;chown -R nginx:nginx /nginx </span><span style="font-weight:bold;">&nbsp; </span><span>(Trao toàn bộ thư mục /home/nginx cho user và group NGINX)</span></p><p><span><br></span></p><p><span style="font-weight:bold;">3. Video hướng dẫn</span></p></div>
</div></div></div></div></div><div data-element-id="elm_gEF63JOkmQrtXoindQBZJw" data-element-type="section" class="zpsection zpdefault-section zpdefault-section-bg "><style type="text/css"> [data-element-id="elm_gEF63JOkmQrtXoindQBZJw"].zpsection{ border-style:none; } </style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_alpodljjI5ibMCdjoAV3ZQ" data-element-type="row" class="zprow zprow-container zpalign-items-flex-start zpjustify-content-flex-start zpdefault-section zpdefault-section-bg " data-equal-column=""><style type="text/css"> [data-element-id="elm_alpodljjI5ibMCdjoAV3ZQ"].zprow{ border-style:none; box-shadow:0px 0px 0px 0px #000000; } </style><div data-element-id="elm_T9fc810u7LoOAtKPrVYh7g" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- zpdefault-section zpdefault-section-bg "><style type="text/css"> [data-element-id="elm_T9fc810u7LoOAtKPrVYh7g"].zpelem-col{ border-style:none; box-shadow:0px 0px 0px 0px #000000; } </style><div data-element-id="elm_PrNZIuphZh25qQiDgIT4Zw" data-element-type="iframe" class="zpelement zpelem-iframe "><style type="text/css"> [data-element-id="elm_PrNZIuphZh25qQiDgIT4Zw"].zpelem-iframe{ border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } </style><div class="zpiframe-container zpiframe-align-center"><iframe class="zpiframe " src="https://www.youtube.com/embed/6hLvQjDywN0" width="560" height="315" align="center" allowfullscreen frameBorder="0"></iframe></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Fri, 03 May 2019 00:21:49 +0700</pubDate></item></channel></rss>