|
Custom Search
|
Installation
1) Enter database connection datas.
2) Set-up websites.
3) Set-up users rights.
The files hasn't been created, check if the folder is CHMOD 777.
Folder has CHMOD 777. But its not working. Can you pls help?
Offline
That method is not compatible with the version 1.5.0 and after of CrawlTrack!!!!
Hy !!Free_Host,
If it dasn't work even with chmod 777 folder, you will have to create the files manually. So, follow carrefully the following procedure and it should work.
1) create a file named configconnect.php with the following content :
<?php
//----------------------------------------------------------------------
// file: configconnect.php
//----------------------------------------------------------------------
$user="mysql username";
$password="mysql password";
$db="mysql database";
$host="mysql host";
$lang="english";
$version="140";
$times="0";
?>
With replacing mysql username; mysql password; mysql database and mysql host by your connection datas.
2)upload that file in the crawltrack/include folder.
3)create a file named crawltrack.php with the following content :
<?php
//----------------------------------------------------------------------
// CrawlTrack 1.4.0
//----------------------------------------------------------------------
// Crawler Tracker for website
//----------------------------------------------------------------------
// Author: Jean-Denis Brun
//----------------------------------------------------------------------
// Website: www.crawltrack.info
//----------------------------------------------------------------------
// That script is distributed under GNU GPL license
//----------------------------------------------------------------------
// file: crawltrack.php
//----------------------------------------------------------------------
//mysql escape function
function sql_quote( $value )
{
if( get_magic_quotes_gpc() )
{
$value = stripslashes( $value );
}
//check if this function exists
if( function_exists( "mysql_real_escape_string" ) )
{
$value = mysql_real_escape_string( $value );
}
//for PHP version < 4.3.0 use addslashes
else
{
$value = addslashes( $value );
}
return $value;
}
//get information
if (!isset($_SERVER))
{
$_SERVER = $HTTP_SERVER_VARS;
}
if(isset($_POST['agent']))
{
$agent = $_POST['agent'];
}
else
{
$agent =$_SERVER['HTTP_USER_AGENT'];
}
if(isset($_POST['ip']))
{
$ip = $_POST['ip'];
}
else
{
$ip =$_SERVER['REMOTE_ADDR'];
}
if(isset($_POST['url']))
{
$url = $_POST['url'];
}
else
{
$url =$_SERVER['REQUEST_URI'];
}
if(isset($_POST['site']))
{
$site = $_POST['site'];
}
//connection to database
$connexion = mysql_connect("mysql host","mysql user","mysql password");
$selection = mysql_select_db("mysql database");
// check if the user agent or the ip exist in the crawler table
$endwhile = false;
$endwhile2 = false;
$result = mysql_query("SELECT crawler_user_agent, crawler_ip,id_crawler FROM crawlt_crawler");
while ( !($endwhile) && !($endwhile2) && ($data = mysql_fetch_row($result)) )
{
if($data[0]!='')
{
$endwhile = (stristr($agent, $data[0]) !== false);
}
if($data[1]!='')
{
$endwhile2 = (strstr(substr($ip,0,strlen( $data[1])),$data[1]) !== false);
}
}
$crawler = $data[2];
$date = date("Y-m-d H:i:s");
if ($endwhile OR $endwhile2)
{
//check if the page already exist, if not add it to the table
$result2 = mysql_query("SELECT id_page FROM crawlt_pages WHERE url_page='".sql_quote($url)."'");
list($id_page) = mysql_fetch_row($result2);
if($id_page)
{
$page= $id_page;
}
else
{
mysql_query("INSERT INTO crawlt_pages (url_page) VALUES ('".sql_quote($url)."')");
$id_insert = mysql_fetch_row(mysql_query("SELECT LAST_INSERT_ID()"));
$page = $id_insert[0];
}
//insertion of the visit datas in the visits database
mysql_query("INSERT INTO crawlt_visits (crawlt_site_id_site, crawlt_pages_id_page, crawlt_crawler_id_crawler, date) VALUES ('".sql_quote($site)."', '".sql_quote($page)."', '".sql_quote($crawler)."', '".sql_quote($date)."')");
}
?>
With replacing also mysql username; mysql password; mysql database and mysql host by your connection datas.
4)Upload that file in the crawltrack folder (on the root not in include)
5)Create a file named index.php with the following content:
<?php
//----------------------------------------------------------------------
// file: index.php for manual installation
//----------------------------------------------------------------------
//version id
$versionid="140";
@error_reporting(0);
// do not modify
define('IN_CRAWLT', TRUE);
// session start 'crawlt'
session_name('crawlt');
session_start();
//function to escape query string
function sql_quote( $value )
{
if( get_magic_quotes_gpc() )
{
$value = stripslashes( $value );
}
//check if this function exists
if( function_exists( "mysql_real_escape_string" ) )
{
$value = mysql_real_escape_string( $value );
}
//for PHP version < 4.3.0 use addslashes
else
{
$value = addslashes( $value );
}
return $value;
}
//include $_POST
include"include/post.php";
//display install
include"./include/header.php";
include"./include/install.php";
include"./include/footer.php";
?>
6)Upload that file in the crawltrack folder (on the root not in include), replacing the existing index.php file
7)Restart installation procedure
8)When you have created the administrator account, stop the procedure and replace the index.php file by the original one. Once you have done that, it should be ok
Hope, this will help you, don't hesitate to ask again if you still have problems.
By, Jidébé
Offline
Ok it works. But the text filed size that we have to enter our domain name is not enoug.
Offline
Ok,
I will increase that in the next release.
Offline
Version 1.0.1 is available.
Now the domain name could be up to 45 letters long instead of 20 in the previous version.
Offline
The "read me" file states "you just have to enter your CrawlTrack url in your
browser and follow the instructions to install CrawlTrack" . . .
My question is: What is my "CrawlTrack url"? . . . Where do I find it?
Offline
Hi,
You should have uploaded all the crawltrack files on your server; if for example you have put these files in a folder named crawltrack, your crawltrack url will be :
www.example.com/crawltrack
(replacing www.example.com by your site url).
If you are using a subdomain named crawltrack, your crawltrack url will be:
crawltrack.example.com
(replacing www.example.com by your site url).
Offline
Thank you Jidébé . . .
With your information I got set up . . .
Now I just want to know, what is the fastest way to access the stats graph? . . .
Offline
Hi,
I not really sur to understand your question, you want to access to the graph outside CrawlTrack?
Offline
What password do I use?
My server password does not get me into CrawlTrack . . .
Offline
You should use the administrator login and password you enter when you have created the administrator account during installation.
Offline
I forgot the password I entered when I created the administrator account during installation . . . Is there anyway I can retreive it? . . .
Offline
Hello,
Unfortunatly there no way to retrieve your password. The best way is to suppress the configconnect.php file (in the include folder) and to restart the installation. You will have to enter a new website, but you will be able to suppress it later.
Offline
I will increase that in the next release.
Offline
Edgepark Medical |
SwipeAuctions |