CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
banner exchange script problem

 



prsnlty
Deleted

Jan 28, 2000, 2:02 PM

Post #1 of 8 (1440 views)
banner exchange script problem Can't Post

Hello, I am new to cgi/perl but have placed all of my scripts on my site myself and did ok. I've even fixed several errors myself. This one I'm having major troubles with. The script is WebAdverts. Anyway, I'm receiving these errors The first is when I call up my admin page to start the program. The second is what shows in my error log... BTW, my path is correct. Please, please help?
======================================== The first access will ask for a password once the script is able to get into the data directory (this is the problem however) THE ERROR:File Permission Error!

--------------------------------------------------------------------------------

The server encountered an error while trying to access adcount.txt!

The most likely cause of the problem is a permissions error in your adverts directory (/www/htdocs/personality-creations.com/cgi-bin/bannerads/data/). Make sure that the directory exists and that it is set world-writable.
--------------------------------------------------------------------------------

I've tried the script with and without the forward slash at the end and get the same message. I tried to chmod the data directory 755 and 777 and and still come up with the same error. What am I doing wrong? It says to chmod it a+w, I'm not too sure what that means in numbers, but I figured it should work regardless ( I could be wrong) with 777.
============================================
Also, when the script was called- it calls the display cgi.... the error listed is what I found in my error log:
Can't locate /www/htdocs/personality-creations.com/cgi-bin/bannerads/ads_display.pl in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at /www/htdocs/personality-creations/cgi-bin/bannerads/ads.pl line 21.
[Fri Jan 28 13:36:29 2000] [error] [client 216.70.80.137] Premature end of script headers: /www/htdocs/personality-creations/cgi-bin/bannerads/ads.pl
Can't locate /www/htdocs/personality-creations.com/cgi-bin/bannerads/ads_display.pl in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at /www/htdocs/personality-creations/cgi-bin/bannerads/ads.pl line 21.
[Fri Jan 28 14:45:27 2000] [error] [client 216.70.80.137] Premature end of script headers: /www/htdocs/personality-creations/cgi-bin/bannerads/ads.pl
============================================== I really have to get this resolved, it's driving me crazy :-(
My sincer thanks to anyone who can help me!
Jackie




brian.hayes
User

Feb 1, 2000, 6:48 PM

Post #2 of 8 (1440 views)
Re: banner exchange script problem [In reply to] Can't Post

Would it be possible for you to post the cofiguration section of the program. I belive this will help.

Thanks,

Also the numbers for file permission's:

777

The first 7 is user, the second 7 is group, and the third is other.

1 = execute
2 = write
4 = read

so 700 would be only the user can R - W - E

770 would be the user and group
777 user, group , and other.

Hope this helps,

Brian Hayes


prsnlty
Deleted

Feb 1, 2000, 7:21 PM

Post #3 of 8 (1440 views)
Re: banner exchange script problem [In reply to] Can't Post

Thank you Brian :-) You were a big help! You told me some things that I needed to know. I have most of the program running but I'm still having some other problems. The writer of the program is not very helpful, as a matter of fact he's sarcastic and basically tells you to find it out yourself in his docs.txt. I tried that but his documentation shows the same behaviour as he does unfortunately. Would you believe he doesn't even mention that in the program that there are two other scripts that need to be configured as well? He concentrated only on three of them. My Hosts programmer saw this and is now helping me with it. He says there were some problems with the script it's self and he fixed the errors... but still has more to repair.
This was a blessing in a way though, it just made me want to learn the language all the more! I now have the Whole book set from O'Reiley on learning Perl. I even bought the CD Bookself :-) I love your website as well and expect to spend much time here! Just as soon as I fill my site up a little more I intend to take a break in order to learn CGI/Perl along with some CSS.

Again, thank you you're very nice and helpful and it is greatly appreciated :-)
Jackie


brian.hayes
User

Feb 1, 2000, 7:28 PM

Post #4 of 8 (1440 views)
Re: banner exchange script problem [In reply to] Can't Post

Now that is the spirit!!!! Although you cant control the personality of the programers, You can control what you get out of it...

Plus thank you for this posting, we try to provide people with honest help and hope they too get excited about perl as we are.

Good luck to your programing and remimber if you ever need the help, whe are here..

Brian Hayes


prsnlty
Deleted

Feb 1, 2000, 7:29 PM

Post #5 of 8 (1440 views)
Re: banner exchange script problem [In reply to] Can't Post

Oh, I meant to ask: So what does a+w mean?
The w would be write correct? What does a mean. I see it all the time, why don't they just give you the numbers?
Thank you so much for the chmod number explaination now I understand them :-D
Jackie


brian.hayes
User

Feb 1, 2000, 7:41 PM

Post #6 of 8 (1440 views)
Re: banner exchange script problem [In reply to] Can't Post

Not to shure, can you post someones directions. I.E. the part that is saying this. I only know the "a" for "file ready for archiving" under windows. Every system is diferent.

Brian Hayes


Jasmine
Administrator / Moderator

Feb 1, 2000, 8:59 PM

Post #7 of 8 (1440 views)
Re: banner exchange script problem [In reply to] Can't Post

chmod a+x on a *nix system means that everyone has execute permissions.

Who Gets Permission
u = user that owns the file
g = group that owns the file
o = other (everyone else)
a = all (everybody)

What Kind of Permission
r = read the file
w = write/edit
x = execute the file as a program


[This message has been edited by Jasmine (edited 02-01-2000).]


prsnlty
Deleted

Feb 1, 2000, 9:25 PM

Post #8 of 8 (1440 views)
Re: banner exchange script problem [In reply to] Can't Post

Thank you Jasmine :-)
I keep notes on everything I learn and your information has been added to them. Brian and you have been very nice and helpful!
I also LOVE your tutorials! I'm reading them now :-)
Jackiexc

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives