CAll Us: USA +1 9176775553   Login

How to update the yum repository on Centos 5 server

How to update the yum repository on Centos 5 server 1) yum install yum-fastestmirror 2) yum install yum-priorities 3) uname -i If the output is i386 then cd /usr/local/src wget  http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 4) Install key rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt 5)Install rpmforge rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm 6) yum check-update It will take some time to update teh RPM and […]

Read More »

Remove extensions from url

How to remove the  .php extension from the URL  ? Ans : Add the following code in .htaccess file ====================== Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L] ====================== How to remove the  .html extension from the URL  ? Ans : Add the following code in .htaccess file ====================== Options […]

Read More »

suEXEC mechanism enabled (wrapper:

Not able to start httpd & the error is as below Configuration Failed [Tue Dec 22 11:24:33 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Tue Dec 22 11:24:33 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Checking your disk shows that you have plenty of space. The problem is that apache […]

Read More »

Warning: unlink(/tmp/b5714c117c314452941e2cbf776c0ce7.dat)

Error : Warning: unlink(/tmp/b5714c117c314452941e2cbf776c0ce7.dat) [function.unlink]: Operation not permitted in /home/username/public_html/calendar/includes/dbi4php.php on line 828 Solution: The problem due the /tmp directory.  The /tmp directory is secure so this warning is generated. You need to create one /tmp folder under the document root (/home/username/public_html/calendar/) and change the setting  from /tmp to “/home/username/public_html/calendar/tmp” in setting.php file. Done

Read More »

How to update webalizer?

Some time the webalizer is not updated automatically , at that time you need to update the webalizer manually by using following command. /usr/local/cpanel/3rdparty/bin/english/webalizer  -N  10  -D  /home/username/tmp/webalizer/dns_cache.db -R 250 -p -n domain.com -o  /home/username/tmp/webalizer   /usr/local/apache/domlogs/domain.com Note : Replace username equal to correct username and domain.com equal to correct domain name.

Read More »

How to make root domain .htaccess not affect to addon domain

Some time the root domain .htaccess file rule affect to addon domains. So you can not access your addon domain properly. If you want to disable this rule for the addon domain then you need to add the following rule in the root domain .htaccess file. RewriteCond %{HTTP_HOST} ^(www\.)?addon_domain\.com Rewriterule .* – [L] for example […]

Read More »

Warning: Cannot modify header information – headers already sent by

Errror : Warning: Cannot modify header information – headers already sent by (output started at /home/username/public_html/includes/formvalidator.php:573) in /home/username/public_html/admin/insert_product.php on line 40 Solution : Then you need to add the following code at the top of file (/home/username/public_html/includes/formvalidator.php). <? ob_start(); ?> then at the bottom of the page place this line of code: <? ob_flush(); ?> […]

Read More »

Test Credit and Debit Card Numbers

Refer this URL and use the test Credit and Debit Card Numbers for the testing to shopping cart site or your paypal script. http://blog.rac.me.uk/2009/02/12/techy-test-credit-and-debit-card-numbers/ http://www.merchantplus.com/resources/pages/credit-card-logos-and-test-numbers For example: Card Type          : Visa Card Owner       : test Card Number   : 4012888888881881 Card Expiry Date: December, 2016 CV2 Number    : 123 or 1234 […]

Read More »

Thumbnail not created for EXIF jpeg file

Error: Thumbnail not created for EXIF jpeg file by using Imagemagick Solution : The problem due the Imagemagick version. You need to upgrade your Imagemagick version. You can easily upgrade your Imagemagick version by using yum command. root# yum install glib2 root# yum install libpng root# yum install libjpeg root# yum install libtiff root# yum […]

Read More »

Maximum execution time of 30 seconds exceeded

Error : Maximum execution time of 30 seconds exceeded in Magento. Solution: You need to increase your maximum execution time for php scripts on your server. You can edit your php.ini file to increase this value max_execution_time = 600 or You can try adding the following line at the start of your file on which […]

Read More »

How to check server is suexec or not

How to check server is suexec or not? make 777 permission for index.php file for a clients domain and then access it, if it gives an error as Internal server then sure it is suexec server this time copy servers php.ini file and make necessary changes for client. or root@rushi []# /usr/local/cpanel/bin/rebuild_phpconf – –current Available […]

Read More »

How to enable font for client

Client ask for fonts. i.e. whether particular(Lucida for some tff files) font is enabled on the server or not or asking for its binary path: fire this command on the server #chkfontpath i.e. /usr/share/fonts/default/Type1 then search the font name which you want to enable for client for example lucida search this in /usr directory. #find […]

Read More »

What is Mod-Rewrite Module

What is Mod-Rewrite Module? Mod_rewrite is merely the Apache module that contains the rewrite engine – other servers will process URL rewriting differently.Mod-Rewrite module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule […]

Read More »

Which Is the Best Web Hosting Company?

Which Is the Best Web Hosting Company? Finding a reliable and quality web hosting service provider for small busines is a so much difficult task today for business owners and entrepreneurs. There are many hosting services providers who offers cheap web hostings for small business. In many cases various companies charges different high charges for […]

Read More »

Server monitoring tools Nagios

What is Nagios ? Nagios is a system and network monitoring application. It watches hosts and services that you specify,alerting you when things go bad and when they get better. It is a fairly complex tool for monitoring the status of IT infrastructure – everything ranging from web servers to routers. Installation is a complex […]

Read More »

Location of configuration files in CMS

Location of configuration files on number of CMS WordPress: /home/username/public_html/wp-config.php CommercePro: /home/username/public_html/catalog/includes/configure.php and /catalog/admin/includes/configure.php Picture Pro: /home/username/public_html/include/config.inc.php phpBB: /home/username/public_html/config.php Joomla: /home/username/public_html/configuration.php MediaWiki: /home/username/public_html/LocalSettings.php

Read More »

test cgi script

Create one test.cgi file and add the folloing test code for checking the .cgi file working on the server. ======================= #!/usr/local/bin/perl # hello.pl — my first perl script! print “Content-type: text/html\n\n”; print “Hello, world!\n”; =======================

Read More »

Accessing perl file without .pl extention

How to Access  perl script file without .pl extention for example: http://192.168.o.2/~test/cgi-bin/testperlpath.pl here in this case client want to access testperlpath.pl file without .pl extention like http://192.168.o.2/~test/cgi-bin/testperlpath then you need to add handler in .htaccess file <Files ~ ‘^[^.]*$’> SetHandler cgi-script </Files> Done

Read More »

How to disable Core file generation

How to disable Core file generation first of all delete the core files which are preset on the server or under any account then vi /etc/init.d/httpd and below the “ulimit -n 16384” you need to put ulimit -c 0 And Command to delete core files #find ./ -name “core.*” -exec rm -f {} \;

Read More »

Problem with phpBB

Problem with phpBB Critical Error Could not connect to the database This error means that you have not configured your PhpBB’s database settings properly. Revise the configuration file of phpBB which is config.php located in the directory where your forum resides. Please note that your database names and usernames always begin the following prefix “user_” […]

Read More »

How to compress CSS with gZIP

How to compress my CSS with gZIP? To compress your CSS files with gZIP there are two things that you should do. First, add the following line to the .htaccess file in your public_html folder: AddHandler application/x-httpd-php52 .css By doing this, you allow the server to process .css files through PHP. Next, add the following […]

Read More »

error as session.save_path

while installation of third party application getting error as session.save_path error as session.save path is not defined your php.ini file then you need to copy php.ini file and under php.ini file you need to define session.save_path as session.save_path = /home/username/public_html/tmp beofore it was like session.save_path = /tmp here need to create tmp directory under installation […]

Read More »

Server replied:Connection timed out 110 Can't open SMTP stream

If you are getting following error while sending emails from squirrelmail. Error: Message not sent. Server replied: Connection timed out  110 Can’t open SMTP stream. Solution : If above case if you are having shell access then login to your server with root user, then edit config file and do the changes as given below. […]

Read More »

Check outgoing emails send from particular email address

Check outgoing emails from particular email address cat /var/log/exim_mainlog | grep “<= username@hostname” | wc -l And incoming as cat /var/log/exim_mainlog | grep “=> username@hostname” | wc -l using current date you can find logs as cat /var/log/exim_mainlog | grep “<= username@hostname” | grep 2009-06-20 | wc -l Note : Replace username= exact cpanel username […]

Read More »

IMP .htaccess file

############################################ ## uncomment these lines for CGI mode ## make sure to specify the correct cgi php binary file name ## it might be /cgi-bin/php-cgi # Action php5-cgi /cgi-bin/php5-cgi # AddHandler php5-cgi .php ############################################ ## GoDaddy specific options # Options -MultiViews ## you might also need to add this line to php.ini ## cgi.fix_pathinfo = […]

Read More »

Exim + Basic information

Basic information Print a count of the messages in the queue: root@localhost# exim -bpc Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient): root@localhost# exim -bp Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals): root@localhost# exim -bp | exiqsumm Print what Exim […]

Read More »

How to disabled the suhosin for the perticular domain

How to disabled the suhosin for the perticular domain search suhosin in php.ini file ============================= extension=”suhosin.so” ; Filtering Options suhosin.get.max_vars = 114096 suhosin.post.max_vars = 114096 ================================ and change it to ========================== ;extension=”suhosin.so” ; Filtering Options ;suhosin.get.max_vars = 114096 ;suhosin.post.max_vars = 114096 ==============================

Read More »

Difference between Windows,LINUX and Macintosh

Firstly!! We are going to have a brief Idea about what is Windows,LINUX and Macs. —>>>1)What is Windows? * A) The Windows is a operating system.This allows people to manage files and run software programs on desktop and laptop computers. * The Windows operating system is developed and maintained by Microsoft, the company founded by […]

Read More »

Disable Mod-Security only for the perticular directories or files.

Disable Mod-Security only for the particular directories or files. If the server logs shows the error with id “ “] [Mon Oct 12 16:11:20 2009] [error] [client 121.15.245.215] ModSecurity: Access denied with code 400 (phase 2). Pattern match “^\\w+:/” at REQUEST_URI_RAW. [file “/usr/local/apache/conf/modsec2.user.conf”] [line “26”] [id “960014“] [msg “Proxy access attempt”] [severity “CRITICAL”] [tag “PROTOCOL_VIOLATION/PROXY_ACCESS”] […]

Read More »

an error occurred while processing this directive

Error: Browser shows  [an error occurred while processing this directive] ” and server logs shows the error ” unable to include “http://domain name /inc/listbox.php” in parsed file /home/username/public_html/index.shtml Solution : You need to check your coding if you have used ” <!- –  #include virtual=”http://domain name /inc/listbox.php” – -> ” in index.shtml so the proper […]

Read More »

Fatal error: Call to undefined function: strripos() in

Error : Fatal error: Call to undefined function: strripos() in Solution : strripos() is a working on only php5 . So you need to switch you account to php5 installed server or if php4 and php5 is installed on the same server then add the folloging code in .htaccess file to switch to php5. AddHandler […]

Read More »

How to enable SSI includes by using .htaccess

Including executable are no longer allowed by default Apache configuration. Includes NO-EXEC is now the default, SSI includes are now disabled by default. This is done to prevent server abuse / insure server security. We recommend using PHP coding wherever possible. If using cgi includes is ABSOLUTELY necessary you may enable the includes via : […]

Read More »

exec used but not allowed in

Error: If server logs shows error “exec used but not allowed in /home/username/public_html/test.html ” Solution : You need to add the following code in .htaccess file and save it. Options +Includes +ExecCGI AddHandler cgi-script .cgi .pl Done

Read More »

How to Upgrade from moodle 1.8 to 1.9

Upgrade from moodle 1.8 to 1.9 (with Nwiki upgrade) A very quick how to to upgrade moodle 1.8 to moodle 1.9 (with Nwiki upgrade from 1.8 to 1.9): 1. Stop you moodle 1.8 (mantainence mode) 2. Copy your moodle BD (ispconfig is great for this) to a new one (here is dbmoodle19) 3. cp /home/public_html/moodle18 […]

Read More »

Upload files in correct ftp mode

Most of the time all the files is correct but it shows the internal server error then you need to upload files in the particular ftp mode. .cgi files upload in ASCII Mode .pl files upload in BINARY Mode .php files upload in BINARY Mode .jsp files upload in BINARY Mode

Read More »

Redirect by using php code

How to redirect index.php page to another url by using php code. If you want to redirect your index.php page to another URL or page then add the following code in your index.php page. <?php header( ‘Location: http://www.domain.com/new_page.html’ ) ; ?> Note : Replace “http://www.domain.com/new_page.html” with exact URL on which you want to redirect you […]

Read More »

Default IP table rules for cPanel server

If server is linux server then you can add this default iptable rules for open some common port and secure some ports. # Generated by iptables-save v1.2.11 *raw : PREROUTING ACCEPT [29:2132] :OUTPUT ACCEPT [20:2224] COMMIT # Completed on Fri Feb 10 12:34:10 2006 # Generated by iptables-save v1.2.11 on Fri Feb 10 12:34:10 2006 […]

Read More »

rsync commands

1) If you want to migrate  “/home/test/public_html” directory  to  another server(destination ) by using rsync command then run following command on the source server so the public_html directory migrated  from source server to destination server (192.168.0.1 ) rsync -vrplogDtH -e “ssh -p 22″ /home/test/public_html root@192.168.0.1:/home/test/ Note : Replace “22” to exact server port number and […]

Read More »

How to use cgiemail?

How to use cgiemail ? If you want to use the cgiemail in your site then follow the simple steps. 1) Create one .txt file (result.txt) and add the following sample code and save this file. ================================= To: test@gmail.com Subject: questions three What is your name? [yourname] What is your quest? [quest] What is your […]

Read More »

Roundcube not send emails

Error : When the click the send button, it starts to sending but nothing happens, the roundcube shows only the process state. Solution : Then you need to follows the steps If the server is cpanel server then open the file /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php and search the $rcmail_config[‘smtp_user’] = ‘%u’; and replace it with $rcmail_config[‘smtp_user’] = ‘ […]

Read More »

PHP Fatal error: Call to undefined function

Error : PHP Fatal error: Call to undefined function Solution : The server shows this warning because your script is not working on php4 version so you need to switch to php5 version for the domain who is facing the problem. If on the server both php4 and php5 installed then you can switch to […]

Read More »

What Is SEO?

What Is SEO? Search engine optimization (SEO) is the art of getting a website to work optimally with search engines like Google, Yahoo, MSN etc. What is SEO (search engine optimization)? SEO is the things you do in order to optimize your page so that it gets picked up with high rankings in the search […]

Read More »

Unable to include potential exec

Solution [Mon March 13 12:11:27 2009] [error] [client XX.XX.XX.XX] unable to include potential exec “/cgi-bin/script.cgi” in parsed file “/public_html/file.html” Including executables are no longer allowed by default. IncludesNOEXEC is now the default, SSI includes are now disabled by default the Options -IncludesNoExec directive. This is due to server abuse. We recommend using PHP coding wherever […]

Read More »

Sorry, cleartext sessions are not accepted on this server.

If you are not able to connect to ftp account with the correct login details and the cpanel server logs shows the error “Sorry, cleartext sessions are not accepted on this server. Please reconnect using SSL/TLS security mechanisms” then follow the steps The problem due to some ftp client not support the “TLS Encryption Support” […]

Read More »

How to Redirect a Web Page Using a 301 Redirect

How to Redirect a Web Page Using a 301 Redirect You’ve just edited or modified some pages of your web site and those pages have high search engine rankings that you don’t want to lose. How can you safely redirect web site traffic from your old pages to the new pages without losing your rankings? […]

Read More »

Defination of webhosting tools

APACHE The Apache is a web server that parses types of HTML pages  and sends it back to you as a human readable web page.Apache is an open source Web server that is distributed free. Apache runs on Unix-based operating systems (including Linux and Solaris) and Windows 95/98/NT. CGI CGI means common gateway interface, it […]

Read More »

Types of web hosting control panels

Web hosting Control Panel Types : The control panel is designed to simplify the management and administration of web sites.Control panel automates a large number of tasks that allow service providers to reduce operating costs and resources while at the same time increasing profitability, efficiency and customer satisfaction. Clients can control there sites and other […]

Read More »