masland
08-23-2005, 05:30 PM
I wrote up some instructions for using the PostgreSQL graphing tool... I hope they make sense.. PLEASE reply with any suggestions or modifications to the instructions. I'll update them for everyone.
=============================
Install PostgreSQL 8.0
Follow the instructions here http://www.pokertracker.com/pgsqlinstall.html to install PostgreSQL 8.0
Convert Database
After PostgreSQL is installed, in Poker Tracker, open the Utilities/PostgreSQL Settings window and enter your user name and password information.
Utilities -> PostgreSQL Settings…
Next, convert your Access database(s) to PostgreSQL.
Utilities -> Convert Database…
PLEASE NOTE: The conversion process could take a while depending on the size of your Access database.
Install Apache 2
Download Apache 2 and install it. It can be downloaded here http://httpd.apache.org/download.cgi When installing it, keep the default settings and enter whatever you like for the domain name, email address, and other information. Once Apache is installed, you should see a new icon on your system tray. This icon shows the status of your Apache server, and allows you to quickly stop, start, and restart the server as needed.
Assuming you kept the default Apache settings go to the following directory:
C:\Program Files\Apache Group\Apache2\htdocs
This is your web root directory. Enter 127.0.0.1 into your web browser, and you should see a page that says the following:
If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.
________________________________________
Seeing this instead of the website you expected?
This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.
________________________________________
The Apache documentation has been included with this distribution.
You are free to use the image below on an Apache-powered web server. Thanks for using Apache!
Install PHP
Download PHP 4.4 from here (http://www.php.net/get/php-4.4.0-Win32.zip/from/a/mirror) and install it using the default settings. It will install to c:\PHP by default. When asked what type of webserver you will be using, select Apache 2. The installation will state that it failed to configure itself in Apache, which is fine.
Open C:\PHP\sapi and copy the file php4apache2.dll to c:\PHP
Open C:\Program Files\Apache Group\Apache2\conf\httpd.conf
Add the following lines to the top of the file, httpd.conf
LoadModule php4_module "c:/php/php4apache2.dll"
AddType application/x-httpd-php .php
Save the file, close it and restart the apache server. If you receive any errors restarting the server, something is wrong with the lines you just added to the httpd.conf
PHP should now be working. To test it, create a file named test.php in the folder: C:\Program Files\Apache Group\Apache2\htdocs
Cut and paste the following into test.php:
<?php
phpinfo();
?>
Save it, close the file, and type: http://127.0.0.1/test.php
If the page works, you have now gotten PHP installed.
Enable GD and PGSQL
To enable GD and PGSQL open c:\windows\php.ini
Search for the line:
extension_dir = "./"
change it to:
extension_dir = "c:/php/extensions"
Now, search for the line:
;extension=php_pgsql.dll
change it to:
extension=php_pgsql.dll
Now, search for the line:
;extension=php_gd2.dll
change it to:
extension=php_gd2.dll
Save php.ini, close the file, restart the Apache server and run http://127.0.0.1/test.php
If you search test.php for GD and PGSQL you should see info about both of them. If this works , congratulations, you’ve gotten GD and PGSQL enabled.
Download & extract jbgraph
Download jbgraph package from http://www.aditus.nu/jpgraph/index.php and extract the files to a folder named jbgraph. Now move the jbgraph folder to C:\Program Files\Apache Group\Apache2\htdocs\
You should now have paths like this….
C:\Program Files\Apache Group\Apache2\htdocs\jpgraph\src
Configure php graphing script
Download the php graph generation file from http://www.hiddenroomgraphics.com/ptgraphphp/ptgraphphp-0.14.phps
The best way to do this is simply open the link, select all, copy, create a new file in
C:\Program Files\Apache Group\Apache2\htdocs named ptgraph.php and paste the info into that file.
Change the info in line 7 of ptgraph.php to the following:
$conn = pg_connect("dbname=xyz port=5432 user=postgres password=123");
Substitute xyz for the name of your pokertracker db, and insert the username/password that you configured earlier in pokertracker. Now, check if the graph works by entering
http://127.0.0.1/ptgraph.php
if anyone has problems or suggestions for these instructions….feel free to add to this thread and I will update it. Thanks.
=============================
Install PostgreSQL 8.0
Follow the instructions here http://www.pokertracker.com/pgsqlinstall.html to install PostgreSQL 8.0
Convert Database
After PostgreSQL is installed, in Poker Tracker, open the Utilities/PostgreSQL Settings window and enter your user name and password information.
Utilities -> PostgreSQL Settings…
Next, convert your Access database(s) to PostgreSQL.
Utilities -> Convert Database…
PLEASE NOTE: The conversion process could take a while depending on the size of your Access database.
Install Apache 2
Download Apache 2 and install it. It can be downloaded here http://httpd.apache.org/download.cgi When installing it, keep the default settings and enter whatever you like for the domain name, email address, and other information. Once Apache is installed, you should see a new icon on your system tray. This icon shows the status of your Apache server, and allows you to quickly stop, start, and restart the server as needed.
Assuming you kept the default Apache settings go to the following directory:
C:\Program Files\Apache Group\Apache2\htdocs
This is your web root directory. Enter 127.0.0.1 into your web browser, and you should see a page that says the following:
If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.
________________________________________
Seeing this instead of the website you expected?
This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.
________________________________________
The Apache documentation has been included with this distribution.
You are free to use the image below on an Apache-powered web server. Thanks for using Apache!
Install PHP
Download PHP 4.4 from here (http://www.php.net/get/php-4.4.0-Win32.zip/from/a/mirror) and install it using the default settings. It will install to c:\PHP by default. When asked what type of webserver you will be using, select Apache 2. The installation will state that it failed to configure itself in Apache, which is fine.
Open C:\PHP\sapi and copy the file php4apache2.dll to c:\PHP
Open C:\Program Files\Apache Group\Apache2\conf\httpd.conf
Add the following lines to the top of the file, httpd.conf
LoadModule php4_module "c:/php/php4apache2.dll"
AddType application/x-httpd-php .php
Save the file, close it and restart the apache server. If you receive any errors restarting the server, something is wrong with the lines you just added to the httpd.conf
PHP should now be working. To test it, create a file named test.php in the folder: C:\Program Files\Apache Group\Apache2\htdocs
Cut and paste the following into test.php:
<?php
phpinfo();
?>
Save it, close the file, and type: http://127.0.0.1/test.php
If the page works, you have now gotten PHP installed.
Enable GD and PGSQL
To enable GD and PGSQL open c:\windows\php.ini
Search for the line:
extension_dir = "./"
change it to:
extension_dir = "c:/php/extensions"
Now, search for the line:
;extension=php_pgsql.dll
change it to:
extension=php_pgsql.dll
Now, search for the line:
;extension=php_gd2.dll
change it to:
extension=php_gd2.dll
Save php.ini, close the file, restart the Apache server and run http://127.0.0.1/test.php
If you search test.php for GD and PGSQL you should see info about both of them. If this works , congratulations, you’ve gotten GD and PGSQL enabled.
Download & extract jbgraph
Download jbgraph package from http://www.aditus.nu/jpgraph/index.php and extract the files to a folder named jbgraph. Now move the jbgraph folder to C:\Program Files\Apache Group\Apache2\htdocs\
You should now have paths like this….
C:\Program Files\Apache Group\Apache2\htdocs\jpgraph\src
Configure php graphing script
Download the php graph generation file from http://www.hiddenroomgraphics.com/ptgraphphp/ptgraphphp-0.14.phps
The best way to do this is simply open the link, select all, copy, create a new file in
C:\Program Files\Apache Group\Apache2\htdocs named ptgraph.php and paste the info into that file.
Change the info in line 7 of ptgraph.php to the following:
$conn = pg_connect("dbname=xyz port=5432 user=postgres password=123");
Substitute xyz for the name of your pokertracker db, and insert the username/password that you configured earlier in pokertracker. Now, check if the graph works by entering
http://127.0.0.1/ptgraph.php
if anyone has problems or suggestions for these instructions….feel free to add to this thread and I will update it. Thanks.