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 4) Install key rpm –import 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 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 -o  /home/username/tmp/webalizer   /usr/local/apache/domlogs/ Note : Replace username equal to correct username and 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. 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? 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 ]

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...