Apache/CGI Error script not found?

Hello all,

In a Ubuntu 16.04 server running on a Pi, the Apache logs show “script not found or unable to stat: /usr/lib/cgi-bin/axcysconnex.cgi” whenever I try to run the web app. The .cgi file is present in the folder stated as well as the supporting folders provided by the compiler.

The owner/group are both root (root:root) and the permission are set to 755 for all folders and files. Can anyone tell me what I am doing wrong?
Thank you,

Tim

The cgi file is usually inside the app folder. So I would expect a path like cgi-bin/axcysconnex/axcysconnex.cgi.

I think I usually also set the permissions so that www-data owns everything since that’s the user the web server runs as.

Have you tried a simple test cgi to make sure the webserver settings are correct and the proper modules are turned on for running cgis?