Welcome to WebmasterWorld Guest from 54.167.144.170

Forum Moderators: bakedjake

Perl Script

perl script not working

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

10+ Year Member



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...

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

10+ Year Member



What do the access/error logs for apache have to say about your request?
6:59 pm on Mar 21, 2007 (gmt 0)

10+ Year Member



[2007-03-21 03:30:38]: error: file is writable by others: (/home/pixiport/public_html/cgi-bin/PixiDetail.pl)
7:34 pm on Mar 21, 2007 (gmt 0)

10+ Year Member



Yep, looks like a permissions thing - have you tried to chmod it to 755?
7:40 pm on Mar 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

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

10+ Year Member



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 .....
9:01 pm on Mar 21, 2007 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



[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?)

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

10+ Year Member



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...
 

Featured Threads

Hot Threads This Week

Hot Threads This Month