From 54e79bbfa72744ab14811da89274dc7874c33011 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 12 Jul 2012 19:50:53 +0530 Subject: [PATCH] updates in install_erpnext.py --- install_erpnext.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/install_erpnext.py b/install_erpnext.py index f4a9597797..abd4f83213 100644 --- a/install_erpnext.py +++ b/install_erpnext.py @@ -109,11 +109,56 @@ os.chdir(os.path.join(erpnext_path, 'lib')) os.system("git config core.filemode false") steps_remaining = """ +Notes: +------ + +sample apache conf file +#----------------------------------------------------------- +SetEnv PYTHON_EGG_CACHE /var/www + +# you can change 99 to any other port + +Listen 99 +NameVirtualHost *:99 + + ServerName localhost + DocumentRoot {path to erpnext's folder}/public + AddHandler cgi-script .cgi .xml .py + + + # directory specific options + Options +Indexes +FollowSymLinks +ExecCGI + + # directory's index file + DirectoryIndex web.py + + # rewrite rule + RewriteEngine on + + # condition 1: + # ignore login-page.html, app.html, blank.html, unsupported.html + RewriteCond %{REQUEST_URI} ^((?!app\.html|blank\.html|unsupported\.html).)*$ + + # condition 2: if there are no slashes + # and file is .html or does not containt a . + RewriteCond %{REQUEST_URI} ^(?!.+/)((.+\.html)|([^.]+))$ + + # rewrite if both of the above conditions are true + RewriteRule ^(.+)$ web.py?page=$1 [NC,L] + + AllowOverride all + Order Allow,Deny + Allow from all + + +#----------------------------------------------------------- + To Do: * Configure apache/http conf file to point to public folder * chown recursively all files in your folder to apache user * login using: user="Administrator" and password="admin" + """ print steps_remaining