IMHO, Sage does not use apache at all. It runs its own webserver, on port 8000.
On Friday, 27 July 2012 07:08:25 UTC+8, Mike OS wrote: > > I had a sage server running on an imac running os 10.6. > I stopped the server and tried to get it running again, and > now I'm having problems. > > 1. I tried logging in on the imac as a user, then starting sage. > I got the message appended below in the terminal window that pops up. > When I tried the notebook (using Safari) it allowed me > to type problems but didnt produce answers when entered. > > 2. Logging in remotely a user seems able to get in > but when runing a worksheet he gets > Internal Server Error: An error occurred rendering the requested page... > > The user was also unable to sign out. > Interesting that he was able to view some published worksheets, but > they appeared inactive. > > Thanks for any help. > > ************ > Here is what appeared in the terminal window when I tried to run sage as a > user on the imac. > ******************** > sagemath:~ dummy$ sage > ---------------------------------------------------------------------- > | Sage Version 4.8, Release Date: 2012-01-20 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/sage-ipython", > > line 18, in <module> > import IPython > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/IPython/__init__.py", > > line 58, in <module> > __import__(name,glob,loc,[]) > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/IPython/ipstruct.py", > > line 17, in <module> > from IPython.genutils import list2dict2 > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/IPython/genutils.py", > > line 26, in <module> > import shlex > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python/shlex.py", > > line 12, in <module> > from collections import deque > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python/collections.py", > > line 9, in <module> > from operator import itemgetter as _itemgetter > ImportError: > dlopen(/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/lib-dynload/operator.so, > > 2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString > Referenced from: > /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/lib-dynload/operator.so > Expected in: flat namespace > in > /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/lib-dynload/operator.so > osullivan 7-> > > > ************ > I used the following sequence to start sage > prompt% sudo -s > Password: pass_for_the_admin_account > bash-3.2# (now you're root ...) > bash-3.2# su - sageserver > sagemath:~ sageserver$ ./start_sage.sh & > exit > apachectl start > > The latter seemed unnecessary since the response was > org.apache.httpd: Already loaded > > ************* > Here is a log from when I tried to use a web browser to access the sage > notebook > ********************* > bash-3.2# 2012-07-26 15:35:12-0700 [HTTPChannel,9,127.0.0.1] got EOF > subprocess must have crashed... > 2012-07-26 15:35:12-0700 [HTTPChannel,9,127.0.0.1] You don't exist, go > away! > 2012-07-26 15:35:12-0700 [HTTPChannel,9,127.0.0.1] > 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] ERROR initializing > compute process: > 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] > 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] unable to start > subprocess using command 'sage-native-execute ssh -t sage4@localhost > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/sage > -python"' > 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] Exception rendering: > 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] Unhandled Error > Traceback (most recent call last): > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/internet/defer.py", > > line 181, in addCallbacks > self._runCallbacks() > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/internet/defer.py", > > line 323, in _runCallbacks > self.result = callback(self.result, *args, **kw) > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/internet/defer.py", > > line 284, in _continue > self.unpause() > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/internet/defer.py", > > line 280, in unpause > self._runCallbacks() > --- <exception caught here> --- > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/internet/defer.py", > > line 323, in _runCallbacks > self.result = callback(self.result, *args, **kw) > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/web2/server.py", > > line 296, in <lambda> > d.addCallback(lambda res, req: res.renderHTTP(req), self) > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/web2/resource.py", > > line 85, in renderHTTP > return method(request) > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/web2/resource.py", > > line 202, in http_GET > return super(Resource, self).http_GET(request) > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/web2/resource.py", > > line 128, in http_GET > return self.render(request) > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/twist.py", > > line 1541, in render > self.worksheet.sage() > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/worksheet.py", > > line 2883, in sage > self.initialize_sage() > File > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/worksheet.py", > > line 2856, in initialize_sage > raise RuntimeError, msg > exceptions.RuntimeError: unable to start subprocess using command > 'sage-native-execute ssh -t sage4@localhost > "/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/sage > -python"' > > > > > 3. > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org