/Archives

  • Vimal Raj
  • 3580 Views
  • 0 Comment
  • No tags

Step for Plesk Upgrade 1. Check the version of current Plesk control panel 2. If Plesk is of version 8.x go first upgrade plesk to 10.X then upgrade to plesk 11.0 and then go for plesk 11.5 3. If Plesk if of version 9.x then you can directly upgrade plesk to plesk 11.0 and then upgrade plesk to 11.5 Tip : Always keep a copy of the server while performing upgrade. Also Check Out Our Server Management Plans  

READ MORE
  • Vimal Raj
  • 3581 Views
  • 0 Comment
  • Grep .

C:\>findstr /? Searches for strings in files. FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file] [/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]] strings [[drive:][path]filename[ ...]] /B Matches pattern if at the beginning of a line. /E Matches pattern if at the end of a line. /L Uses search strings literally. /R Uses search strings as regular expressions. /S Searches for matching files in the current directory and all subdirectories. /I Specifies that the search…

READ MORE
  • Vimal Raj
  • 3579 Views
  • 0 Comment
  • No tags

We are usually facing many library errors while compiling PHP 5. Here are some of the fixes. ================================= checking for BZip2 support… yes checking for BZip2 in default path… not found configure: error: Please reinstall the BZip2 distribution Fix: yum install bzip2-devel ================================= checking for cURL support… yes checking if we should use cURL for url streams… no checking for cURL in default path… not found configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/ Fix:…

READ MORE
  • Vimal Raj
  • 3578 Views
  • 0 Comment
  • No tags

Shell Script for Disk Space 1. Create a file /home/diskspace.sh 2. Enter the following code in the script #!/bin/sh #Threshold is set to 70 here. THRESHOLD=70 MAILTO="youremailaddress" TEMPFILE=/tmp/diskspace.temp HOSTNAME=`hostname`   rm -f $TEMPFILE   #Calculate the Current Disk Usage with the below command. CDU=$(df -h | tail -1 | awk '{print $5}' | sed 's/%//') #Compare the current value with the threshold one. if [ $(expr $CDU ">=" $THRESHOLD) -ne 0 ] then echo "Warning!!! Disk Space usage on server…

READ MORE
  • Vimal Raj
  • 3579 Views
  • 0 Comment
  • No tags

.htaccess rules 1.Remove www in url RewriteEngine On RewriteCond %{HTTP_HOST} !^your-site.com$ [NC] RewriteRule ^(.*)$ http://your-site.com/$1 [L,R=301] 2. Prevent hotlinking RewriteEngine On #Replace ?mysite\.com/ with your blog url RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ #Replace /images/nohotlink.jpg with your "don't hotlink" image url RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]     3. Force download of specific files Files *.xls> ForceType application/octet-stream Header set Content-Disposition attachment </Files> <Files *.eps> ForceType application/octet-stream Header set Content-Disposition attachment </Files> 4. Log PHP errors # display no errs…

READ MORE
OUR SERVICES
OUR TECHNOLOGIES