Question

When I run my cgi app using the url "162.###.###.##/cgi-bin/WTG/webapptest.cgi" I get 500 Internal Server Error

Hi,

I have developed a testing CGI web app. After I transferred all the files, including the libraries, under the folder /usr/lib/cgi-bin/WTG/ and try to run it through web browser with the following url: 162.###.###.##/cgi-bin/WTG/webapptest.cgi I get the error 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.18 (Ubuntu) Server at 162.243.143.32 Port 80

Can anyone please help me out on this issue? Thank you in advance. Nikos

Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi all again.

SOLUTION FOUND!!!

After going through the above apache2/error.log and surfing the first line: error while loading shared libraries: libunwind.so.8: cannot open shared object file

it means that library “libunwind” was missing from my apache2 setup/configuration. When I executed the command from Terminal (logged in as root):

sudo apt-get install -y libunwind-dev

it installed several files and then my url works perfectly!!!

I hope my case helps others as well. Take care. nikos

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel