Archive for the ‘cpanel’ Category

How to disable directory or file listing for particular website?

a)vi .htaccess Options All -Indexes save the changes. OR a)vi .htaccess add this to the file IndexIgnore *   Find help on this link for most of the general soultions regarding directory listing: http://www.clockwatchers.com/htaccess_dir.html    

How directly run webstat through IE ( i.e domainname.com/webstat)

cd /home/username/public_html ln -s ../tmp/webalizer webstat cd .. chmod 755 tmp cd tmp chmod 755 webalizer  

Nobody Prevention Script

A big problem today is the abundance of Spammers listing as “Nobody”. This tutorial will outline how to properly set it up on Cpanel based systems. root@yourserver [~]# mv /usr/sbin/sendmail /usr/sbin/sendmail.real // backup your existing sendmail in the event of an error. root@yourserver [~]# pico /usr/sbin/sendmail // Open this badboy up, now paste the code […]

Prevent hotlinking of images from .htaccess

Preventing Images Hotlinking on a Web Site Bandwidth theft or hotlinking is a direct linking to web site’s files (images, video, etc.). It can be prevented with the mod_rewrite module. Place rules like below into the .htaccess files for the domain (for example www.example.com):  RewriteEngine on RewriteCond % !^$ RewriteCond % !^http://(www\.)?example\.com(/)?.*$ [NC] RewriteRule \.(gif|jpg|jpeg|png|swf)$ […]

How to configure email address in Outlook Express

Here is how to configure your email address in Outlook Express: 1)Click Start, point to All Programs, and then click Outlook Express 2)On the Tools menu, click Accounts. 3)Click Add, and then click Mail 4)Type Your name in Display name as you would like it to appear. 5)Type your email address people use to send […]

ffmpeg.so: undefined symbol: av_free_static

This is a common error when we hit “php -v” over command line or when we browse a phpinfo.php on a site. To fix this problem you will need to recompile your ffmpeg-php again. To fix this: Go to the source directory ffmpeg-phpXX.XX #vi ffmpeg-php.c remove/comment the call to av_free_static() Save. Now rebuild ffmpeg-php and place the […]

FFmpeg error

After installing FFMpeg , when you execute the command : ffmpeg or ffmpeg -v, you may receive an error.   ffmpeg: error while loading shared libraries: libavformat.so.50: Solution : Execute the following command :   export LD_LIBRARY_PATH=/usr/local/lib:LD_LIBRARY_PATH But this value will be cleared once you log off that session. So it is recommended to save […]

Error from domain wrapper: domain.com is owned by another user.

Error: Error from domain wrapper: domain.com is owned by another user. If you are getting this error when trying to add subdomains from your cPanel, here is how to fix it: 1. Remove domain.com from /var/cpanel/users/cpanel-username 2. Run /scripts/updateuserdomains as root user on the server. 3. Remove the virtualhost for domain.com on /usr/local/apache/conf/httpd.conf 4. Remove /var/named/domain.com.db if […]

Horde Webmail error – Warning: Failed opening ‘Net/Socket.php’ for inclusion

The Horde webmail interface may throw an error as – Warning: Failed opening ‘Net/Socket.php’ for inclusion (include_path=’.:/usr/share/pear’) in /usr/share/pear/Net/SMTP.php on line 93 Fatal error: Cannot instantiate non-existent class: net_socket in /usr/share/pear/Net/SMTP.php on line 95 To fix this, you can do the following – First check if the Pear package Net_Socket is present on the server. […]

Mail Error message: Error 550 The recipient cannot be verified

On servers running cPanel, you may find that mail sent to valid user is bounced back will an error message which will be similar to the following: PERM_FAILURE: SMTP Error (state 9): 550-”The recipient cannot be verified. Please check all recipients of this550 message to verify they are valid. If this is occurring, you will […]