Blog Archives

How to add a favicon for my website?

When you browse a website, you may notice a little icon on top of the web page(on the tab header of the browser, right in front of the site title). This is called favicon meaning “Favorites Icon”.  As a webmaster,

Posted in tips of hosting

How to redirect url using .htaccess for WordPress websites?

If your website is not set up with WordPress, things would be easier for you to redirect one url to another using .htaccess.

This will redirect http://domainhostseotool.com/test1.php to http://domainhostseotool.com/test2.php. But WordPress uses .htaccess for its own redirection. Simply adding

Posted in tips of hosting

Argument list too long

If you are not making a living by teaching Linux in school, you’ll definitely encounter this error sooner or later in your daily work. The error is due to the limited command line length.i.e, the * in your command expands

Posted in tips of hosting

on trailing slash in url

If you type “http://domainhostseotool.com” in your browser’s address bar, the request uri is /(_SERVER["REQUEST_URI"]), i.e, you are actually visiting http://domainhostseotool.com/. This is nothing to do with the Apache server, the browser sends the following request:

If you type “http://domainhostseotool.com/”(note

Posted in tips of hosting

handle logic for missing index file in Apache

If you visit a url like http://domainhostseotool.com, Apache will append an index file to the url such as  http://domainhostseotool.com/index.php before further processing. The index file is specified with the DirectoryIndex directive. You may find the following DirectoryIndex in your virtualhost

Posted in tips of hosting

mariadb recover

After a hardware failure, my mariadb cannot be restarted. service mariadb restart Redirecting to /bin/systemctl restart  mariadb.service Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details. [root@panel mysql]#

Posted in tips of hosting

How to reduce dns lookup time?

If you are writing a program to resolve massive domain names such as an email address verifier, you must have headache about the dns lookup time. The dns lookup is very slow by default. The resolve of a domain name

Posted in tips of hosting

How to check the release and version of linux?

You definitely need a command to check the release and version of Linux on your server. The keywords you use to find the answer are probably: how to check the release version of linux how to check the redhat release

Posted in tips of hosting

how to restart a service when it is down?

It is a common issue for webmasters that a service such as httpd/mysqld crashes now and then. You can not monitor the status of the services manually. Firstly, I solved this problem by writing a monitoring script. The script uses

Posted in tips of hosting

nslookup and dig illustrated

nslookup(on windows) and dig(on linux) are two indepensible tools for system administrator to debug DNS problems. However, the two DNS tools are not easy to use as other commands. First of all, if you issue the following commands to try

Posted in tips of hosting