Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's General Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. UTI Members Chat => General Open Topic
Author Message
lloydkirk1989


Member


Joined: 18 Apr 2005
Posts: 161

Posted: 22 Jun 2005 03:12:38 pm    Post subject:

Does the uti hosting support perl?
Back to top
AlienCC
Creative Receptacle!


Know-It-All


Joined: 24 May 2003
Posts: 1927

Posted: 22 Jun 2005 03:39:11 pm    Post subject:

Yes, perl is supported, but not with mysql access enabled. It is preferred you use php since it uses less server resources to do the same things.

--AlienCC
Back to top
Rezek
Better Than You


Calc Guru


Joined: 24 Apr 2005
Posts: 1229

Posted: 22 Jun 2005 07:34:36 pm    Post subject:

Since I got subdomain hosting (today, thanks AlienCC!), the only thing I've noticed that was even partially bad was having to use phpMyAdmin to create databases, I'm more used to cPanel's MySQL icon. Oh well, I'll get used to it. Besides, it's probably better anyways.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 22 Jun 2005 07:40:16 pm    Post subject:

Write your own php interface.
Back to top
wrigley


Advanced Member


Joined: 19 May 2004
Posts: 399

Posted: 01 Jul 2005 08:09:28 pm    Post subject:

what is the path to perl?

for the "#!/bla/bla/bla/perl" line
Back to top
AlienCC
Creative Receptacle!


Know-It-All


Joined: 24 May 2003
Posts: 1927

Posted: 01 Jul 2005 10:02:56 pm    Post subject:

#!/usr/bin/perl
Back to top
wrigley


Advanced Member


Joined: 19 May 2004
Posts: 399

Posted: 02 Jul 2005 05:05:56 am    Post subject:

test.pl
Code:
#!/usr/bin/perl
print "hello";

how come this doesn't work?

I have tried chmod'ing the file to 755 (read and execute)
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 02 Jul 2005 06:27:56 pm    Post subject:

It doesn't work because you never printed the header to the browser.
Back to top
AlienCC
Creative Receptacle!


Know-It-All


Joined: 24 May 2003
Posts: 1927

Posted: 03 Jul 2005 01:45:33 am    Post subject:

wrigley wrote:
test.pl
Code:
#!/usr/bin/perl
print "hello";

how come this doesn't work?

I have tried chmod'ing the file to 755 (read and execute)
[post="52815"]<{POST_SNAPBACK}>[/post]

Did you put it in your cgi-bin directory, or your public_html directory? Yes there is a reason for the cgi-bin directory afterall.

--AlienCC
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 03 Jul 2005 02:48:09 am    Post subject:

You should also try to execute that first through SSH.

Snag a copy of PuTTY. Search google for Putty and the first result will be the correct download site.

Logon as you would with SFTP using SSH (same user info and all)

Then go to your cgi-bin directory and execute the perl program from there as follows.

$ perl test.pl

It should print back to the console. If not, you may need to check the path.

# /usr/bin/perl test.pl

You get the idea. Once you get that working, you should next set a header to print the correct content type.
Back to top
wrigley


Advanced Member


Joined: 19 May 2004
Posts: 399

Posted: 03 Jul 2005 09:17:52 am    Post subject:

nice program that putty Smile but no that was not what I meant, sorry for being unclear. The problem is that the pearl script does not execute; it displays the source as it would display a .txt file, instead of only displaying "hello". I noticed the cgi-bin directory, but I couldn't seem to figure out to which url it was mapped; the url wrigley.unitedti.org/cgi-bin/test.pl provides a 404 error.

I have now added the header information as you requested, but I can't see how it is necessary for testing, also there is a test.pl file in both the cgi-bin dir and the public_html dir, identical. Still nothing works.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 

Advertisement