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

2015-09-28 Thread Amarjeet Kapoor
On Monday, 28 September 2015 17:46:04 UTC+5:30, Jori Mäntysalo wrote: > > What system you use for CGI? Linux? Ubuntu, Centos, Fedora...? Normal > Apache, something else? > I was using apache on Ubuntu with cgi script written in python. Now I am using Django for same and everything worked but s

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

2015-09-28 Thread Jori Mäntysalo
On Fri, 25 Sep 2015, Amarjeet Kapoor wrote: I am trying to execute sage script through cgi script but unable to do that and I found that I am facing same problem related to environment variable HOME not set when saw error.log but I am unable to get how you solved this. What system you use for

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

2015-09-25 Thread Amarjeet Kapoor
On Thursday, 30 January 2014 05:17:42 UTC+5:30, Pedro Fernando Morales-Almazan wrote: > > > Done! I set the HOME variable in the apache2 conf file and then gave the > permissions to /var/www. > > Thanks for the help Jeroen! > > I am trying to execute sage script through cgi script but unable to

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, not the >

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

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

2014-01-29 Thread Jeroen Demeyer
I think the answer is here: http://httpd.apache.org/docs/2.2/env.html Sage requires the environment variable HOME to be set because it needs the DOT_SAGE directory which is set to $HOME/.sage by default. And I think some other packages also look in $HOME for certain things. To avoid breakage,

[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: