Portfolio
mysql

Hướng dẫn tạo và kích hoạt Swap

March 20, 2018Category : IT & Network

Swap là khái niệm bộ nhớ ảo được sử dụng trên hệ điều hành Linux. Khi VPS/Server hoạt động, nếu hết RAM hệ thống sẽ tự động sử dụng một phần ổ cứng để làm bộ nhớ cho các ứng dụng hoạt động. Với những server không có swap, khi hết RAM hệ thống thường tự..

Read more
02.

LogRotate – Công cụ quản lý Log files quan trọng cần phải biết

March 20, 2018Category : IT & Network

LOGROTATE là một tiện ích tuyệt vời trên Linux giúp đơn giản hóa việc quản lý log files trên hệ thống, bao gồm xoay vòng file log, di chuyển, nén, gửi tự động… Rotate (xoay vòng) ở đây có thể hiểu là tiến trình xử lý file log cũ theo quy định trước đó (xóa/nén/move) đồng..

Read more
03.

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
05.

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
06.

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
07.

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
08.

[VPS] Netdata – Công cụ theo dõi hệ thống Real-time

September 28, 2016Category : IT & Network

Bạn có thể sử dụng tool này trên server để theo dõi gần như toàn bộ tình trạng hệ thống: Total and Per Core CPU usage, interrupts, softirqs and frequency. Total Memory, RAM, Swap and Kernel usage. Disk I/O (per disk: bandwidth, operations, backlog, utilization, etc). Monitors Network interfaces including: bandwidth, packets, errors, drops, etc)…

Read more
09.

[VPS] Rclone – Backup toàn bộ VPS lên Google Drive – Script sao lưu backup vps

September 28, 2016Category : IT & Network

Rclone là một công cụ đồng bộ hóa dữ liệu tương tự Rsync nhưng lại được tập trung phát triển chức năng kết nối với các dịch vụ lưu trữ đám mây. Ưu điểm của việc sử dụng dịch vụ lưu trữ đám mây đó là tốc độ cao (do có server được đặt trên khắp thế..

Read more
010.

PHP7 mysql lib to mysqli convert

July 2, 2016Category : Code/Web

Đây là thư viện để các bạn không phải sửa từng chút một trong code nữa thêm include hoặc require trong config.php là được <?php namespace { if (!function_exists(‘\mysql_connect’)) { define (‘MYSQL_ASSOC’, 1); define (‘MYSQL_NUM’, 2); define (‘MYSQL_BOTH’, 3); define (‘MYSQL_CLIENT_COMPRESS’, 32); define (‘MYSQL_CLIENT_SSL’, 2048); define (‘MYSQL_CLIENT_INTERACTIVE’, 1024); define (‘MYSQL_CLIENT_IGNORE_SPACE’, 256); function mysql_connect( $hostname =..

Read more
011.

Ajax Username Validation with PHP and MySQL

August 20, 2015Category : Code/Web

Tutorial for ajax username validation using jquery and php to check if the username is available in the mysql database. Requirements jQuery Library Database and table First create a database in mysql and create a table called members in it.

Read more
012.

Backup định kỳ Database và Web Source từ OpenShift lên Dropbox

October 5, 2014Category : Code/Web

Bài này sẽ hướng dẫn thiết lập sao lưu tự động mã nguồn và database trang web đăng ký tại Openshift lên Dropbox. Chú ý: ở đây tôi backup cả mã nguồn vì tất cả các file media (nhạc, ảnh…) tôi để trên máy chủ khác nên mã nguồn của tôi rất nhẹ, nếu các..

Read more
014.

Ajax Username Validation with PHP and MySQL

October 5, 2014Category : Code/Web

Database and table First create a database in mysql and create a table called members in it. CREATE DATABASE books; CREATE TABLE members (id INT(20) NOT NULL AUTO_INCREMENT, username VARCHAR(100)); Insert some dummy values. INSERT INTO members (username) VALUES(“anand.roshan”); …

Read more
015.

[Magento] Optimize magento database by Cleaning log

January 3, 2014Category : Code/Web

Optimize magento database Log Cleaning Magento maintains several tables for logging. These tables log things such as customer accesses and which products have been compared. Magento has a mechanism for cleaning these logs regularly, but unfortunately this feature is disabled by default and most customers do not turn it on. There are three ways to..

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