Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Where Do I Install Perl Scripts?, Help, i need somebody help... :P
de4thpr00f
post Nov 27 2007, 02:52 PM
Post #1


Member [Level 2]
*****

Group: Members
Posts: 76
Joined: 21-November 07
Member No.: 53,412



Where do i install perl scripts?
I couldn't find the path (usr/bin/perl/) and i tried to put one script on /home/<my user>/public_html and execute it from a php script, but, nothing happened, the script was not working, and yes, the script works properly.
The reason for not working is the wrong path i suppose.
Go to the top of the page
 
+Quote Post
GodFather
post Nov 27 2007, 06:07 PM
Post #2


Newbie [Level 1]
*

Group: Members
Posts: 15
Joined: 24-November 07
Member No.: 53,658



I am not a master of perl, but have you tried executing it from the cgi-bin directory? If not this might be a bug with the server. Try contacting an admin for assistance on this. Cpanel says the path to perl is /usr/bin/perl, and cPanel uses perl if I can remember right, so it must exist.

This post has been edited by GodFather: Nov 27 2007, 06:08 PM
Go to the top of the page
 
+Quote Post
truefusion
post Nov 28 2007, 02:25 AM
Post #3


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,868
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528
T17 GFX Crew



QUOTE(de4thpr00f @ Nov 27 2007, 09:52 AM) *
I couldn't find the path (usr/bin/perl/)

Did you compile Apache or whatever server program you're using with Perl support? The location you provided doesn't necessarily mean that's where the libraries and whatnot are installed in.

QUOTE(de4thpr00f @ Nov 27 2007, 09:52 AM) *
and i tried to put one script on /home/<my user>/public_html and execute it from a php script

I think in order to use Perl in a PHP script, you need to first create an instance of the Perl class. Did you do this? Do you know how to do this?
Go to the top of the page
 
+Quote Post
mahirharoon
post Nov 28 2007, 09:39 AM
Post #4


Advanced Member
*******

Group: Members
Posts: 102
Joined: 25-November 07
Member No.: 53,695



put it in cgi bin (same like waste bin etc.....)
Go to the top of the page
 
+Quote Post
de4thpr00f
post Nov 28 2007, 07:01 PM
Post #5


Member [Level 2]
*****

Group: Members
Posts: 76
Joined: 21-November 07
Member No.: 53,412



QUOTE
I think in order to use Perl in a PHP script, you need to first create an instance of the Perl class. Did you do this? Do you know how to do this?

No true fusion, i don't know how to do it, can i ask for help please?
Thank you in advance.
Go to the top of the page
 
+Quote Post
coolcat50
post Dec 19 2007, 10:37 PM
Post #6


Super Member
*********

Group: [HOSTED]
Posts: 281
Joined: 5-October 07
From: Random Places
Member No.: 51,171
Spam Patrol



Did you provide the special UNIX comment needed for Perl scripts? Also, you should put the script in cgi-bin and do what Truefusion said probably. I am just getting started on learning Perl as a CGI resource, but I am fairly proficient in desktop applications of Perl.
Go to the top of the page
 
+Quote Post
karlosvalencia
post Jan 5 2008, 03:50 PM
Post #7


Newbie [Level 1]
*

Group: Members
Posts: 17
Joined: 5-January 08
From: Ottawa - Canada
Member No.: 55,741



QUOTE(de4thpr00f @ Nov 27 2007, 09:52 AM) *
Where do i install perl scripts?
I couldn't find the path (usr/bin/perl/) and i tried to put one script on /home/<my user>/public_html and execute it from a php script, but, nothing happened, the script was not working, and yes, the script works properly.
The reason for not working is the wrong path i suppose.


Not sure what you're trying but something you could do to understand how it works is getting the apache distribution for Linux or Windows (depending on which OS you're running) installed on your home PC. I've got it installed on a windows xp machine and also installed perl.

Assuming you're running on an Apache server, the scripts go on the cgi-bin directory. If you have apache installed there should be a ScriptAlias entry like so on the Apache\conf\httpd.conf file:

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"


Of course perl should already be installed on the server. On the same file httpd.conf there should be an entry like so at the end:

PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php

Not sure if this helps. E-mail me or reply to my post with more details on what you're trying to acomplish and some other members might be able to help.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Perl Help(1)
  2. First Perl Programm(5)
  3. Second Perl Programm(0)
  4. Perl Programms(0)
  5. Perl Programming(0)
  6. Using Mysql With Perl(1)
  7. Perl V.s. Php(5)
  8. Easy Authenication With Cgi/perl(0)
  9. Perl Progamming/scripting(3)
  10. Perl/cgi Help!(3)
  11. Perl Interview Questions(1)
  12. Compiling Perl / Python?(3)
  13. Xmlhttprequest And Perl(2)
  14. Matching Accents In Perl Regular Expresions(1)
  15. Call C Code From Perl(1)
  1. Few Perl Snippets For Misc Things(2)
  2. What Is Perl ? For A Layman Like Me !(7)
  3. Perl As A Way To Program Desktop Applications(8)
  4. Perl Interactive Mode(2)


 



- Lo-Fi Version Time is now: 26th July 2008 - 03:27 PM