Linux (RedHat and Centos)

Linux (RedHat and Centos)

                      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 …

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 …

Run/Include php code in .shtml   To run php code in .shtml add below Apache directive’s either in .htaccess .   # vi .htaccess AddType text/html .shtml AddHandler server-parsed .shtml AddType application/x-httpd-php .shtml RemoveHandler .shtml .html .htm Options Indexes FollowSymLinks Includes XBitHack on DirectoryIndex index.shtml …

How to enable server side(SSI) include in Apache   What are SSI? SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing …

Installing optipng jpegoptim on Centos and Redhat   Follow below steps to installing packages: 1) Install dependency for the relevant packages.. #yum -y install gcc libpng libpng-devel gifsicle pngcrush p7zip lzip jhead   2) Install optipng For x86 architecture [64 bit]: # yum -y install …

Install Siege stress tester on Centos 6.5   Siege is a Apache benchmarking tool. It is a stress testing tool for a Apache web server. Installation process: cd /usr/src/ wget http://www.joedog.org/pub/siege/siege-2.72.tar.gz tar -zxvf siege-2.72.tar.gz     Extract siege folder to configuration and compilation. # cd …

1 2 3 5