updated install instructions.
This commit is contained in:
parent
a5eb556ebb
commit
d588b554bf
2 changed files with 45 additions and 24 deletions
35
INSTALL
35
INSTALL
|
@ -14,5 +14,36 @@ CREATE USER name PASSWORD 'password';
|
|||
ALTER USER name CREATEUSER;
|
||||
#now change the user and password variables in the script
|
||||
|
||||
webgouser
|
||||
webgopassword
|
||||
#default values at beginning of psql.py:
|
||||
#webgouser
|
||||
#webgopassword
|
||||
|
||||
----------------- configuring apache2 -----------------------
|
||||
|
||||
|
||||
Steps to do to get a runnable version:
|
||||
1. apt-get install apache2 libapache2-mod-python
|
||||
2. create /etc/apache2/conf.d/webgo.conf with content:
|
||||
|
||||
Alias /webgo /home/mtsrc/daten/projekte/webgo/
|
||||
|
||||
<DirectoryMatch /home/mtsrc/daten/projekte/webgo/>
|
||||
|
||||
AddHandler mod_python .py
|
||||
PythonHandler main
|
||||
PythonDebug On
|
||||
|
||||
|
||||
</DirectoryMatch>
|
||||
|
||||
|
||||
|
||||
You should replace the directory settings for optimal results ;>
|
||||
|
||||
3. set ownership of webgo directory to ownership of the web server
|
||||
-- since the use of mod_python this should not be needed?
|
||||
--------------------------------------------------------------
|
||||
|
||||
this should be all.
|
||||
try visiting http://localhost/webgo.main.py with a web browser.
|
||||
Errors get written to /tmp/cgi_errors.log and to the webpage.
|
Loading…
Add table
Add a link
Reference in a new issue