Welcome to WebmasterWorld Guest from 54.144.7.239

Forum Moderators: bakedjake

Message Too Old, No Replies

Perl Script

perl script not working

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

New User

10+ Year Member

joined:Jan 3, 2005
posts:21
votes: 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...

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

Preferred Member

10+ Year Member

joined:Apr 7, 2003
posts:540
votes: 0


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

New User

10+ Year Member

joined:Jan 3, 2005
posts: 21
votes: 0


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

Preferred Member

10+ Year Member

joined:Apr 7, 2003
posts:540
votes: 0


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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 11, 2004
posts:1014
votes: 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

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

New User

10+ Year Member

joined:Jan 3, 2005
posts: 21
votes: 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 .....
9:01 pm on Mar 21, 2007 (gmt 0)

Administrator

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

joined:Aug 10, 2004
posts: 10551
votes: 10


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

New User

10+ Year Member

joined:Jan 3, 2005
posts: 21
votes: 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...