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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.