Portfolio
Code/Web

WinNMP – Config

February 27, 2018Category : Code/Web IT & Network

How to send emails using PHP WinNMP has 2 options for processing emails sent by PHP’s mail() function: mSmtp and mailToDisk (default). To change the option, edit confphp.ini and modify sendmail_path: For Development use mailToDisk (the default): sendmail_path = ‘”C:/WinNMP/bin/php” -n -f “C:/WinNMP/include/tools/mailtodisk.php”‘ Emails will be saved to logmail-XX.txt For Production use mSmtp: sendmail_path = ‘”C:/WinNMP/bin/msmtp/msmtp.exe” -C “C:/WinNMP/conf/msmtp.ini” -t’ You also need to edit confmsmtp.ini in order to configure SMTP server options   How..

Read more
02.

Cấu hình proxy nodejs trên nginx

December 18, 2017Category : Code/Web

Add nginx conf location /cors4all/ { client_max_body_size 10m; client_body_buffer_size 128k; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; proxy_temp_file_write_size 256k; proxy_connect_timeout 30s; proxy_pass http://127.0.0.1:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection “upgrade”; proxy_http_version 1.1; proxy_cache_bypass $http_upgrade; }

Read more
03.

Install Node.js – CentOS

December 18, 2017Category : Code/Web

Install the Distro-Stable Version of Node.js with YUM In order to download this version, we will use the yum package manager. Update your yum packages: sudo yum update Install Node.js: sudo yum install nodejs Verify the current version of Node.js: node –version Install npm (Node Package Manager): sudo yum install npm Install Node.js using NVM Instead of using yum, you can install..

Read more
04.

Manage and daemonize applications (run them as a service). (Nodejs)

December 18, 2017Category : Code/Web

Install PM2 Now we will install PM2, which is a process manager for Node.js applications. PM2 provides an easy way to manage and daemonize applications (run them as a service). We will use Node Packaged Modules (NPM), which is basically a package manager for Node modules that installs with Node.js, to install PM2 on our app server…

Read more
05.

Code button contact

November 23, 2017Category : Code/Web

CSS .ppocta-ft-fix { display: inline-grid; position: fixed; bottom: 40%; right: 30px; min-width: 36px; text-align: center; z-index: 99999; } @media (max-width: 768px) { .ppocta-ft-fix { bottom; 5%; } } #messengerButton { display: inline-block; position: relative; width: 36px; height: 36px; line-height: 36px; border-radius: 100%; box-shadow: 0px 0px 10px -2px rgba(0,0,0,0.7); background: #1CB2ED url(http://kizashop.com/wp-content/themes/shopera-child/images/m-fb.png) center center no-repeat; margin-bottom:..

Read more
06.

[WordPress] Hướng dẫn cài đặt và sử dụng plugin WordFence

October 9, 2017Category : Code/Web

WordFence là gì Wordfence là một plugin bảo mật WordFence. Và nó là plugin rất phổ biến. 2 triệu lượt cài đặt đã nói lên điều đó. Vậy plugin này có tính năng gì hay ho? Như là plugin bảo mật, đương nhiên nó sẽ giúp bảo vệ website của bạn trước các mối đe..

Read more
07.

[WordPress] Tạo thông báo đẩy trong website WordPress sử dụng SendPulse

October 9, 2017Category : Code/Web

SendPulse là gì? SendPulse là dịch vụ giúp bạn dễ dàng gửi email, sms, thông báo đẩy. Nhờ vậy bạn có thể phát triển doanh nghiệp và tăng nhận diện thương hiệu. SendPulse là cái tên còn tương đối mới mẽ trong lĩnh vực email marketing, thông báo đẩy, SMTP vân vân. Nhưng các sản phẩm..

Read more
08.

Cài đặt và cấu hình Let’s Encrypt trong OpenLiteSpeed

October 9, 2017Category : Code/Web IT & Network

Cài đặt Certbot Cách dễ dàng để cài đặt chứng chỉ Let’s Encrypt trên VPS là sử dụng Certbot Client. Trên CentOS 7, Certbot có sẵn ở EPEL Repository. Bạn chỉ cần enable lên với câu lệnh sau: 1 rpm –ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Ubuntu bạn cần cấu hình Certbot PPA với câu lệnh sau: 1 2 3..

Read more
09.

Cài đặt WordPress trong web server OpenLiteSpeed

October 9, 2017Category : Code/Web IT & Network

Bước 1: Tạo cơ sở dữ liệu Đăng nhập Maria DB với user root: 1 mysql –u root –p Tạo một cơ sở dữ liệu wordpress: 1 CREATE DATABASE wordpress; Tạo user: 1 CREATE USER ‘wpuser’@‘localhost’ IDENTIFIED BY ‘wppassword’; Cấp quyền cho user: 1 2 3 GRANT ALL PRIVILEGES ON wordpress.* TO ‘wpuser’@‘localhost’ IDENTIFIED BY..

Read more
010.

Cách thêm website trong web server OpenLiteSpeed

October 9, 2017Category : Code/Web IT & Network

Cách thêm Virtual Host trong OpenLiteSpeed ​Truy cập WebAdmin: http://your_ip_adress:7080 ​Đi tới Virtual Hosts -> Add.  Nhập vào thông tin chi tiết như bên dưới: Variables Value Virtual Host Name ($VH_NAME) elegantjava.info Virtual Host Root ($VH_ROOT) $SERVER_ROOT/elegantjava.info/ Config File $SERVER_ROOT/conf/vhosts/$VH_NAME/elegantjava.info.conf Follow Symbolic Link Yes Enable Scripts/ExtApps Yes Restrained Yes ExtApp Set UID Mode Server UID Trong phần..

Read more
011.

Cách tìm IP thật của server đằng sau CloudFlare hay các dịch vụ CDN

October 9, 2017Category : Bug & Security Code/Web

Guide này nhằm giúp các System Admin nhận ra được rằng mình “misconfiguration” ở đâu khiến hệ thống bị lộ real IP khiến các kẻ tấn công DDoS dễ dàng tấn công hệ thống mà bỏ qua các lớp CDN bảo vệ. Đầu tiên ta cần phải biết danh sách IP của cloudflare (CloudFlare IP)..

Read more
012.

Phân tích hệ thống tiki.vn 2014

September 21, 2017Category : Code/Web

Tổng quan hệ thống Mọi lời nói không thể thay thế bằng hình ảnh rõ ràng được :) Tiki sử dụng Magento version 1.x Source code Magento sẽ được deploy lên 4 server web app, server Media và request sẽ được load balance qua 4 server này Database sử dụng là Percona MySQL được cấu..

Read more
013.

EasyEngine & WordPress

September 18, 2017Category : Code/Web IT & Network

EasyEngine là gì? EasyEngine là một *UNIX script dành cho hệ điều hành Ubuntu/Debian giúp bạn tự động cài đặt một webserver sử dụng NGINX và PHP-FPM hoàn chỉnh phục vụ riêng cho WordPress. Điều này có nghĩa là nó sẽ tự tối ưu hóa cho NGINX để làm việc với WordPress tốt nhất. Bởi vì chúng ta..

Read more
014.

[wordpress] Hướng dẫn cài đặt wp MULTISITE

September 18, 2017Category : Code/Web

ỨNG DỤNG CỦA WORDPRESS MULTISITE Hầu hết nếu chúng ta có nhu cầu tạo ra một mạng lưới nhiều website liên kết với nhau trên cùng một máy chủ thì có thể sử dụng WordPress Multisite. Chúng ta có thể sử dụng WordPress Multisite để tạo nhiều trang con trong một mạng lưới như vậy,..

Read more
015.

[WordPress] RICH SNIPPETS

August 23, 2017Category : Code/Web

Nói theo cách dễ hiểu, Rich Snippets là đoạn thông tin đặc biệt dùng để hiển thị các thông tin thêm có trong những bài viết đặc biệt (bài đánh giá, sản phẩm, ứng dụng, công thức nấu ăn, địa chỉ công ty..v.v..) trên các máy tìm kiếm (Google, Yahoo, Bing) nhằm cung cấp thêm những thông..

Read more
016.
© Oliver / All rights reserved.
To top