1826379 Members
4237 Online
109692 Solutions
New Discussion

Apache web server set-up

 
J Clouss
Occasional Advisor

Apache web server set-up

I am getting "500 Internal Server Error". I am not sure the cause of this error. The call executes correctly if I assign the proxy and uri to another machine that is using apache.

I believe the problem is in a configuration set-up on my server.
11 REPLIES 11
J Clouss
Occasional Advisor

Re: Apache web server set-up

Sorry, I forgot to include my system and apache information.
HP-UX 11.11
Apache2 2.0.35
Steven E. Protter
Exalted Contributor

Re: Apache web server set-up

Thats a pretty generic error code.

I've gotten when uploading a cgi script in binary mode(ascii only on those).

The error_log file might show you more information about the error. Looking at that log will help you isolate the issue prior to messing with your configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sean OB_1
Honored Contributor

Re: Apache web server set-up

Take a look at the httpd error log for more information on what exactly the 500 error is.

Post that information and we'll have a look.

Sean OB_1
Honored Contributor

Re: Apache web server set-up

Should have mentioned that it's typically under:

/log/httpd_error_log



J Clouss
Occasional Advisor

Re: Apache web server set-up

the errot file is complaining about "Bad header= here we are: / opt/apache/cgi-bin/sfs.cgi". However i have changed this file to only contain a print statement for debug purposes. I commented out the header from sfs.cgi and now it is complaining about "Exce format error"

access log contains "'POST /cgi-bin/sfs.cgi HTTP/1.1' 500 611"

Thanks for the inputs. This is all new to me.
Sean OB_1
Honored Contributor

Re: Apache web server set-up

Can you attach the script that is causing the problem?
J Clouss
Occasional Advisor

Re: Apache web server set-up

i will try. there will be 3 files and i do not know how to put multiple file in a reply.
J Clouss
Occasional Advisor

Re: Apache web server set-up

file 2
J Clouss
Occasional Advisor

Re: Apache web server set-up

file 3
Jim Butler
Valued Contributor

Re: Apache web server set-up

Verify that your document_root is correct and not nfs mounted.

That would is a varible set in your httpd.conf file, in your config directory.

i.e., if your document root is /home05/www/public_html, make sure that is what you have in your config file, not /home/www/public_html


Also, the dir should be owned by user www, and there should be an entry for www in your passwd table/map.

If changes are made, you will need to restart apache, or use the admin tool to restart it.

Good luck.
Man The Bilge Pumps!
J Clouss
Occasional Advisor

Re: Apache web server set-up

thank you very much!!!!

it was the owner/group setting that were not correct.

set those properly and it works great.

thanks again.