Posts

How to install and configure ApacheTomcat and Integrate with apache2 on Linux (Ubuntu 14.04)

Installing Tomcat 7 and Apache2 with mod_jk on Ubuntu 14.04 and connect our tomcat with apache....... ------------------------------------------------------------------------- Step1 -------------------------------------------------------------------------  Installing Apache #sudo apt-get install apache2 Test the installation from the browser using http://localhost/ ------------------------------------------------------------------------- Step2 ------------------------------------------------------------------------- Put your tomcat setup in /opt/ Create a test application for tomcat. #cd /opt/tomcat/tomcat1/webapps #sudo mkdir tomcat now past here all your ROOT files. ----------------------------------------------------------------------- Step3 ------------------------------------------------------------------------- Test the installation from the browser using http://localhost:8080/tomcat --------------------------------------------------------------

cPanel/WHM Locations of Logs

cPanel Logs Description Location Access logs and user actions /usr/local/cpanel/logs/access_log Account transfers and misc. logs /var/cpanel/logs Auditing log (account creations, deletions, etc) /var/cpanel/accounting.log Backup logs /usr/local/cpanel/logs/cpbackup Brute force protection (cphulkd) log /usr/local/cpanel/logs/cphulkd.log Cpanel dnsadmin dns clustering daemon /usr/local/cpanel/logs/dnsadmin_log Cpanel taskqueue processing daemon /usr/local/cpanel/logs/queueprocd.log DBmapping /usr/local/cpanel/logs/setupdbmap_log EasyApache build logs /usr/local/cpanel/logs/easy/apache/ Error log /usr/local/cpanel/logs/error_log Installation log /var/log/cpanel License updates and errors /usr/local/cpanel/logs/license_log Locale database modifications /usr/local/cpanel/logs/build_locale_database_log Login errors (CPSRVD) /usr/local/cpanel/logs/login_log Horde /var/cpanel/horde/log/ RoundCube /var/cpanel/roundcube/log/ SquirrelMail /var/cpanel/squirrelmail/ Panic l

Backup Full Reseller account WHM/cPanel

Question: (Copied From Cpanel forums ) I would like to backup only one #Reseller completely with all his accounts. Answered:  There is no way to do it via WHM unless you plan to update the list of users every-time they add a new one, but you can do so using SSH like so: Code:  for i in $(whmapi1 listaccts searchtype=owner search=RESELLERUSERNAME want=user |grep user: | awk '{print $2}') ; do /scripts/pkgacct $i ; done You would just change RESELLERUSERNAME with the actual resellers username, any accounts owned by that reseller will get a full cPanel account backup created in /home/ You can also changes the location to where the backups get stored like so: Code: for i in $(whmapi1 listaccts searchtype=owner search=RESELLERUSERNAME want=user |grep user: | awk '{print $2}') ; do /scripts/pkgacct $i /backup ; done If we want to take it one step further then I would actually create a folder with a date first otherwise the old backups will ge

How to secondary mx or secondary mailserver holds mailqueue if primary server is down.

How to backup mx or secondary mailserver holds mailqueue if primary server is down. Domain >arvind-madhukar.info Server1>linux1.arvind-madhukar.info (1.1.1.1) Server2>linux2.arvind-madhukar.info (2.2.2.2) On Server2>linux2.arvind-madhukar.info (2.2.2.2) ------------------------------------- Add/edit domain(arvind-madhukar.info) in /etc/secondarymx Add/edit domain(arvind-madhukar.info) in /etc/remotedomains Note: Allow (1.1.1.1) in your trusted host and Graylisting (Mail) Server1>linux1.arvind-madhukar.info (1.1.1.1) ------------------------------------- Modify dns zone file as below on primary server: arvind-madhukar.info 14400 IN mx 0 arvind-madhukar.info mx2      14400 IN A    2.2.2.2 arvind-madhukar.info 14400 IN mx 2 mx2.arvind-madhukar.info

How To Set Up Multiple Website on Ubuntu 14.04 LTS with Apache2

Image
Step One — Create the Directory Structure The first step that we are going to take is to make a directory structure that will hold the site data that we will be serving to visitors. Our  document root  (the top-level directory that Apache looks at to find content to serve) will be set to individual directories under the  /var/www  directory. We will create a directory here for both of the virtual hosts we plan on making. Within each of  these  directories, we will create a  public_html  folder that will hold our actual files. This gives us some flexibility in our hosting. For instance, for our sites, we're going to make our directories like this: sudo mkdir -p /var/www/ example.com /public_html sudo mkdir -p /var/www/ test.com /public_html The portions in red represent the domain names that we are wanting to serve from our VPS. Step Two — Grant Permissions Now we have the directory structure for our files, but they are owned by our root user. If we want our regul