#LoadModule auth_basic_module modules/mod_auth_basic.so#LoadModule auth_digest_module modules/mod_auth_digest.so#LoadModule authn_file_module modules/mod_authn_file.so#LoadModule authn_alias_module modules/mod_authn_alias.so#LoadModule authn_anon_module modules/mod_authn_anon.so#LoadModule authn_dbm_module...
Thursday, August 29, 2013
Wednesday, August 28, 2013
Enable log slow query mysql
In order to enable slow query logs for MySQL on your system you would need to do the following.
1st Step is to edit your my.cnf file which is located in your /etc directory.
vi /etc/my.cnfPlain Text
Once you have your my.cnf file open, then add the following 4 lines then save and exit the file.
[mysqld]
log-slow-queries
log-slow-queries=/var/log/mysql/slow-queries.log
long_query_time=1Plain...
Copy a folder linux
I'm a new Linux user. How do I copy a directory or folder under Linux operating system using command line options and bash shell?You can use various command to copy a folder under Linux operating...
Thursday, August 22, 2013
Speed MySQL Query
Khi database của bạn lớn/nhiều hoặc lượng truy cập và liên tục , chắc chắn MySQL sẽ chiếm rất nhiều tài nguyên và khiến server load cao. Để hạn giảm load cho server , chúng ta có thể cache lại kết quả của các lần query vào bộ nhớ RAM. Tính năng này được MySQL hỗ trợ từ phiên bản 4.0.1 trở lên, để enable...
Tối Ưu Hóa Và Bảo Mật Apache
1. Edit một số directive default trong httpd.conf để giảm thiểu việc lộ lọt thông tin cấu hình của máy chủ hoặc các tác vụ ko cần thiết:TraceEnable Off : Disable TRACE request methodServerSignature Off : Disable việc thể hiện các thông tin về máy chủ (apache version, các mod đang sử dụng...
Giám sát hệ thống Linux với netstat
Netstat là một công cụ hữu ích của Linux cho phép bạn kiểm tra những dịch vào nào đang kết nối đến hệ thống của bạn. Nó rất hữu ích trong việc phân tích cái gì đang xảy ra trên hệ thống của bạn khi bạn cố gắng ngăn chặn một cuộc tấn công nhằm vào nó. Bạn có thể tìm thêm thông tin như có bao nhiêu kết...
What are the best linux permissions to use for website
Question:
I have a Linux web server running Apache2 that hosts several websites. Each website has its own folder in /var/www/.
/var/www/contoso.com/
/var/www/contoso.net/
/var/www/fabrikam.com/
The base directory /var/www/ is owned by root:root. Apache is running
as www-data:www-data. The Fabrikam...
Hướng dẫn Chmod an toàn cho website
DigiStar đề nghị CHMOD như sau để bảo vệ an toàn cho website tại host của DigiStar:
1) CHMOD thư mục Public_html thành 710 thay vì mặc định là 750 việc này sẽ giúp bạn bảo vệ được cấu trúc Website của mình
2) CHMOD File là 404 và nhớ...
.htaccess rewrite tips
.htaccess rewrite tips
#1
12-08-2013, 02:52 AM
Be aware that mod_rewrite (RewriteRule, RewriteBase, and RewriteCond) code is executed for each and every HTTP request that accesses a file in or below the directory where the code resides, so it’s always good to limit the code to certain circumstances...