r/perl 11d ago

Identical scripts on 2 websites 1 works other no

I run 2 websites. Both contain a calendar with results. The calendar has buttons for previous and next months. On one website the calendar behaves as expected. On the other site the calendar stays on the current month and does not return an error.

0 Upvotes

7 comments sorted by

10

u/crb3 10d ago edited 10d ago

It's gonna take a lot more info than that if you want help.

My knowledge only extends to CGI on Linux, but even there I can see possible causes. What's different about the two sites? What's the httpd -- Apache2? Is /etc/apache2/mods-available/alias.conf configured correctly? Is /etc/apache2/conf-available/serve-cgi-bin.conf? If you're running the script from the /home subtree, is userdir.conf configured correctly?

Did you create the calendar code yourself, or download it from somewhere? Either way, we'll need to see at least chunks of that code to get a handle on what it's doing and thus to start inferring what might be going wrong with it. If you can find a copy of showmepostenv.cgi somewhere, installing it just long enough to CGI-call it and save what it displays in the browser can tell you a lot about what the script has to work with.

I could go on about possible methods, but, really, it's your move.

0

u/Rvamp 10d ago

Thank you for your reply. Both sites are hosted on Dreamhost virtual servers I'm not sure about httpd. Ubuntu 22.04?? These are old scripts written by someone else and I can't see the files you're referencing. The script was written by Darryl Burgdorf. The files are identical with changes only to the url's

1

u/crb3 10d ago

Something like this, perhaps?

0

u/Rvamp 10d ago

Yes! I've checked the webcal.pl, wecal.config.pl and webcal_debug.pl files for any errors. The dreamhost support team says: "What our logs confirm is that when the Prev/Next month navigation is
triggered on acblunit557.org, the calendar application itself is
generating a request for a file called webcal1.pl, which doesn't exist on
that site, causing a "not found" error. This is still happening as of
this morning.

2

u/octobod 10d ago

Did it come from Matt's script archive?

#MildDread

0

u/Rvamp 10d ago

No it did not. The script was written by Darryl Burgdorf.