Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 27th, 2003, 08:57 AM
penngray penngray is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 38 penngray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 31 sec
Reputation Power: 6
Installed Python 2.2.3 still see python 2.2.1 on apache.

My Apache web server is still pointed to python 2.2.1, How do I change this?



Apache/2.0.45 (Unix) mod_python/3.0.3 Python/2.2.1

Reply With Quote
  #2  
Old September 27th, 2003, 10:31 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 3 m 4 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
If your talking about Python CGI, depending on where Python 2.2.3 you'll need to change the shebang/path at the top of your programs to point at Python 2.2.3

I'm assuming that you have both versions of Python on your server now? I'm also assuming were talking about a remote *nix server.

If you have access to your servers shell type "which python", this will check your environment variables and return the path to Python, if it points at Python 2.2.1 you can change it to point at 2.2.3, kinda new to *nix so not sure how

Hope this helps,
Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #3  
Old September 27th, 2003, 10:39 AM
penngray penngray is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 38 penngray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 31 sec
Reputation Power: 6
Thanks for the reply.... sorry for not giving details.


Im using Apache on RedHat Linux 8.0, I have installed Mod-python to create a new web application.

Redhat Linux came with python 2.2.1 installed but I upgraded to 2.2.3... Im able to run python from the command line and its the correct version (2.2.3) but apache starts up with version 2.2.1 still. Maybe its a library path / Apache startup question?/

thanks
Penngray

Reply With Quote
  #4  
Old September 27th, 2003, 11:01 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,588 Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level)Scorpions4ever User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 21 h 32 m 4 sec
Reputation Power: 1001
Sounds like an apache config issue. You probably want to dig into your httpd.conf file and see where it is loading up mod_python or whatever. Also, shouldn't you be upgrading the mod_python module,because if it has its own copy of a python interpreter in it, then you'll need to upgrade that as well.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month
Looking for a perl job with kick-*** programmers in a well-known NASDAQ listed tech company with branches in the US and Europe? We're hiring. PM me for details. Requirements

Reply With Quote
  #5  
Old September 27th, 2003, 11:11 AM
penngray penngray is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 38 penngray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 31 sec
Reputation Power: 6
thanks for the reply,

I upgraded Python to 2.2.3 before I downloaded the Mod-python package so I believe my mod-python is the correct version

Everything is actually working its just a little "annoying" to see Python 2.2.1 as the version Apache is still using. I would like for it to say 2.2.3


btw, wrote my first app that simply connects to a database and creates HTML form that lists customers to select from....very cool and simple!!!

Reply With Quote
  #6  
Old September 27th, 2003, 11:11 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 3 m 4 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Throw in the mod_python factor why dont you .. the fact that Apache is running your Python though mod_python could be why your getting this problem. I'm guessing mod_python was installed in 2.2.1? You might want to check where the mod_python module was installed..

I've never actually succeded at getting mod_python running, i'll give it another go sometime.

Anyway, you could take a look at your apache config file and see if it tells mod_python which to use? you might also want to ask this in the Apache forum

Mark.

Last edited by netytan : September 27th, 2003 at 11:17 AM.

Reply With Quote
  #7  
Old September 27th, 2003, 11:14 AM
penngray penngray is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 38 penngray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 31 sec
Reputation Power: 6
good point, mod_python might of been installed in python 2.2.1!

As I said above so far everything is working....now if I can just figure out how to work with the apache AddHandlers pythonhandler stuff!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Installed Python 2.2.3 still see python 2.2.1 on apache.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT