Making Abyss Web Server Support Python.

 
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
Deledar
-


Joined: 26 Feb 2003
Posts: 94

PostPosted: Sat Mar 15, 2003 10:11 pm    Post subject: Making Abyss Web Server Support Python. Reply with quote

Here is what you need before we get started,
ActivePython: http://aspn.activestate.com/ASPN/Downloads/ActivePython/Source
Abyss Web Server: http://www.aprelium.com

Install it and when your done go to your
Abyss Web Server's console. When
there click on Server Configuration
and click on Advanced..... When there first click on CGI Parameters
Make sure you have Yes selected
for CGI Processing Enabled.
Under CGI Interpreters press Add...
Ok here's the tricky part, if you installed
ActivePython in C:\Program Files\Python than put C:\Program Files\Python\python.exe
in Interpreter and put py for
Associated Extensions than press Ok. You do
not need to press restart yet, I'll tell you when to.We are
almost done.
Press Add... under CGI Paths
Put "/" without quotations in CGI Path. Than press OK.
Don't press Restart yet. Press OK again and then go to Server Parameters. Press Add... under Index Files.
Than put "index.py" without the quotes in Index File and press
OK. Now you may press restart and your all done!

I would like to thank Aprelium and vbgunz for helping me with the
extension for python.

Sorry about it, vbgunz, you may remove your last post, this has been fixed.


Last edited by Deledar on Mon Aug 04, 2003 6:19 am; edited 4 times in total
Back to top View user's profile Send private message
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Tue Apr 08, 2003 5:48 pm    Post subject: Reply with quote

Great Job on the Python Guide :)
_________________
Victor B. Gonzalez
http://aeonserv.com


Last edited by vbgunz on Sun Jun 01, 2003 4:37 am; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Sakura
-


Joined: 12 May 2003
Posts: 2
Location: USA

PostPosted: Tue May 13, 2003 7:00 am    Post subject: Reply with quote

vbgunz wrote:
Press Add... under CGI Paths
Put "\" without quotations in CGI Path. Than press OK.
Don't press Restart yet. Press OK again and then go to Server Parameters. PressAdd... under Index Files.
Than put "index.py" without the quotes in Index File and press
OK. Now you may press restart and your all done!


You cannot use \ in Abyss!
Only allows /
Thoght I would correct that for ya since it will cause errors! :)

// Sakura
Back to top View user's profile Send private message Visit poster's website MSN Messenger
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Tue May 13, 2003 7:50 am    Post subject: Reply with quote

Not sure, I simply copied and pasted because its indeed just a little more legible and easier on the eyes... I needed Python once but never installed it because I didn't know how... If I ever do need it this is the first guide I will visit. If Deledar tweaks his guide I will remove my copy...

Thanks Sakura :)
_________________
Victor B. Gonzalez
http://aeonserv.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Tue May 13, 2003 10:30 pm    Post subject: Reply with quote

hey vbgunz, Were do you put .py scripts at, you never added that in your tutorial , I have every single program language installed if you tell me

PERL , PHP , CGI , ASP , and now python , I hope :D
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Tue May 13, 2003 11:55 pm    Post subject: Reply with quote

Were is python installed I don't see the directory in program files , or see the python.exe I did a full system search and did not see it , does windows XP come with python because I sal a program that said python , I installed activepython 2.2.2 build
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Wed May 14, 2003 12:08 am    Post subject: Reply with quote

Never min I found it , its a hidden document , I think :D
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
s1asher
-


Joined: 20 Mar 2003
Posts: 53

PostPosted: Wed May 14, 2003 12:08 am    Post subject: Reply with quote

Python was installed to C:\Python22 by default for me (on Win XP)
Back to top View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Wed May 14, 2003 12:24 am    Post subject: Reply with quote

Yeah thats were I found it , but why won't these dang .py scripts work for me , i followed the tutorial :?:
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Wed May 14, 2003 1:17 am    Post subject: Reply with quote

Server Configuration > Advanced > CGI Parameters

under CGI Interpreters enter the path to python and py as the associated extensions. Good luck :)
_________________
Victor B. Gonzalez
http://aeonserv.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Wed May 14, 2003 2:17 am    Post subject: Reply with quote

VBGUNZ , I set it up right , but when I run .py scripts it shows internal 500 error :?:
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Wed May 14, 2003 6:22 am    Post subject: Reply with quote

Not sure where the errors are taking place. Not sure if its your copy of Python OR the script you're using. Deledar by the way wrote the guide and I simply copied and pasted it back for legibility... I asked Deledar about two weeks before I made the paste if he/she could turn it into text but I got no response and guess Deledar is no longer active on the boards... os17fan, if you manage to fix your problem be sure to tell us how you fixed it as some of us seek these boards for answers ;)

Good luck :)
_________________
Victor B. Gonzalez
http://aeonserv.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Wed May 14, 2003 3:26 pm    Post subject: Reply with quote

Ok I will , but were do I store python scripts :?:
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Wed May 14, 2003 7:53 pm    Post subject: Reply with quote

I guess you're best installing the scripts where the installation tells you too. Also, remember Abyss provides the ability to create aliases and sometimes you can use that to your advantage. Good luck :)
_________________
Victor B. Gonzalez
http://aeonserv.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Deledar
-


Joined: 26 Feb 2003
Posts: 94

PostPosted: Sun Jun 01, 2003 4:10 am    Post subject: Reply with quote

Alright Vb you can remove your post.
Back to top View user's profile Send private message
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Sun Jun 01, 2003 4:38 am    Post subject: Reply with quote

Now you remove yours :) Thanks for the guide :)
_________________
Victor B. Gonzalez
http://aeonserv.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Ublis
-


Joined: 19 Sep 2003
Posts: 1

PostPosted: Sat Sep 20, 2003 2:29 am    Post subject: Reply with quote

os17fan wrote:
VBGUNZ , I set it up right , but when I run .py scripts it shows internal 500 error :?:


I had this same problem and here is the likely cause: you forgot to print an empty line after your Content-type, like this:

import sys
sys.stderr = sys.stdout
print "Content-type: text/plain\n"
print "OK!"
Back to top View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Sat Sep 20, 2003 4:00 am    Post subject: Reply with quote

Im done with python , I gave up a few months ago , im into PHP programming. Thanks for the help any way :D
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Tutorials All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group