Next Previous Contents

7. FAQ

7.1 The MySQL database of ht://Check

What tables have to be created? What about the fields? and their format?

ht://Check does everything for you. It creates the database structure itself, so you don't need to create it before. You just need to grant the spider enough permissions in order to do that.

7.2 Configuring the 'spider' (htcheck)

How do I change the URLs to check without going through the PHP interface?

No. There's no way to configure the spider through PHP for now. You just have to edit the configuration file (usually 'htcheck.conf').

If I run htcheck at the commandline, I don't see a way to change the URLs to check. I'm guessing that the Server table in the htcheck database is what I want to modify, right?

No .. you don't need to modify the MySQL database at all. Indeed it's for getting the results only. Every database is directly created by the application (from scratch). You must edit the parameters in the htcheck.conf file. You have to set one or more starting URL with the 'start_url' attribute. Then you can limit the search to a set of URLs by setting the 'limit_urls_to', 'limit_normalized' and 'exclude_urls' options. These are the most used and important, though you can use the 'bad_extension', 'max_hop_count', 'bad_query_string'. But in most of cases you only have to set the 'limit_urls_to' parameter. For instance:

start_url: http://www.foo.com
limit_urls_to: $(start_url)

The 'limit_normalized' parameter checks for every URL after it's been normalized (in this format: service://[user:password]host:port/path ).

7.3 The PHP Interface

Despite configuring the username, password, and host in global.inc.php, I keep getting the following when accessing http://localhost/php/index.php: Access denied for user: '@localhost' to database 'htcheck'. Why?

The problem is that the user you are connecting to the MySQL server through the PHP scripts (the one set in the global.inc.php file) has not enough permissions. Give a look at these sections: user's privileges and installing PHP scripts.


Next Previous Contents