Create User Quota on Centos 7 In Centos 7 user group quota not enabled by default we have to enabled them manually. To check whether quota is enabled or not, we can use below command: # mount | grep ‘ / ‘ The command …

             Apache Tomcat manager Apps Forbidden error When we install Apache tomcat on the server and try to access manager gui apps . It doesn’t allow access and gives forbidden error. It indicate that either you typed 3+ incorrect credentials (try another web-browser) or you’ve …

                                  Configure mod_security for Apache on Centos 7 ModSecurity and mod_evasive are free Apache modules which protect your web server from various brute force or (D)DoS attacks, including SQL injection, cross-site scripting, session hijacking, and many others types of attacks..   Mod_security is an apache module …

#!/bin/bash while : do clear echo “———————————————-“ echo ” * * * * * * * Main Menu * * * * * * * * * * “ echo “———————————————-“ echo “[1] Change password” echo “[2] See disk space” echo “[3] Login to other …

Configure/setup LVM on Centos/redhat 7   First create a partition:   To create partition free space must be available on the server.   Here we have created 2 GB primary partition. Check lvm package installed in the system.   # rpm -qa|grep lvm2 Sometimes in …

PHP Script for SVN update With below PHP script you can update SVN from browser. <?php echo shell_exec(‘/usr/bin/svn cleanup /var/www/html/sunil –non-interactive –username sunil –password sun123 –config-dir /home/sunil/.subversion’);  echo shell_exec(‘/usr/bin/svn update 2>&1 /var/www/html/sunil –non-interactive –username sunil –password sun123 –config-dir /home/sunil/.subversion’); ?>   Replace web directory path …

Set Mysql root password to Null   For empty Mysql password set mysql password to null.   #use mysql; #update user set password=null where User=’root’; #flush privileges;   With above mysql commands you set mysql root password to Null.

1 2 3 7