How to backup a copy of apache?
Fire the following command to take a backup of apache on your server: cp -a /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak Above is for Centos users For Ubuntu users …
Fire the following command to take a backup of apache on your server: cp -a /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak Above is for Centos users For Ubuntu users …
Following script to check the load on the server could be referred:- This script will create a file called chkload wherein all the details will …
Open following file in your favorite editor: CATALINA_HOME/conf/tomcat-users.xml or /usr/local/jakarta/jakarta-tomcat-4.1.31/cinf/tomcat-users.xml Append the following line at second last line: <user name=”Username” password=”secret” roles=”admin,manager”> Restart tomcat. You …
When a URL specifying only a directory is requested … eg.: https://www.domain.com/directory/ Initially, Apache looks for file names by default (in the order they appear): …
There are two different ways to enable this option: 1] First method is Via WHM control panel 2] Second method is Via SSH Root Login …
Execute the following command : cd /usr/local/directadmin/scripts ./getLicense.sh ClientDI LicenseID service directadmin restart In case, you get errors while extracting update.tar.gz file, execute the following …
The date, time, and timezone are important aspects of a Linux system that affect how it operates and interacts with other systems. There are different …
Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) Refer the below steps to solve this: a.Check the ownership of “/var/lib/mysql” and its files …
First login into the server as root. Go to the /usr/local/src/ folder and download the latest version of vsftpd. # cd /usr/local/src/ # wget ftp://vsftpd.beasts.org/users/cevans…d-2.0.5.tar.gz …
#!/bin/sh cd /root/ wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz tar -zxvf chkrootkit.tar.gz CHKDIR=`ls -1 |grep chkrootkit-` cd $CHKDIR/ make ./chkrootkit
Login to your server as root and at the root prompt fire the below command: root@xxx[~]vi /etc/cron.daily/chkrootkit.sh Insert the following to the new file: #!/bin/bash …