Test one: does the file actually exist. It is possible that the user is different, or something else in the park is wrong
Test two: are the permissions on the file and the directories leading up to the file correct. If the process can't see the file, then there will be a problem. Test three: Is there config right? It is possible that the server defines a location the cgi script must be in and you have put the file in the wrong place (or used an absolute path instead of a relative path in the config). On Tue, Dec 5, 2017, 10:18 SSC_perl <p...@surfshopcart.com> wrote: > I'm hoping someone has seen this before and can point me in the > right direction. I'm moving my site to a VPS to be able to use a more > modern version of Perl, but I've run into a problem. > > I installed perlbrew along with Perl 5.26.1. That went smoothly. > However, when I try to run even a small test script in a browser, the > server returns this: > > lscgid: execve():/home/user/www/cgi-bin/test.pl: No such file or directory > > The perlbrew installation on my Mac works perfectly, but on this > *nix server, it doesn't**. The VPS is using LiteSpeed, but I've been told > it's a drop-in replacement for Apache, so everything *should* work the same > as before. > > Do I need to do something more than just putting the perlbrew perl > path in the shebang line? > > Has anyone seen anything like this before? I'm working with my > web host on this, but so far they don't seem to know what's going on, so I > thought I'd ask here just in case. > > Thanks, > Frank > > ** Running the script in terminal works properly, just not in the browser. > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >