Admins eHow SysAdmin Tips & Tricks

May 12, 2009

How to apply multiple css classes to an HTML element

Filed under: CSS,General — Tags: , , , — admin @ 9:54 am

Applying multiple css classes to an HTML element is easy , simply put an space between classes.
Example :

<style>;
.class1 {color:red;}
.class2 {background-color:blue;}
</style>;
<tr class="class1 class2"><td>< an example</td></tr>

May 11, 2009

How to redirect mail.domain.com to roundcube using mod_rewrite

Filed under: cPanel,General — Tags: , , , — admin @ 8:45 am

This only works only if you have a dedicated IP on your cPanel account
Many people are having problems accessing cPanel mail clients , entering mail client from cPanel takes a lot of times and memorizing the URL which is located on “http://domain.com:2095/3rdparty/roundcube/index.php” is not easy, also it is very long.
after some research, I found an excellent solution to solve this problem one time forever and for all addon domains !
cPanel makes a CNAME entry for mail.maindomain.com and all mail.addondomains.com to maindomain.com automatically , we will use it to do the trick.
create .htaccess file in the root directory of your main domain ( /public_html folder ) and copy and paste the following code into it :

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{http_host} ^mail\.(.*)\.com$ [NC]
RewriteRule ^(.*)$ http://%1.com:2095/3rdparty/roundcube/index.php [R=301,NC,L]

it will redirect mail.maindomain.com and all of mail.addondomains.com to http://domain.com:2095/3rdparty/roundcube/index.php

May 9, 2009

How to autostart a service on Debian, CentOs and RedHat

Filed under: CentOS,Debian,General — Tags: , , , — admin @ 3:31 pm

For Debian based distros run the following command as root :

update-rc.d servicename defaults

For CentOS and RedHat run the following command as root :

chkconfig servicename on

May 8, 2009

Best Blogging addon for FireFox

Filed under: General — Tags: , , , , — admin @ 9:03 am

I have installed and tried almost all of available blogging addons for FireFox and without any doubt the best of them is scribefire.
it supports wordpress and many other blogging platforms.
you can download and install it from this link :
https://addons.mozilla.org/en-US/firefox/addon/1730

How to use Google Apps email with WHMCS

Filed under: General — Tags: , , — admin @ 5:41 am

Here is the complete guide on how to do it :
http://forum.whmcs.com/showthread.php?t=17963
but for step 4 (SMTP in WHMCS) download this file :
http://www.adminsehow.com/uploads/class.zip ( it is the customized PHPMailer v5.0 )
and rewrite the class.smtp.php and class.phpmailer.php in the includes folder of WHMCS.

May 7, 2009

Redirect 301 domain.com to www.domain.com using mod_rewrite

Filed under: General — Tags: , , , , — admin @ 9:10 am

For SEO improvements you may want to create a permanent redirect (301) from your domain.com to www.domain.com.
you can do it easily using Apache mod_rewrite , simply open .htaccess file in the root directory of your website and add the following lines to it :

Options +FollowSymLinks
RewriteEngine On
rewritecond %{http_host} ^domain.com [NC]
rewriterule ^(.*)$ http://www.domain.com/$1 [R=301,NC,L]

it will do the trick for you 🙂

May 3, 2009

How to download files from FTP account easily Using FireFox + Flashgot + Flashget

Filed under: General — Tags: , , , , — admin @ 5:35 pm

ftp5

I have a Torrent Hosting service from a site named LeaseTorrent.com , I am almost 2 years with them and they are really good 🙂 anyway it is not a review for them but I want to teach you how to use combination of Firefox + Flashgot + Flashget to download your files easily from any FTP server.

You need these tools :

FlashGet version 1.73 , download here ( dont download newer versions , they are full of ads and crap )
Lates version of Firefox , download here
Latest version of Flashgot extension , download here

download these softwares and install them on your PC , remember flashgot is an addon for Firefox.

after installations , access your FTP account by this url in Firefox : ftp://username:password@yourftphost.com
you will see something like this :

ftp1

enter any folder which you want to download its files , and right click on page and choose Flashget All :

ftp2

uncheck the first two options and click on OK :

ftp3

on the next page specify where you want the files to be saved and click on OK.

ftp4

it’s done 🙂 all of your files will be added into flashgot queue and downloaded into the folder which you specified.

« Newer Posts

Powered by WordPress