homepage Welcome to WebmasterWorld Guest from 54.161.166.171
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Perl Script
perl script not working
hypasha




msg:3288712
 6:08 pm on Mar 21, 2007 (gmt 0)

My server's hard drive replaced and all had to be resetup...
I use a perl script for thousands of images for enlargments and cannot get it to work..thinking perhaps permissions? Should something be chmod? I am an idiot on this...and host will not help.

the script on pages looks like this"

<A HREF="http://www.mydomain.com/cgi-bin/PixiDetail.pl?IMAGE=Gallery-A/GA1-01.jpg&amp;LINK=Gallery-A01.htm&amp;CAP=" TARGET="_blank">

in the cgi-bin goes the config file and PixiDetail.pl files and then the Detail.htm is in root...

 

bunltd




msg:3288727
 6:20 pm on Mar 21, 2007 (gmt 0)

What do the access/error logs for apache have to say about your request?

hypasha




msg:3288754
 6:59 pm on Mar 21, 2007 (gmt 0)

[2007-03-21 03:30:38]: error: file is writable by others: (/home/pixiport/public_html/cgi-bin/PixiDetail.pl)

bunltd




msg:3288783
 7:34 pm on Mar 21, 2007 (gmt 0)

Yep, looks like a permissions thing - have you tried to chmod it to 755?

Matt Probert




msg:3288791
 7:40 pm on Mar 21, 2007 (gmt 0)

Also, try running the script from a command shell, rather than through Apache and see what happens, eg:

perl PixiDetail.pl?IMAGE=Gallery-A/GA1-01.jpg&amp;LINK=Gallery-A01.htm&amp;CAP=

It may be a problem with the Apache configuration.

Matt

hypasha




msg:3288815
 7:55 pm on Mar 21, 2007 (gmt 0)

Hi
I changed permission on that file still not working..I do not know how ..where.. ..lol to do a command line...I have access to root etc (dedicated server)I will ask company who set up server (is different from where it is hosted) The script worked fine before they replaced hard drive and had to have server reconfig....
have used since year 2000...and is the most important item on my site.....arrg lol
Thank you .....

phranque




msg:3288911
 9:01 pm on Mar 21, 2007 (gmt 0)

[2007-03-21 03:30:38]: error: file is writable by others: (/home/pixiport/public_html/cgi-bin/PixiDetail.pl)

what are the permissions on the /home/pixiport/public_html/cgi-bin/ directory?
that should probably be 755 as well.
both the file and directory should be owned by the server process owner and/or group. (www? web?)

hypasha




msg:3288934
 9:19 pm on Mar 21, 2007 (gmt 0)

yes permission are on cgi 755 and now script is executing..just have wrong ip address now I think in one of scripts as not pulling the images up..almost there! Thank you all! next is dreaded php database setup for auction lol oh gads...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved