Saturday, 8 August 2015

Perl python on Godaddy Delux Linux Hosting

Python Perl on Godaddy  Delux Linux Hosting

i have  Delux Linux Hosting Account on Go daddy on which i can run php , HTML5 , Bootstrap  etc  , the question arises when i was looking to integrate my Perl script and Python script to Go daddy .


i use window system and filezilla to upload my script but i have Linux Hosting account , That restricting me to upload script rightly , i tried to contact Go Daddy customer support to run my basic script but unable to got satisfactory answer from them , they suggest me to take help of any developer as they are only trained for Hosting support not Technical support , it was hell day for me , 

i google , stackoverflow etc as well read all the article on go daddy , it takes my much time , no one is there to guide and there are many people who are looking for assistance For PERL PYTHON with Go Daddy .

here i am showing you how to get script running on Go daddy with Practically .

python on Go daddy:

go daddy support python 2.66 version 
but if you go through control panel under software , there is no python TAG 
According to them user can put script anywhere and it will run but, that's Not TRUE at all 
yesterday i argue with  them lot about FALSE Commitment and Documentation .
and Finally they told me to write suggestion on suggestions@godaddy.com for Consideration 


hi.py

create one demo file with name "hi.py"
write below code in that file and save the file in ASCII format 
Set File Permission as 755 
upload the script via web panel(Cpanel) , Do not use File Zilla or any other client 
otherwise go to Web pannel and create new file and put that code and save the new file as "hi.py"
under cgi-bin Directory  

  1. #!/usr/bin/python
#!/usr/local/bin/python2.7
import cgitb
cgitb.enable()
print 'Content-Type: text/plain'
print
print 'Hello World!'

Visit URL /cgi-bin/hi.py
and You will get output  that is " Hello World! "


Perl on Go daddy:

Go daddy support Perl 5.10.1 version but same problem , no documentation at all and there are several users who had posted on stackoverflow but Still the THREAD IS OPEN .

version.pl

create one demo file with name "version.pl"
write below code in that file and save the file in ASCII format 
Set File Permission as 755 
upload the script via web panel (Cpanel), Do not use File Zilla or any other client 
otherwise go to Web pannel and create new file and put that code and save the new file as "version.py"
under cgi-bin Directory  

#!/usr/bin/perl
use cPanelUserConfig;
# Available under BSD License.
# See url http://www.cyberciti.biz/faq/how-can-i-find-out-perl-version/
$command=`perl -v`;
$title = "Perl Version";

print "Content-type: text/html\n\n";
print "<html><head><title>$title</title></head><body>";

print "<h1>$title</h1>\n";

print "<pre>";
print $command;
print "</pre>";

print "</body></html>";


Visit URL /cgi-bin/version.pl
and You will get output  that is 

Perl Version

This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page. "





NOTES:

if you are on Window system and have Linux package then i recommend you to use web interface to create files and upload

things to remember
  1. use web interface to create file
  2. use web interface to set file permission that is 755 (user-RWE ,Group-RE,Entire world-RE)
  3. use web interface to Rename file because Linux system do not have extension they understand file system with first line of code
  4. use Web interface(Cpanel) to upload script
  5. Save All Script under cg-bin directory to get things running .
  6. use python editor if possible to write python code and perl for perl scripting for hassle free operation.This IDE will generate and encode File correctly under window environment .

Thanks for reading .
Vijay B.Konduskar.

i am sure this will save your time.


You can Connect me on :






3 comments:

  1. Host Preneur serves you the Best Hosting Plans for Linux Hosting,windows hosting and Dedicated Hosting backed up with 24x7x365 Technical Support.

    ReplyDelete
  2. Bluehost is definitely the best website hosting company for any hosting services you require.

    ReplyDelete
  3. Ever wanted to get free Google+ Circles?
    Did you know that you can get them AUTOMATICALLY AND TOTALLY FOR FREE by getting an account on Like 4 Like?

    ReplyDelete