On 2025-12-28 10:51:16, Crystal Kolipe wrote:
> On Sun, Dec 28, 2025 at 06:36:53PM +0800, W. D. Sadeep wrote:
> > And try to access the page at
> > https://www.asciimx.com/cgi-bin/search.pl, but I'm getting 500
> > internal server error.
> 
> Have you set up the chroot environment?
> 
> When you run programs via slowcgi, you need to copy the libraries
> those programs need in to the /var/www/ hierarchy, for example
> /var/www/usr/lib.
> 
> Use ldd to see what libraries are expected:
> 
> # ldd /usr/bin/perl
> 
> This should be sufficient for your example program above.
> 
> For more advanced applications, you might need to copy device files to
> /var/www/dev/ or populate the chroot environment in other ways.

That was it. Looks like I need to copy perl modules over as well, like,
to use 'strict' mode.

$ chroot /var/www/ htdocs/www.asciimx.com/cgi-bin/search.pl

exposes issues.

It's working now, thanks!

-- 
Sadeep
PGP: 103BF9E3E750BF7E

Reply via email to