Problem With Solutions

Something Different In Linux

Home » Archive by category 'Knowledge'

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

Posted by Rishikesh Vispute Categories: htaccess, Knowledge

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 ]

view webalizer stats without login to cpanel

Posted by Rishikesh Vispute Categories: cpanel, Knowledge

Is it possible to view webalizer stats without login to cpanel? Yes. Do the following steps. cd /home/username/www ln -s ../tmp/webalizer   webalizer chown username.username  webalizer cd ../tmp chmod 755 ./ chmod 755 ./webalizer —————- will allow domain.com/webalizer/ for viewing stats without logging in to cpanel

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 ]

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

How to update webalizer?

Posted by Rishikesh Vispute Categories: cpanel, How to, Knowledge

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.

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 ]

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

Posted by Rishikesh Vispute Categories: Knowledge

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 ]

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 ]

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

Posted by Rishikesh Vispute Categories: Basic Linux, Knowledge, Linux Commands

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

Posted by Rishikesh Vispute Categories: Knowledge

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

Posted by Rishikesh Vispute Categories: htaccess, Knowledge

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?

Posted by Rishikesh Vispute Categories: Knowledge

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

Posted by Rishikesh Vispute Categories: Installation, Knowledge

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

Posted by Rishikesh Vispute Categories: Joomla, Knowledge, Wordpress

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

test cgi script

Posted by Rishikesh Vispute Categories: Knowledge, Shell Programming and Scripting

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”; =======================

Accessing perl file without .pl extention

Posted by Rishikesh Vispute Categories: How to, Knowledge

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

How to disable Core file generation

Posted by Rishikesh Vispute Categories: How to, Knowledge

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 {} \;

Problem with phpBB

Posted by Rishikesh Vispute Categories: Knowledge

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

Posted by Rishikesh Vispute Categories: How to, Knowledge, PHP

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

Posted by Rishikesh Vispute Categories: Knowledge

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 ]

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 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

Posted by Rishikesh Vispute Categories: Knowledge

############################################ ## 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

Posted by Rishikesh Vispute Categories: Knowledge, Linux Commands

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 ]

Optimized by SEO Ultimate