Forum Moderators: coopster & phranque

Message Too Old, No Replies

collective install

Duh!

         

eljefe3

4:54 am on Aug 31, 2000 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just did the install of the collective (switching from DT). However, there seems to be a slight problem. I edited the collective.cgi in Dreamweaver and then uploaded in ASCII. However, when I view the uploaded page in my browser, I see all the PERL code and not what I'm supposed to see. Help! Thanks

Brett_Tabke

8:53 pm on Sep 2, 2000 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hmm, I wouldn't use dreamweaver to edit it eljefe3. Sounds like it was changed to Dos/windows line enders instead of Unix line enders.

littleman

9:25 pm on Sep 2, 2000 (gmt 0)



Or, could your server not recognize the '.cgi' extension? It sounds simple but try to rename it with '.pl' and see what happens. I've run across some servers like this over the last year - it could happen if the server admin wasn't too thorough when he set things up.

eljefe3

4:45 am on Sep 4, 2000 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the advice on the non usage of Dreamweaver and the extension name. It turns out that my server didn't have cgi turned on on this domain. Everything is OK now. Thanks!

Brett_Tabke

1:49 pm on Sep 4, 2000 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



And thanks for the reminder little. I must put in that option.

eljefe3

2:23 pm on Sep 6, 2000 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm receiving the following error from my cgi debugger:
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/local/pkg/perl5/lib/sun4-solaris/5.00404 /usr/local/pkg/perl5/lib /usr/local/pkg/perl5/lib/site_perl/sun4-solaris /usr/local/pkg/perl5/lib/site_perl .) at /cgi/collective/collective.cgi line 96.

Which comes from this line:
" require LWP::UserAgent; "

However, when I remove this line the script works fine....Until I submit a URL.

Then I receive this error.
Can't locate object method "new" via package "LWP::UserAgent" at submit.lib line 25

Any idea on what I should have to replace " require LWP...etc?

Thanks

littleman

5:38 pm on Sep 6, 2000 (gmt 0)



Eljefe3, you do not have LWP installed on the server. That is going to complicate things. You need to ask you isp to install it - odds are they are going to give you some resistance, but they should get with the times. There is a way to install LWP locally, but then you are going to have to port Brett's script.

eljefe3

1:28 am on Sep 7, 2000 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Little,

Thank you. BTW what does LWP stand for?

littleman

2:24 am on Sep 7, 2000 (gmt 0)



It is a perl module that is used to communicate between computers. There is a lot that could be done with it including filling out forms, spidering web pages, snooping with different user agents, mirroring sites, and you could even make a
multi-threaded web server using it. Here is a link [linpro.no]

eljefe3

2:53 am on Sep 7, 2000 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Little,

Beautiful,thanks a lot. Nice link with good information.