3
edits
(Add instructions for windows) |
|||
| Line 106: | Line 106: | ||
# visit http://localhost/~username/graphs-cvs/graph.html | # visit http://localhost/~username/graphs-cvs/graph.html | ||
= Windows installation = | |||
Download apache 2.2 from http://httpd.apache.org/ and install it | |||
Network Domain: localhost | |||
Server Name: localhost | |||
Admin Email: (any email) | |||
Download and install mysql | |||
http://dev.mysql.com/downloads/mysql/ | |||
"root" user should have empty password | |||
Download and install MySQLdb | |||
http://sourceforge.net/projects/mysql-python/ | |||
Pre-compiled binaries: | |||
http://stackoverflow.com/questions/645943/mysql-for-python-in-windows | |||
Download and install pysqlite2 | |||
http://code.google.com/p/pysqlite/ | |||
In %ProgramFiles%\Apache Software Foundation\Apache2.2\conf\httpd.conf | |||
- Un-comment "LoadModule rewrite_module modules/mod_rewrite.so" | |||
- Un-comment "LoadModule deflate_module modules/mod_deflate.so" | |||
- Un-comment "AddHandler cgi-script .cgi" | |||
- Add "ScriptInterpreterSource Registry-Strict" (e.g. after the AddHandler) | |||
- Search for "htdocs" and change the path to point to graphs-hg-root both places. | |||
- In the <directory> section | |||
- Change "AllowOverride" from "None" to "All" | |||
- Add "AddOutputFilterByType DEFLATE text/html text/plain text/xml" | |||
- In the windows registry: | |||
- Add a "HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command"-key with the default value '"C:\Program Files\Python26\python.exe" -u' | |||
- Restart apache (left click icon in tray and choose "Apache2.2"->"Restart") | |||
echo create database graphserver; grant all privileges on graphserver.* to o@'localhost' identified by 'o'; | "%ProgramFiles%\MySQL\MySQL Server 5.1\bin\mysql.exe" -uroot | |||
"%ProgramFiles%\MySQL\MySQL Server 5.1\bin\mysql.exe" -uroot graphserver < schema.sql | |||
"%ProgramFiles%\MySQL\MySQL Server 5.1\bin\mysql.exe" -uroot graphserver < data.sql | |||
"%ProgramFiles%\MySQL\MySQL Server 5.1\bin\mysql.exe" -uroot graphserver < pages_table.sql | |||
edits