[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-24 Thread Hybride
 You seem to have two different problems. I tried to access 
 addresshttp://147.126.65.92/adminand got the You don't have permission to
 access /admin/default/index on this server. error message, this sounds
 like the admin application is not installed or your webserver is not
 allowed to read the /applications/admin folder. Look at your file
 permissions on /applications folder.

 If webserver could access the applications/admin folder you should get a
 Admin is disabled because insecure channel messages.

I received that error when I tried to disable SSL admin access, but
not otherwise. I have 755 permissions on the /applications folder.

 As admin should be accessed via https I tried to 
 accesshttps://147.126.65.92/adminbut could not get a response from your
 server. Smells like a firewall issue. Port 443 should be open.

I've opened up Port 443, and now I get this issue logging into the
https:/admin:

Internal error
Ticket issued: admin/
76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

For some reason, it's just the admin folder now. I tried accessing the
site using https:// and it works normally, it's only the
administration folders I have an issue with now.


[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-24 Thread mdipierro
Open this file with an editor

/home/www-data/web2py/applications/admin/errors/
76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

The traceback is the end of the file.

On Nov 24, 11:06 am, Hybride mshybr...@gmail.com wrote:
  You seem to have two different problems. I tried to access 
  addresshttp://147.126.65.92/adminandgot the You don't have permission to
  access /admin/default/index on this server. error message, this sounds
  like the admin application is not installed or your webserver is not
  allowed to read the /applications/admin folder. Look at your file
  permissions on /applications folder.

  If webserver could access the applications/admin folder you should get a
  Admin is disabled because insecure channel messages.

 I received that error when I tried to disable SSL admin access, but
 not otherwise. I have 755 permissions on the /applications folder.

  As admin should be accessed via https I tried to 
  accesshttps://147.126.65.92/adminbutcould not get a response from your
  server. Smells like a firewall issue. Port 443 should be open.

 I've opened up Port 443, and now I get this issue logging into the
 https:/admin:

 Internal error
 Ticket issued: admin/
 76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

 For some reason, it's just the admin folder now. I tried accessing the
 site using https:// and it works normally, it's only the
 administration folders I have an issue with now.


Re: [web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-24 Thread Kenneth Lundström
Are the group and ownership of the files in /applicatios/admin correct. 
Could you send a copy of the error file as I can´t access it from 
outside without a password and not when admin is no working.



Kenneth


Open this file with an editor

/home/www-data/web2py/applications/admin/errors/
76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

The traceback is the end of the file.

On Nov 24, 11:06 am, Hybridemshybr...@gmail.com  wrote:

You seem to have two different problems. I tried to access 
addresshttp://147.126.65.92/adminandgot the You don't have permission to
access /admin/default/index on this server. error message, this sounds
like the admin application is not installed or your webserver is not
allowed to read the /applications/admin folder. Look at your file
permissions on /applications folder.
If webserver could access the applications/admin folder you should get a
Admin is disabled because insecure channel messages.

I received that error when I tried to disable SSL admin access, but
not otherwise. I have 755 permissions on the /applications folder.


As admin should be accessed via https I tried to 
accesshttps://147.126.65.92/adminbutcould not get a response from your
server. Smells like a firewall issue. Port 443 should be open.

I've opened up Port 443, and now I get this issue logging into the
https:/admin:

Internal error
Ticket issued: admin/
76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

For some reason, it's just the admin folder now. I tried accessing the
site using https:// and it works normally, it's only the
administration folders I have an issue with now.




[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-24 Thread Hybride
S'Traceback (most recent call last):\n  File gluon/main.py, line
453, in wsgibase\nsession._try_store_on_disk(request, response)\n
File gluon/globals.py, line 381, in _try_store_on_disk\n
response.session_file = open(response.session_filename, \'wb\')
\nIOError: [Errno 13] Permission denied: \'/home/www-data/web2py/
applications/admin/sessions/76-192-187-2-63112711-350d-4c4e-
bdf3-9e5127a27992\'\n'
p201
s.

Is what was in the end of the file.

On Nov 24, 11:17 am, mdipierro mdipie...@cs.depaul.edu wrote:
 Open this file with an editor

 /home/www-data/web2py/applications/admin/errors/
 76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

 The traceback is the end of the file.

 On Nov 24, 11:06 am, Hybride mshybr...@gmail.com wrote:



   You seem to have two different problems. I tried to access 
   addresshttp://147.126.65.92/adminandgotthe You don't have permission to
   access /admin/default/index on this server. error message, this sounds
   like the admin application is not installed or your webserver is not
   allowed to read the /applications/admin folder. Look at your file
   permissions on /applications folder.

   If webserver could access the applications/admin folder you should get a
   Admin is disabled because insecure channel messages.

  I received that error when I tried to disable SSL admin access, but
  not otherwise. I have 755 permissions on the /applications folder.

   As admin should be accessed via https I tried to 
   accesshttps://147.126.65.92/adminbutcouldnot get a response from your
   server. Smells like a firewall issue. Port 443 should be open.

  I've opened up Port 443, and now I get this issue logging into the
  https:/admin:

  Internal error
  Ticket issued: admin/
  76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

  For some reason, it's just the admin folder now. I tried accessing the
  site using https:// and it works normally, it's only the
  administration folders I have an issue with now.


[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-24 Thread mdipierro
You do not have write permissions in the application admin/sessions
folder.

Massimo

On Nov 24, 12:54 pm, Hybride mshybr...@gmail.com wrote:
 S'Traceback (most recent call last):\n  File gluon/main.py, line
 453, in wsgibase\n    session._try_store_on_disk(request, response)\n
 File gluon/globals.py, line 381, in _try_store_on_disk\n
 response.session_file = open(response.session_filename, \'wb\')
 \nIOError: [Errno 13] Permission denied: \'/home/www-data/web2py/
 applications/admin/sessions/76-192-187-2-63112711-350d-4c4e-
 bdf3-9e5127a27992\'\n'
 p201
 s.

 Is what was in the end of the file.

 On Nov 24, 11:17 am, mdipierro mdipie...@cs.depaul.edu wrote:

  Open this file with an editor

  /home/www-data/web2py/applications/admin/errors/
  76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

  The traceback is the end of the file.

  On Nov 24, 11:06 am, Hybride mshybr...@gmail.com wrote:

You seem to have two different problems. I tried to access 
addresshttp://147.126.65.92/adminandgottheYou don't have permission to
access /admin/default/index on this server. error message, this sounds
like the admin application is not installed or your webserver is not
allowed to read the /applications/admin folder. Look at your file
permissions on /applications folder.

If webserver could access the applications/admin folder you should get a
Admin is disabled because insecure channel messages.

   I received that error when I tried to disable SSL admin access, but
   not otherwise. I have 755 permissions on the /applications folder.

As admin should be accessed via https I tried to 
accesshttps://147.126.65.92/adminbutcouldnotget a response from your
server. Smells like a firewall issue. Port 443 should be open.

   I've opened up Port 443, and now I get this issue logging into the
   https:/admin:

   Internal error
   Ticket issued: admin/
   76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

   For some reason, it's just the admin folder now. I tried accessing the
   site using https:// and it works normally, it's only the
   administration folders I have an issue with now.




[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-24 Thread Hybride
Holy hell, that worked.

Thank you so much for all of your guys help.

On Nov 24, 12:55 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 You do not have write permissions in the application admin/sessions
 folder.

 Massimo

 On Nov 24, 12:54 pm, Hybride mshybr...@gmail.com wrote:



  S'Traceback (most recent call last):\n  File gluon/main.py, line
  453, in wsgibase\n    session._try_store_on_disk(request, response)\n
  File gluon/globals.py, line 381, in _try_store_on_disk\n
  response.session_file = open(response.session_filename, \'wb\')
  \nIOError: [Errno 13] Permission denied: \'/home/www-data/web2py/
  applications/admin/sessions/76-192-187-2-63112711-350d-4c4e-
  bdf3-9e5127a27992\'\n'
  p201
  s.

  Is what was in the end of the file.

  On Nov 24, 11:17 am, mdipierro mdipie...@cs.depaul.edu wrote:

   Open this file with an editor

   /home/www-data/web2py/applications/admin/errors/
   76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

   The traceback is the end of the file.

   On Nov 24, 11:06 am, Hybride mshybr...@gmail.com wrote:

 You seem to have two different problems. I tried to access 
 addresshttp://147.126.65.92/adminandgottheYou don't have permission 
 to
 access /admin/default/index on this server. error message, this 
 sounds
 like the admin application is not installed or your webserver is not
 allowed to read the /applications/admin folder. Look at your file
 permissions on /applications folder.

 If webserver could access the applications/admin folder you should 
 get a
 Admin is disabled because insecure channel messages.

I received that error when I tried to disable SSL admin access, but
not otherwise. I have 755 permissions on the /applications folder.

 As admin should be accessed via https I tried to 
 accesshttps://147.126.65.92/adminbutcouldnotgeta response from your
 server. Smells like a firewall issue. Port 443 should be open.

I've opened up Port 443, and now I get this issue logging into the
https:/admin:

Internal error
Ticket issued: admin/
76.192.187.2.2010-11-24.10-52-27.f3c370f6-8a25-4dc6-b496-ae1178050333

For some reason, it's just the admin folder now. I tried accessing the
site using https:// and it works normally, it's only the
administration folders I have an issue with now.


Re: [web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-23 Thread Kenneth Lundström
I´d say that warning messing in your log is not your problem. It should 
work even if you get those warnings. At least for me it does.


Your are receiving that warning because your certifcate is for domain 
pypy.domain.com but in your configuration your are talking about an 
ip-address.


What kind of a problems do you have?


Kenneth


I ran into a problem with setting up SSL too which turned out to be
caused by an ssl.conf file that was overriding the web2py.conf
settings. I had similar messages in error.log, but as the [warn]
indicates, they do not seem to be fatal errors. The errors I found
were more like File does not exist.

On Nov 22, 4:38 pm, Hybridemshybr...@gmail.com  wrote:

Hi everyone,

I have my head wrapped up with trying to set up SSL for web2py. I
used, at first, the initial one-step deployment available for Ubuntu/
debian servers. The SSL was the issue then, so I went through the
entire step-by-step available on the official book. I still can't seem
to get SSL to work. I use an ubuntu 8.08 virtual machine, apache +
mod_wsgi.

This is the results of uname: pypy.domain.com 2.6.24-21-xen #1 SMP
x86_64 GNU/Linux
I have Listen 80 and Listen 443 in my ports.conf

And this is my web2py:
VirtualHost *:80
   ServerNamehttp://147.126.65.92/
   #WSGIDaemonProcess web2py user=www-data group=www-data \
 #   display-name=%{GROUP}
   WSGIProcessGroup web2py
   WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py

   Directory /home/www-data/web2py
 AllowOverride None
 Order Allow,Deny
 Deny from all
 Files wsgihandler.py
   Allow from all
 /Files
   /Directory

   AliasMatch ^/([^/]+)/static/(.*) \
/home/www-data/web2py/applications/$1/static/$2
   Directory /home/www-data/web2py/applications/*/static/
 Order Allow,Deny
 Allow from all
   /Directory

   Location /admin
   Deny from all
   /Location

   LocationMatch ^/([^/]+)/appadmin
   Deny from all
   /LocationMatch

   CustomLog /private/var/log/apache2/access.log common
   ErrorLog /private/var/log/apache2/error.log
/VirtualHost

VirtualHost *:443
   ServerNamehttp://147.126.65.92/
   SSLEngine on

   SSLCertificateFile /etc/apache2/ssl/server.crt
   SSLCertificateKeyFile /etc/apache2/ssl/server.key

   SSLProtocol -all +TLSv1 +SSLv3
   SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM

   WSGIProcessGroup web2py

   WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py

   Directory /home/www-data/web2py
 AllowOverride None
 Order Allow,Deny
 Deny from all
 Files wsgihandler.py
   Allow from all
 /Files
   /Directory

   AliasMatch ^/([^/]+)/static/(.*) \
 /home/www-data/web2py/applications/$1/static/$2

   Directory /home/www-data/web2py/applications/*/static/
 Order Allow,Deny
 Allow from all
   /Directory

   CustomLog /private/var/log/apache2/access.log common
   ErrorLog /private/var/log/apache2/error.log

   SSLVerifyClient none
   SSLProxyEngine off

   IfModule mime.c
   AddType application/x-x509-ca-cert  .crt
   AddType application/x-pkcs7-crl .crl
   /IfModule

/VirtualHost

The result of my error.log is:

[Mon Nov 22 18:23:25 2010] [warn] RSA server certificate CommonName
(CN) `pypy.domain.com' does NOT match server name!?

Whether this is the common name or the IP name. Any and all help
appreciated.




[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-23 Thread Hybride
 What kind of a problems do you have?

It's the standard You don't have permission to access /admin/default/
index on this server. I know it's silly, and I've went through most
of the files available on how to supposedly fix this, but I can't seem
to get it to work.

 Your are receiving that warning because your certifcate is for domain
 pypy.domain.com but in your configuration your are talking about an
 ip-address.

This is a university computer, so I actually don't have a real domain
name, it's only IP-based (I can't access the domain name through a
browser, but I can access the IP, which is http://147.126.65.92/).
Even if I put the certificate for pypy.domain.com, I come up with the
certificate error. I thought it might be an issue, that's why I posted
it.

On Nov 23, 2:07 am, Kenneth Lundström kenneth.t.lundst...@gmail.com
wrote:
 I d say that warning messing in your log is not your problem. It should
 work even if you get those warnings. At least for me it does.

 Your are receiving that warning because your certifcate is for domain
 pypy.domain.com but in your configuration your are talking about an
 ip-address.

 What kind of a problems do you have?

 Kenneth

  I ran into a problem with setting up SSL too which turned out to be
  caused by an ssl.conf file that was overriding the web2py.conf
  settings. I had similar messages in error.log, but as the [warn]
  indicates, they do not seem to be fatal errors. The errors I found
  were more like File does not exist.



Re: [web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-23 Thread Kenneth Lundström
 It's the standard You don't have permission to access 
/admin/default/  index on this server. I know it's silly, and I've went 
through most of the files available on how to supposedly fix this, but I 
can't seem to get it to work.


You seem to have two different problems. I tried to access address 
http://147.126.65.92/admin and got the You don't have permission to 
access /admin/default/index on this server. error message, this sounds 
like the admin application is not installed or your webserver is not 
allowed to read the /applications/admin folder. Look at your file 
permissions on /applications folder.


If webserver could access the applications/admin folder you should get a 
Admin is disabled because insecure channel messages.



As admin should be accessed via https I tried to access 
https://147.126.65.92/admin but could not get a response from your 
server. Smells like a firewall issue. Port 443 should be open.



Kenneth


Your are receiving that warning because your certifcate is for domain
pypy.domain.com but in your configuration your are talking about an
ip-address.

This is a university computer, so I actually don't have a real domain
name, it's only IP-based (I can't access the domain name through a
browser, but I can access the IP, which is http://147.126.65.92/).
Even if I put the certificate for pypy.domain.com, I come up with the
certificate error. I thought it might be an issue, that's why I posted
it.

On Nov 23, 2:07 am, Kenneth Lundströmkenneth.t.lundst...@gmail.com
wrote:

I d say that warning messing in your log is not your problem. It should
work even if you get those warnings. At least for me it does.

Your are receiving that warning because your certifcate is for domain
pypy.domain.com but in your configuration your are talking about an
ip-address.

What kind of a problems do you have?

Kenneth


I ran into a problem with setting up SSL too which turned out to be
caused by an ssl.conf file that was overriding the web2py.conf
settings. I had similar messages in error.log, but as the [warn]
indicates, they do not seem to be fatal errors. The errors I found
were more like File does not exist.




[web2py] Re: web2py SSL + Apache + mod_wsgi issues on Ubuntu 8.08 VM machine

2010-11-22 Thread G
I ran into a problem with setting up SSL too which turned out to be
caused by an ssl.conf file that was overriding the web2py.conf
settings. I had similar messages in error.log, but as the [warn]
indicates, they do not seem to be fatal errors. The errors I found
were more like File does not exist.

On Nov 22, 4:38 pm, Hybride mshybr...@gmail.com wrote:
 Hi everyone,

 I have my head wrapped up with trying to set up SSL for web2py. I
 used, at first, the initial one-step deployment available for Ubuntu/
 debian servers. The SSL was the issue then, so I went through the
 entire step-by-step available on the official book. I still can't seem
 to get SSL to work. I use an ubuntu 8.08 virtual machine, apache +
 mod_wsgi.

 This is the results of uname: pypy.domain.com 2.6.24-21-xen #1 SMP
 x86_64 GNU/Linux
 I have Listen 80 and Listen 443 in my ports.conf

 And this is my web2py:
 VirtualHost *:80
   ServerNamehttp://147.126.65.92/
   #WSGIDaemonProcess web2py user=www-data group=www-data \
         #                       display-name=%{GROUP}
   WSGIProcessGroup web2py
   WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py

   Directory /home/www-data/web2py
     AllowOverride None
     Order Allow,Deny
     Deny from all
     Files wsgihandler.py
       Allow from all
     /Files
   /Directory

   AliasMatch ^/([^/]+)/static/(.*) \
            /home/www-data/web2py/applications/$1/static/$2
   Directory /home/www-data/web2py/applications/*/static/
     Order Allow,Deny
     Allow from all
   /Directory

   Location /admin
   Deny from all
   /Location

   LocationMatch ^/([^/]+)/appadmin
   Deny from all
   /LocationMatch

   CustomLog /private/var/log/apache2/access.log common
   ErrorLog /private/var/log/apache2/error.log
 /VirtualHost

 VirtualHost *:443
   ServerNamehttp://147.126.65.92/
   SSLEngine on

   SSLCertificateFile /etc/apache2/ssl/server.crt
   SSLCertificateKeyFile /etc/apache2/ssl/server.key

   SSLProtocol -all +TLSv1 +SSLv3
   SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM

   WSGIProcessGroup web2py

   WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py

   Directory /home/www-data/web2py
     AllowOverride None
     Order Allow,Deny
     Deny from all
     Files wsgihandler.py
       Allow from all
     /Files
   /Directory

   AliasMatch ^/([^/]+)/static/(.*) \
         /home/www-data/web2py/applications/$1/static/$2

   Directory /home/www-data/web2py/applications/*/static/
     Order Allow,Deny
     Allow from all
   /Directory

   CustomLog /private/var/log/apache2/access.log common
   ErrorLog /private/var/log/apache2/error.log

   SSLVerifyClient none
   SSLProxyEngine off

   IfModule mime.c
       AddType application/x-x509-ca-cert      .crt
       AddType application/x-pkcs7-crl         .crl
   /IfModule

 /VirtualHost

 The result of my error.log is:

 [Mon Nov 22 18:23:25 2010] [warn] RSA server certificate CommonName
 (CN) `pypy.domain.com' does NOT match server name!?

 Whether this is the common name or the IP name. Any and all help
 appreciated.