• Tips that every cPanel for Linux admin should know. | PHP Tips and Linux Tips

    Tips that every cPanel for Linux admin should know. | PHP Tips and Linux Tips

    These are common commands that I think all Linux for cpanel admin should know, some are just linux commands but quite handy anyway. Note: Never use the command line unless you know Linux quite well.

    Update Awstats and Webalizer for a certain user:

    /scripts/runweblogs username

    Set all files in a directory recursively to secure permissions. Never do at root level.

    find . -type d -exec chmod 755 {} ; find . -type f -exec chmod 644 {} ;

    This corrects file owerships for webusers:


    Update cPanel via command line:


    Edit root cron jobs command line:

    crontab -e

    Change default linux editor (I selected VI):

    VISUAL=vi;export VISUAL;EDITOR=vi;export EDITOR;

    Edit commands to run at boot time:

    vi /etc/rc.local

    Fix cPanel license after hostname change (I run at boot time):


    Clone directory to another directory (Permissions and all):

    rsync -rHDgopt –progress /sourcedirectory/* /destinationdirectory

    Backup only php files recursively and retain directory structure:

    find . -name ‘*.php’ | xargs tar -rf BACKUP.tar;

    Import large SQL files faster:

    mysql -u db_user_here -p’db_pass_here’ db_name_here < Name_Of_Backup_File.sql Export large SQL files faster: mysqldump -u db_user -p'db_pass' db_name > Name_Of_Backup_File.sql

    Limit webuser resources (cpu / memory / etc):

    vi /etc/security/limits.conf

    Edit mysql configuration file:

    vi /etc/my.cnf

    Edit php.ini:

    vi /etc/php.ini

  • The importance of a Domain Name

    When choosing a domain name, short, catchy and trendy should not be underestimated. There are many benefits of having a good domain name, but before you start choosing there are some things that you need to know pertaining to registration. Finding information is not that difficult and there are many free, online resources that provide valuable facts about domain names.

    There are millions of domain names already in use and just as many others are already registered by those hoping to sell them and earn some extra money. It is easy to check and see if your domain name is already reserved or in use and if it is, you can always test and see if a different extension would work. Extensions are at the end of the URL, such as .com or .de or .net. Once you have the right combination, then immediately register your internet marketing domain before someone else does and then you will have to purchase it back from them.

    The domain name IS important! It should be the same as your company name, but if that is not possible it should at least be similar. It is a basic principle of marketing to have a catchy, easy-to-remember name that is as short as possible. If your website has an easy-to-remember URL then the chances of visitors coming to your site increases dramatically, and along with them, the probability of making sales. More sales will mean more money for you and that is the whole point of internet marketing.

    Another advantage of having the proper domain name is that advertising will be more effective. If you set up banner advertisements throughout the internet or even send emails or just write articles or newsletters that contain your link, then it is best to have a name that will stick to your readers’ mind. Banners and emails get deleted or go away and that means that you as an internet marketer will have to rely on the memory capacity of potential customers. Only an appealing, relevant and short name will stand a chance !

    While choosing the ‘right domain’ name costs nothing and requires only some careful contemplating, the gains made can be enormous. It is not hard to find the right name for your website, but taking time to do this first step correctly will have long lasting impact on all the other marketing strategies you will ever employ.

  • Turning Cheap Domains Into Valuable Assets

    Many domain investors buy cheap domains, say in the $20-$150 price range, with the hope into flipping it into a healthy profit. Alot of those investors end up not selling their names for variety of reasons such as:

    1. They registered poor names to begin with.

    2. They overpriced their names

    3. They never actively tried to market their domains

    4. They didn’t develop the names into websites.

    Point # 4 is something many domainers ignore. Actually, it is one of the best ways to turn an average or even mediocre name into a domain that people want to buy.

    Many domainers believe to develop cheap domains into a full blown websites is expensive. Truth be told – it can be but it doesn’t have to be.

    Domains can be simply installed as a word press blog. Hosting would be needed, but this can be gotten cheaply.

    Many hosts allow instant WordPress installation, so it is nothing difficult.

    Content will need to be added to that blog periodically. Content should be quality and should be seo friendly.

    After content is added, monetize that content. Put Google AdSense of the site and/or some affiliate offers to generate some income.

    To get traffic to the blog – article marketing can be used. Article marketing is free if you do it yourself but you could outsource it too.

    Now – developing cheap domains is not something that guarantees that the domains will be sold. But it does increase the chances.

    Why? One – when a prospective buyer sees a developed website or blog for sale it increases the perceived value of the name. So what was once only a cheap domain – is now seen as a more valuable piece of real estate.

    Two – when the name is being advertised for sale – the seller can now list how much traffic the website/blog is getting. Plus, you he can mention how much the site earns.

    Domain buyers love numbers – let me tell you. There is a possibility that the blog/site could be sold for 18-36 times the monthly earnings.

    Don’t let your cheap domains remain undeveloped and rot. Develop them where possible.

    And what is also is a good idea is to buy affordable but high quality domains in the first place and develop them into hot properties.

  • Some great Google Tricks

    A few things you might want to try with Google:

    Hand type the following prefixes and note their utility:

    link:url Shows other pages with links to that url.

    related:url same as “what’s related” on serps.

    site:domain restricts search results to the given domain.

    allinurl: shows only pages with all terms in the url.

    inurl: like allinurl, but only for the next query word.

    allintitle: shows only results with terms in title.

    intitle: similar to allintitle, but only for the next word. “intitle:webmasterworld google” finds only pages with webmasterworld in the title, and google anywhere on the page.

    cache:url will show the Google version of the passed url.

    info:url will show a page containing links to related searches, backlinks, and pages containing the url. This is the same as typing the url into the search box.

    spell: will spell check your query and search for it.

    stocks: will lookup the search query in a stock index.

    filetype: will restrict searches to that filetype. “-filetype:doc” to remove Microsoft word files.

    daterange: is supported in Julian date format only. 2452384 is an example of a Julian date.

    maps: If you enter a street address, a link to Yahoo Maps and to MapBlast will be presented.

    phone: enter anything that looks like a phone number to have a name and address displayed. Same is true for something that looks like an address (include a name and zip code)

    site:www.somesite.net “+www.somesite.+net”
    (tells you how many pages of your site are indexed by google)

    allintext: searches only within text of pages, but not in the links or page title

    allinlinks: searches only within links, not text or title