Previous Thread
Next Thread
Print Thread
Rate Thread
#103721 04/18/2002 4:58 AM
Joined: Apr 2002
Posts: 111
PF
Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
Simple Question, maybe simple solution?

Easy situation, I code and test ubb hacks on my local machine (only accesible by 127.0.0.1)
I was using IIS which wasn't a problem because it knew where the perl interpreter was.

Now I'm moving onto Apache on my local machine so I can hopefully use SSI etc properly, and to have the server environment as close to the live server as possible (unix/apache etc)

Installed apache fine, got it all set up, problem is Apache will only process the cgi/pl stuff if the shebang is #!/Perl/bin/perl.exe
The live one is quite obviously #!/usr/bin/perl

So is there anyway that I can make it so that I dont need to change the shebang when I make the code live?

Cheers

Ben

Sponsored Links
#103722 04/18/2002 1:26 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
iirc there is an option in the apache config file to use registry entries to determine what to run scripts with, so if you enable that then make sure .pl and .cgi are associated with perl.exe it will work with the #!/usr/bin/perl shebang.

sorry its light on exact wording but its been a while since i configed apache smile

#103723 04/18/2002 8:09 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Maybe just add a symbolic link from

/Perl/bin/perl.exe --> /usr/bin/perl


I can't afford a good signature editor frown
#103724 04/19/2002 2:27 AM
Joined: Apr 2002
Posts: 111
PF
Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
quote:
Originally posted by jordo:
iirc there is an option in the apache config file to use registry entries to determine what to run scripts with, so if you enable that then make sure .pl and .cgi are associated with perl.exe it will work with the #!/usr/bin/perl shebang.

sorry its light on exact wording but its been a while since i configed apache smile

I've found the info regarding this, but it doesn't seem to work! I dont know if they removed it or changed it in the latest version of apache, maybe I should go back to one of the 1.x versions.

quote:
Originally posted by BassTeQ:
Maybe just add a symbolic link from

/Perl/bin/perl.exe --> /usr/bin/perl

I saw this and wondered why I didn't think of this, then realised I did, problem is I dont have root access on the live server, its on a shared hosting server so thats a no go frown

Anyone know if you can get Apache2 to look up in the registry? I dont see why it was removed, and I dont see any docs either on that part.

#103725 10/11/2002 1:05 PM
Joined: Oct 2002
Posts: 5
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 5
Hmmm

When I installed Perl and Apache on my own server (locally) I installed Perl to the same directory as Apache was in.

My shebang is "normal".

Don't know if that makes a difference, but maybe

Sponsored Links
#103726 10/11/2002 1:39 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
You can safely copy the Perl.exe file from /perl/bin to /usr/bin - it still works fine, thus your solution.

No need to move Perl or install in /usr or anything nutty like that.


UBB.classic: Love it or hate it, it was mine.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 34299
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 1
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)