Tag: directadmin

Limit MySQL usage for users

Script for limiting MySQL resources for every new MySQL user (it limits the number of queries, updates, and logins a MySQL user can perform). You can set any limits you want. Just copy-paste the following content to /usr/local/directadmin/scripts/custom/database_user_create_post.sh and /usr/local/directadmin/scripts/custom/database_create_post.sh: #!/bin/sh #This script sets the number of queries, updates, and […]

HOWTO: Add a ‘Change Password’ button to SquirrelMail.

Many users want a quick and easy way to change their Email password. This viagra for men< patch allows you to 100mg cialis< change the login form of SquirrelMail so a ‘Change http://viagrasildenafil-online.com/ Password‘ button appears. Example: http://img363.imageshack.us/img363/2343/webmail7ii.png [list=1][*]cd /var/www/html/squirrelmail/src[*]vi login.php[*]Look for the following Code: healthymaleviagra-formen.com< <center>’. viagra prank addSubmit(_(“Login”)) […]

Red Hat / CentOS Install nginx PHP5 FastCGI Webserver

How do I install and configure a ngnix FastCGI php5 HTTP / web server under Red Hat / RHEL / Fedora / CentOS Linux? Nginx (engine x) is an HTTP(S) server, reverse proxy and IMAP/POP3 proxy server written by Igor Sysoev. It is known for its high performance, stability, rich […]

Setting up mail.domain.com as default for new domains on directadmin.

1) You’ll need to setup the virtualhost for apache. This can be accomplished by adding a 2nd virtualhost along side the domains main one. cd /usr/local/directadmin/data/templates cp virtual_host.conf custom cd custom You’ll need to edit the newly copied virtual_host.conf (or virtual_host2.conf if you’re using apache 2) file and make the […]

Check file and directory permissions under present working directory

Below commands can be used to check file and diretcory permissions under the present working diretcory (pwd) * Check files with permission 755 root@master [~]# find $x -type f -perm 755 * Check files with permission 777 root@master [~]# find $x -type f -perm 777 * Check diretcory with permissions […]

HOW-TO: SFTP support in ProFTPD

DA comes with support for ProFTPD mod_tls however there are several problems with mod_tls. 1) It only encrypts the control channel of FTP, leaving the actual data transferred still in clear text. 2) That also causes problems with FTP traversal of firewalls since the firewall can’t see which ports are […]