Category Archives: Panels

Connect your database to your website

Most scripts need to know four things about your database: the database name, database username, password, and hostname. The database name always has the following form: ControlPanelUsername_DatabaseName, where ControlPanelUsername is the username you use to access the control panel. The DatabaseName is the name you have given to the database from the MySQL database menu. […]

RainLoop webmail for DirectAdmin

Installation SSH to your DirectAdmin server (with root). Download RainLoop. cd /var/www/html wget http://repository.rainloop.net/v2/webmail/rainloop-community-latest.zip Extract downlaoded file. unzip rainloop-community-latest.zip -d rainloop Set permissions. cd /var/www/html/rainloop find . -type d -exec chmod 755 {} ; find . -type f -exec chmod 644 {} ; chown -R webapps:webapps . Configuration Update DirectAdmin to use RainLoop. nano /usr/local/directadmin/conf/directadmin.conf […]

Update DirectAdmin server

To update DirectAdmin, you need to have Root (sudo) permissions. First, update the system itself: For Debian/Ubuntu: apt-get update && apt-get dist-upgrade For RedHat/CentOS: yum update Update the custombuild software list: DirectAdmin comes with custombuild which is the update manager in this case. First we want to navigate to the custombuild directory: cd /usr/local/directadmin/custombuild/ We […]

Force NGNIX www to non-www or redirect https:// traffic

Here is an example how to force no-www domain on Servepilot VPS servers with Nginx. Create /etc/nginx-sp/vhosts.d/servermeister.d/0www_redirect.conf with code that will force all www pages 301 redirect to a naked no-www domain. Code: if ($host ~* www.servermeister.com$) { return 301 http://www.servermeister.nl$request_uri; } restart nginx with the command Code: sudo service nginx-sp restart If you would […]