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.
htcheck
)
No. There's no way to configure the spider through PHP for now. You just have to edit the configuration file (usually 'htcheck.conf').
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 ).
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.