On Mar 21, 12:43 am, EduardWagner <[email protected]> wrote:
> Hi,
>
> so, we changed the config like that
>
> /etc/apache2/httpd.conf:
> ----------
> Alias /tiddlyweb/static/ "/proj/tiddlyweb/apache/static/"
> WSGIDaemonProcess telesto.ka.tup.com user=tup processes=2 threads=15
> WSGIProcessGroup telesto.ka.tup.com
> WSGIScriptAlias /tiddlyweb /proj/tiddlyweb/apache/apache.py
>
> <Directory "/proj/tiddlyweb/apache/static">
>     Options Indexes FollowSymlinks MultiViews
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>

Still no <Directory> container for '/proj/tiddlyweb/apache' saying
that Apache is permitted to use stuff in that directory. You only have
it for the static sub directory. If it is working without it, your
Apache configuration is else where opening up access to that part of
the file system. You perhaps really need to review the security of
your Apache configuration as you are possibly opening up a lot more
directories than you should. It is a common mistake to open up the
whole file system, which is not a good thing to do.

> -------------
> /proj/tiddlyweb/apache/tiddlywebconfig.py:
> ----------
> config = {
>         'css_uri': '/static/css/tiddlyweb.css',
>         'system_plugins': [],
>         'log_level': 'DEBUG',
>         'server_prefix': '/tiddlyweb',
>         'server_host': {
>             'scheme': 'http',
>             'host': 'telesto.ka.tup.com',
>             'port': '1030'
>             }
>         }
> ----------
>
> now the css works
> but we get an Internal Server Error
>
> at apache error_log
> ---------------
> [Fri Mar 20 14:07:21 2009] [error] [client 172.31.11.6] Premature end
> of script headers: apache.py, 
> referer:http://telesto.ka.tup.com:1030/tiddlyweb/recipes/work/tiddlers

This could be because the script is being run as CGI script. This can
occur if elsewhere in your Apache configuration you have:

  AddHandler cgi-script .py

This is why the mod_wsgi documentation always uses a .wsgi extension
rather than .py so as to avoid these sorts of problems.

Whether this is actually the case one can't easily tell because you
haven't set:

  LogLevel info

so extra debug from mod_wsgi not available. See:

  http://code.google.com/p/modwsgi/wiki/DebuggingTechniques

With that enabled, can then see if script is actually being handled by
mod_wsgi and into which process it is being loaded, embedded mode
process or daemon group process.

The error can also be caused by a crash in the mod_wsgi daemon
process.

> [Fri Mar 20 14:07:22 2009] [notice] child pid 4937 exit signal
> Segmentation fault (11)

For the causes of crashes in mod_wsgi see:

  http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions
  http://code.google.com/p/modwsgi/wiki/InstallationIssues
  http://code.google.com/p/modwsgi/wiki/ApplicationIssues

and search for stuff about core dumps, crashes and segmentation
faults. There could be a range of issues that could cause this, in the
main resulting from conflicts between versions of shared libraries
used.

Again, if had LogLevel set so extra debug information output, then
could be easily determined if that was a mod_wsgi daemon process that
crashed.

Graham

> --------------
> at tiddlyweb.log
> ---------------------
> 2009-03-20 14:20:09,384 DEBUG    TiddlyWeb starting up as mod_wsgi
> 2009-03-20 14:20:09,495 DEBUG    wrapping app with <class
> 'tiddlyweb.web.negotiate.Negotiate'>
> 2009-03-20 14:20:09,495 DEBUG    wrapping app with <class
> 'tiddlyweb.web.extractor.UserExtract'>
> 2009-03-20 14:20:09,495 DEBUG    wrapping app with <class
> 'tiddlyweb.web.wsgi.StoreSet'>
> 2009-03-20 14:20:09,495 DEBUG    wrapping app with <class
> 'tiddlyweb.web.query.Query'>
> 2009-03-20 14:20:09,496 DEBUG    wrapping app with <class
> 'tiddlyweb.web.serve.Environator'>
> 2009-03-20 14:20:09,496 DEBUG    wrapping app with <class
> 'tiddlyweb.web.serve.Configurator'>
> 2009-03-20 14:20:09,496 DEBUG    wrapping app with <class
> 'tiddlyweb.web.wsgi.HTMLPresenter'>
> 2009-03-20 14:20:09,496 DEBUG    wrapping app with <class
> 'tiddlyweb.web.wsgi.PermissionsExceptor'>
> 2009-03-20 14:20:09,497 DEBUG    wrapping app with <class
> 'tiddlyweb.web.http.HTTPExceptor'>
> 2009-03-20 14:20:09,497 DEBUG    wrapping app with <class
> 'tiddlyweb.web.wsgi.EncodeUTF8'>
> 2009-03-20 14:20:09,497 DEBUG    wrapping app with <class
> 'tiddlyweb.web.wsgi.SimpleLog'>
> 2009-03-20 14:20:09,498 DEBUG    starting "GET" request with uri "/
> tiddlyweb/", script_name "/tiddlyweb", path_info "/" and query ""
> 2009-03-20 14:20:09,525 DEBUG    negotiating for accept and extensions
> ['text/html', 'application/xhtml+xml', 'application/xml', '*/*', '*/
> *']
> 2009-03-20 14:20:09,526 INFO     172.31.11.6 - GUEST [20/Mar/
> 2009:14:20:09 ] "GET /tiddlyweb/ HTTP/1.1" 200 - "-" "Mozilla/5.0
> (Windows; U; Windows NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/
> 3.0.7"
> 2009-03-20 14:20:11,226 DEBUG    starting "GET" request with uri "/
> tiddlyweb/recipes", script_name "/tiddlyweb", path_info "/recipes" and
> query ""
> 2009-03-20 14:20:11,227 DEBUG    negotiating for accept and extensions
> ['text/html', 'application/xhtml+xml', 'application/xml', '*/*', '*/
> *']
> 2009-03-20 14:20:11,230 INFO     172.31.11.6 - GUEST [20/Mar/
> 2009:14:20:11 ] "GET /tiddlyweb/recipes HTTP/1.1" 200 - "http://
> telesto.ka.tup.com:1030/tiddlyweb/" "Mozilla/5.0 (Windows; U; Windows
> NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
> 2009-03-20 14:20:12,177 DEBUG    starting "GET" request with uri "/
> tiddlyweb/recipes/work", script_name "/tiddlyweb", path_info "/recipes/
> work" and query ""
> 2009-03-20 14:20:12,178 DEBUG    negotiating for accept and extensions
> ['text/html', 'application/xhtml+xml', 'application/xml', '*/*', '*/
> *']
> 2009-03-20 14:20:12,183 INFO     172.31.11.6 - GUEST [20/Mar/
> 2009:14:20:12 ] "GET /tiddlyweb/recipes/work HTTP/1.1" 200 - "http://
> telesto.ka.tup.com:1030/tiddlyweb/recipes" "Mozilla/5.0 (Windows; U;
> Windows NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
> 2009-03-20 14:20:13,529 DEBUG    starting "GET" request with uri "/
> tiddlyweb/recipes/work/tiddlers", script_name "/tiddlyweb", path_info
> "/recipes/work/tiddlers" and query ""
> 2009-03-20 14:20:13,530 DEBUG    negotiating for accept and extensions
> ['text/html', 'application/xhtml+xml', 'application/xml', '*/*', '*/
> *']
> 2009-03-20 14:20:13,926 INFO     172.31.11.6 - GUEST [20/Mar/
> 2009:14:20:13 ] "GET /tiddlyweb/recipes/work/tiddlers HTTP/1.1" 200 -
> "http://telesto.ka.tup.com:1030/tiddlyweb/recipes/work"; "Mozilla/5.0
> (Windows; U; Windows NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/
> 3.0.7"
> 2009-03-20 14:20:14,706 DEBUG    starting "GET" request with uri "/
> tiddlyweb/recipes/work/tiddlers.wiki", script_name "/tiddlyweb",
> path_info "/recipes/work/tiddlers.wiki" and query ""
> 2009-03-20 14:20:14,708 DEBUG    negotiating for accept and extensions
> ['text/x-tiddlywiki', 'text/html', 'application/xhtml+xml',
> 'application/xml', '*/*', '*/*']
> ----------------
>
> so we are a little bit confused what is going wrong
> the apache.py seems to get nothing in return
>
> could this be some interaction problem according?
> Apache/2.0.63 (Unix) DAV/2 mod_wsgi/2.3 Python/2.4.4 Server at
> telesto.ka.tup.com Port 1030
>
> sorry for circumstances
> Thanks Edi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to