Blog Archives

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

How to install vnc server on memory limited VPS?

There have been enough articles on how to install vnc server on CentOS6, CentOS7, or ubuntu, debian. But all of those guides tell you to install a desktop such as gnome, kde, before installing vncserver. The first step of their

Posted in tips of hosting

how to configure postfix to stop sending “Undelivered Mail Returned to Sender” emails thoroughly

Completely disabling postfix to send the  “Undelivered Mail Returned to Sender” emails seems not an easy thing to do. Postfix sends this kind of notification emails in many situations such as the recipients are not found, the destination host is

Posted in tips of hosting

http homepage and https homepage, which one google prefer?

You may think google prefers https homepage rather than the http homepage. Nowadays, it seems a common sense that https webpage ranks better than http webpage because it is more “secure”. And google, in its official documents, admits https page

Posted in tips of hosting