hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Python is installed, but not recognized by scripts?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Python is installed, but not recognized by scripts?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-08-2011, 12:50 AM
awaisuk awaisuk is offline
Web Hosting Guru
 
Join Date: Jan 2007
Posts: 347

Python is installed, but not recognized by scripts?


Hello.

Python is installed, but not recognized by scripts?

I have python installed, but none of my scripts recognize it, and says that there is no python installed.

When I do "which python" command in ssh and it tells me that it is installed.

Also I had my server management company look at it, and they told me it is installed and cant do anything else, and dont know why the scripts are not picking it up.

My scripts were working fine with Plesk on old server, and this server I have plesk aswell, but my scripts are not picking up python......

Also, just for more information, LOADAVG is not picking up by scripts aswell as PYTHON. So there is definitely something wrong.

Any help please?

Thanks.

__________________
Desi Forum

Reply With Quote


Sponsored Links
  #2  
Old 01-08-2011, 01:02 AM
Syslint Syslint is offline
Web Hosting Master
 
Join Date: Apr 2009
Location: inside wht
Posts: 614
Hello,
So if "which python" is showing python in /usr/local/bin/python or /usr/bin/python , check these binaries are available there

# ls -al /usr/bin/python
# ls -al /usr/local/bin/python

If it is ok edit th first line of your python script as follows
#!/usr/bin/env python

Now try to execute it . If the above one not working replace the first line with the full path to python
#!/usr/local/bin/python

If you are using a self executable script make sure to chmod 755 .

__________________
Syslint Technologies | 24x7 Server Management | Outsourced Support | Help Desk Suppport
Web Development Inc - Web Design- Python Development - PHP Development - CMS integration
cPremote.net | cPnginx.com | Danginx.com | Dabackup.com | checkpcidss.com | ffmpeginstaller.com
Call us : (0091) 471-3273-211 , Contact Sales - sales@syslint.com

Reply With Quote
  #3  
Old 01-08-2011, 01:13 AM
awaisuk awaisuk is offline
Web Hosting Guru
 
Join Date: Jan 2007
Posts: 347
Its showing as the location as /usr/bin/python

But I have that path in my scripts and still it is saying "Path is not valid"

It is not only 1 script, but 2 of them have the same problems.

__________________
Desi Forum

Reply With Quote
Sponsored Links
  #4  
Old 01-08-2011, 01:36 AM
Syslint Syslint is offline
Web Hosting Master
 
Join Date: Apr 2009
Location: inside wht
Posts: 614
try this following ,

# /usr/bin/python scriptname.py ,

what result are you getting.

__________________
Syslint Technologies | 24x7 Server Management | Outsourced Support | Help Desk Suppport
Web Development Inc - Web Design- Python Development - PHP Development - CMS integration
cPremote.net | cPnginx.com | Danginx.com | Dabackup.com | checkpcidss.com | ffmpeginstaller.com
Call us : (0091) 471-3273-211 , Contact Sales - sales@syslint.com

Reply With Quote
  #5  
Old 01-08-2011, 02:10 AM
awaisuk awaisuk is offline
Web Hosting Guru
 
Join Date: Jan 2007
Posts: 347
Well its not just one .py file, its a script that uses python aswell as many other things in order to run.....

I just did that command, and it looks like the file runs....

__________________
Desi Forum

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check if python is installed on my reseller tihhc Hosting Security and Technology 9 10-11-2010 12:49 AM
Need Python and Script installed on my server PEAK-Bobby Employment / Job Offers 4 12-03-2009 03:13 AM
CGI scripts(Perl/Python) are not able to run on Plesk Windows Server 2003 freewebspace Hosting Security and Technology 9 06-24-2008 07:58 AM
Running python scripts okok Hosting Security and Technology 7 10-12-2004 01:47 PM
Anyone need any scripts installed? bwb Employment / Job Offers 2 10-18-2003 03:30 PM

Related posts from TheWhir.com
Title Type Date Posted
Hosting Software Firm Softaculous Releases Version 4.0 Web Hosting News 2012-01-23 13:54:44
Softaculous Adds Reseller Control Panel with New Version of Auto-Installer Web Hosting News 2012-01-03 17:27:22
Software Developer Softaculous Launches Softaculous Auto Installer Version 3.8 Web Hosting News 2011-11-25 15:34:49
Web Host HostingZoom Adds Softaculous Auto-Installer to Hosting Plans Web Hosting News 2011-08-17 17:52:34
Web Host JaguarPC Adds Auto-Installer Softaculous to Hosting Plans Web Hosting News 2011-07-27 18:55:46


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?