[sage-devel] Sage, django and Apache

2014-10-26 Thread Pedro Fernando Morales-Almazan
I'm trying to set up django with sage support on an Apache server. I'm working on Ubuntu. So far django and sage work fine, but I'm not able to make Apache work. Here is what I've done: - Install django(1.7.1) in sage(6.2-x86_64)'s python(2.7.5) ( http://ask.sagemath.org/question/7576/will

Re: [sage-devel] Using sage as a CGI

2014-01-29 Thread Pedro Fernando Morales-Almazan
Done! I set the HOME variable in the apache2 conf file and then gave the permissions to /var/www. Thanks for the help Jeroen! On Wednesday, January 29, 2014 5:10:28 PM UTC-6, Pedro Fernando Morales-Almazan wrote: > > Yes, I was just checking that. I changed and it tried to run SAGE, n

Re: [sage-devel] Using sage as a CGI

2014-01-29 Thread Pedro Fernando Morales-Almazan
Yes, I was just checking that. I changed and it tried to run SAGE, not the issue is some permission error. I'm trying to fix it right now. On Wednesday, January 29, 2014 4:10:30 PM UTC-6, Jeroen Demeyer wrote: > > I think the answer is here: > http://httpd.apache.org/docs/2.2/env.html > > Sage

[sage-devel] Using sage as a CGI

2014-01-29 Thread Pedro Fernando Morales-Almazan
I am trying to use SAGE for a cgi script but I have this error when running the cgi from the browser: Error: environment variable $HOME is not set., referer: http://mysite.com/foo.cgi Error setting environment variables by sourcing '/usr/local/sage-6.0-x86_64-Linux/src/bin/sage-env';, referer: