• Vimal Raj
  • 4005 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
  • 4006 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
  • 4004 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
  • 4003 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
  • 4004 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
  • ratheesh
  • 4003 Views
  • 0 Comment
  • No tags

When adding a new contact in Roundcube webmail, if you obtain the following error:     An error occured while saving You can check for the error in the Roundcube log files: tail -f /var/log/roundcube/errors If you encounter the following error message MDB2 Error: no such field (-19): _doQuery: [Error message: Could not execute statement] [Last executed query: INSERT INTO contacts (user_id, changed, del, `vcard`, `name`, `email`, `firstname`, `surname`, `words`) VALUES ... [Native code: 1054] [Native message: Unknown column 'words'…

READ MORE
  • Sunny
  • 4003 Views
  • 0 Comment
  • No tags

  01. To install iscsi-initiator yum install iscsi-initiator-utils 02. To find out InitiatorName cat /etc/iscsi/initiatorname.iscsi 03. To discover all available targets ? iscsiadm -m discovery -t sendtargets -p XX.XX.XXX.XX 04. To discover all available targets with verbosity iscsiadm -d 2 -m discovery -t sendtargets -p XX.XX.XXX.XX Note: We can increase verbosity by increasing the value giving to “-d” switch 05. To check the available iSCSI node(s) to connect [in other words, to make sessions] iscsiadm -m node 06. To see…

READ MORE
  • Sunny
  • 4001 Views
  • 0 Comment
  • No tags

You can convert your cli Direct Admin server to suphp server by following below steps. Step: 01 cd /usr/local/directadmin/custombuild Step: 02 Open options.conf and make following changes in it Replace php5_cli=yes php5_cgi=no with php5_cli=no php5_cgi=yes Step: 03 Then ./build update ./build all d Note: All logs for suPhp are stored in: /var/log/suphp.log Step: 04 cd /usr/local/directadmin/scripts/custom && \ wget http://65.99.205.78/active-neubox/user_destroy_pre.sh && \ wget http://65.99.205.78/active-neubox/user_create_post.sh && \ chmod 755 /usr/local/directadmin/scripts/custom/*.sh && \ chown diradmin:diradmin /usr/local/directadmin/scripts/custom/*.sh Step: 05 Execute following one liner…

READ MORE
  • Sunny
  • 4002 Views
  • 0 Comment
  • No tags

Supportlobby share some tips which we are using while dealing with mysql databases. ‘-e’ is the switch which enables command line mode for ‘mysql’ client which is installed default on every Linux distros. Some examples: 1. For listing all mysql users on the server. mysql mysql -e "SELECT User FROM user" 2. Show values assisned to each mysql variable mysql -e "SHOW VARIABLES" 3. For list mysql engine details mysql -e "SHOW ENGINES" 4. Dropping a database mysql -e "DROP…

READ MORE
  • Sunny
  • 3996 Views
  • 0 Comment
  • No tags

Before proceeding with installation, make sure that Apache is compiled with mod_ssl. You can check the same by executing the following command in the server.   Steps for Generating and installing SSL certificate 1. Generate a Private Key: The openssl toolkit is used to generate an RSA Private Key and CSR (Certificate Signing Request). It can also be used to generate self-signed certificates which can be used for testing purposes or internal usage. openssl genrsa -des3 -out server.key 1024 2.…

READ MORE
OUR SERVICES
OUR TECHNOLOGIES