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...
Category: Knowledge
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 ======================How to remove the .html extension from the...
view webalizer stats without login to cpanel
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...
suEXEC mechanism enabled (wrapper:
Not able to start httpd & the error is as below Configuration Failed suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) (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...
Warning: unlink(/tmp/b5714c117c314452941e2cbf776c0ce7.dat)
Error : Warning: unlink(/tmp/b5714c117c314452941e2cbf776c0ce7.dat) : 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...
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...
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...
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(); ?>...
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...
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...