You don't have permission to access /web.py on this server.
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/vX3nCsfwJeMJ.
For more options, visit https://groups.google.com/groups/opt_out.
Prasad,You need to give read + write + execute permissions on the public folder.Please make sure you have added all the apache http settings correctly
On 28-Nov-2012, at 10:37 AM, Prasad Bandale <prasad....@gmail.com> wrote:
HelloAs per below given link. I have done all the settings. Installation is completed successfully.But still I m not able to run the ERPNext. following error occurred.Forbidden
You don't have permission to access /web.py on this server.
Apache/2.2.15 (CentOS) Server at 172.100.1.31 Port 8080Please help me.
Warm Regards,
Prasad Bandale--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+unsub...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ZhWXLbJ7PoAJ.
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/khzhlsxbG6AJ.
<type 'exceptions.ImportError'> | Python 2.6.6: /usr/bin/python Sat Dec 22 12:41:50 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/html/erpnext/public/web.py in () |
44 return website.utils.render(webnotes.form_dict.get('page')) |
45 |
46 if __name__=="__main__": |
47 init() |
48 respond() |
respond = <function respond> |
/var/www/html/erpnext/public/web.py in respond() |
42 import webnotes |
43 import website.utils |
44 return website.utils.render(webnotes.form_dict.get('page')) |
45 |
46 if __name__=="__main__": |
website = <module 'website' from '../app/website/__init__.pyc'>, website.utils = <module 'website.utils' from '../app/website/utils.pyc'>, website.utils.render = <function render>, webnotes = <module 'webnotes' from '../lib/webnotes/__init__.pyc'>, webnotes.form_dict = {}, webnotes.form_dict.get = <built-in method get of _dict object> |
/var/www/html/erpnext/app/website/utils.py in render(page_name=None) |
49 html = get_html('index') |
50 except Exception, e: |
51 html = get_html('error') |
52 |
53 from webnotes.handler import eprint, print_zip |
html undefined, global get_html = <function get_html> |
/var/www/html/erpnext/app/website/utils.py in get_html(page_name=u'error') |
67 |
68 if not html: |
69 html = load_into_cache(page_name) |
70 from_cache = False |
71 |
html = None, global load_into_cache = <function load_into_cache>, page_name = u'error' |
/var/www/html/erpnext/app/website/utils.py in load_into_cache(page_name=u'error') |
114 if not args: |
115 return "" |
116 html = build_html(args) |
117 webnotes.cache().set_value("page:" + page_name, html) |
118 return html |
html undefined, global build_html = <function build_html>, args = {u'brand': u'ERPNext', u'copyright': None, u'favicon': None, u'footer_items': [], u'int': <type 'int'>, u'name': u'error', u'template': u'pages/error.html', u'top_bar_items': []} |
/var/www/html/erpnext/app/website/utils.py in build_html(args={u'brand': u'ERPNext', u'copyright': None, u'favicon': None, u'footer_items': [], u'int': <type 'int'>, u'name': u'error', u'template': u'pages/error.html', u'top_bar_items': []}) |
119 |
120 def build_html(args): |
121 from jinja2 import Environment, FileSystemLoader |
122 |
123 templates_path = os.path.join(os.path.dirname(conf.__file__), |
jinja2 undefined, Environment undefined, FileSystemLoader undefined |
<type 'exceptions.ImportError'>: No module named jinja2
args =
('No module named jinja2',)
message =
'No module named jinja2'
---------------------------------------------------------------------------------------------------------------------------------------------------------------
httpd.conf file settings as follows
<VirtualHost *:8080>
DocumentRoot "/var/www/html/erpnext/public"
ServerName localhost
AddHandler cgi-script .cgi .xml .py
<Directory "/var/www/html/erpnext/public">
# 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
</Directory>
</VirtualHost>
--
Prasad
http://prasadbandale.blogspot.com/
Thanks. now it is working. but I m getting 2 errors
1. while login it is giving error " memcached is not working / stopped. Please start memcached for best results."
2. while setting up Email and Notifications it is giving error "Invalid Outgoing Mail Server or Port. Please rectify and try again."
<memcached error.png>
<smtp error.png>
To check if memcache daemon is working,
Try running from terminal
ps aux | grep memcached
Also, go to setup / email settings and save them. If it doesn't throw error, then the email settings are correct otherwise not.
Thanks
Anand.