Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-23-2002, 10:11 AM
treeves's Avatar
treeves treeves is offline
President
Vortech Inc. Customer
 
Location: Indiana, USA
Send a message via MSN to treeves
Perl Location

What is the location of Perl 5+ on the server? Thanks.

Is it #!/usr/bin/perl ?
Reply With Quote
  #2  
Old 12-23-2002, 10:15 AM
hostnet
Guest
 
Perl

Yes it is.
Reply With Quote
  #3  
Old 12-23-2002, 06:13 PM
ramjet's Avatar
ramjet ramjet is offline
I'm fine thank you.
Vortech Inc. Customer
 
Location: Waiheke Island, New Zealand
hostnet, does the server allow chmods of 777? (some systems don't).
Reply With Quote
  #4  
Old 12-23-2002, 06:23 PM
Garreg's Avatar
Garreg Garreg is offline
Resident Optimist
Vortech Inc. Customer
 
Location: UK - Mon to Fri. Mars - all Weekend
ramjet:

I've used 777 without any problem.
__________________
Regards to all
Reply With Quote
  #5  
Old 12-24-2002, 05:31 PM
ramjet's Avatar
ramjet ramjet is offline
I'm fine thank you.
Vortech Inc. Customer
 
Location: Waiheke Island, New Zealand
matrix, is 777 restricted?
(i need an explanation of this as i've tried a test.pl that gives the absolute path of the server and it won't run on 777, but does on 755 - yet garreg says hes used 777.
is there some rule as to when this 777 can't be used, and is this standard across all unix machines?
merry xmas all.
murray.
Reply With Quote
  #6  
Old 12-26-2002, 04:43 AM
hostnet
Guest
 
You can only use 755 for scripts in the cgi-bin directory. THis only applie sto like .cgp .pl and stuff. .txt coul dhave 777 if needed.
Reply With Quote
  #7  
Old 12-26-2002, 05:41 PM
ramjet's Avatar
ramjet ramjet is offline
I'm fine thank you.
Vortech Inc. Customer
 
Location: Waiheke Island, New Zealand
Thanks Craig, but.....
if i make a new directory (nothing to do with the cgi-bin) and chmod it to 755, and place this simple script in it (also chmod 755) it works..... YAY

#!/usr/bin/perl
print "content-type:text/html\n\n";
print "Your absolute path is<br>";
print "$ENV{'DOCUMENT_ROOT'}";

....but if i chmod the directory to 777 (the script is still 755), it doesn't work. (server error) BOO

I guess what i'm trying to understand is why not... it seems the directory at 777 won't allow the script to execute even though I figure it should.
I'm a complete novice at this so its probably something I'm missing, - (I have a Hotscripts perl script whose author says in case of problems just set everything to 777...but it still won't go) so knowing more re 777 on the Matrix system seems essential to my understanding.
Any clues as to why a script wont execute in a 777 directory?
Reply With Quote
  #8  
Old 12-26-2002, 10:32 PM
obj's Avatar
obj obj is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: Bucks County, PA
Perl Diver

Perl diver is a useful free program to check paths on your server.

Perl Diver
Reply With Quote
  #9  
Old 12-27-2002, 05:41 PM
ramjet's Avatar
ramjet ramjet is offline
I'm fine thank you.
Vortech Inc. Customer
 
Location: Waiheke Island, New Zealand
thanks obj, but its not the paths i'm having difficulty with, its chmod.
Reply With Quote
  #10  
Old 12-27-2002, 05:44 PM
hostnet
Guest
 
Scripts can only execute from directories that are 755 and the files have to be 755.
Reply With Quote
  #11  
Old 12-27-2002, 05:45 PM
hostnet
Guest
 
Oh and I am mike (Unix Administrator) not craig
Reply With Quote
  #12  
Old 12-27-2002, 08:47 PM
ramjet's Avatar
ramjet ramjet is offline
I'm fine thank you.
Vortech Inc. Customer
 
Location: Waiheke Island, New Zealand
thanks Mike, and sorry about that, i got mixed up...
If a script is writing/reading from a .dat file, should this .dat be 666, and can it be within a directory that is 755?
Also does the system need to know via the CP about the .dat, or is it as I suspect just a txt file really?
Any overview on the whole CHMOD thing is really appreciated.
Murray.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:07 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Vortech Inc. ©2005
Page generated in 0.43951 seconds with 16 queries
[Output: 83.48 Kb. compressed to 76.31 Kb. by saving 7.17 Kb. (8.59%)]