Forum Moderators: phranque

Message Too Old, No Replies

CGI - Internal Server Error

Just moving a server

         

marciano

1:39 am on Jul 9, 2008 (gmt 0)

10+ Year Member



I am moving my physical server.
Apache 2.2.4 -> 2.2.8
I kept the CGI settings but I am getting an error 500 when accessing the same file as the old server.
Just in case, I also tried a testing hello.pl

httpd.conf in both servers
LoadModule suexec_module modules/mod_suexec.so
LoadModule cgi_module modules/mod_cgi.so
AddHandler cgi-script .cgi .pl (or AddHandler cgi-script cgi pl)
<VirtualHost *:80>
<Directory /home/user/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
Allow from all
<Directory /home/user/public_html/search>
Options Indexes FollowSymLinks +ExecCGI
# or
Options Indexes FollowSymLinks ExecCGI
</Directory>
</Virtualhost>

These are the four last lines of /etc/httpd/logs/error_log
(just restarting Apache)
[Sun Jul 06 21:21:18 2008] [notice] caught SIGTERM, shutting down
[Sun Jul 06 21:21:18 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jul 06 21:21:18 2008] [notice] Digest: generating secret for digest authentication ...
[Sun Jul 06 21:21:18 2008] [notice] Digest: done
[Sun Jul 06 21:21:18 2008] [notice] Apache/2.2.8 (Unix) PHP/5.2.6 configured -- resuming normal operations

Thank you in advance for any help

jdMorgan

2:51 am on Jul 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Probably not this simple, but your first <Directory> container is unclosed -- and therefore affects the second one.

Jim

marciano

1:13 pm on Jul 9, 2008 (gmt 0)

10+ Year Member



Good point. But this is a transcription error.
The original httpd.conf contains the </Directory>

I cannot realize what is happening here.
I use Webmin to simplify sys operations.
Yesterday I got an error 500 performing a Webmin-CGI script.

jdMorgan

2:13 pm on Jul 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is in your server error log when you get these errors?

Jim

marciano

2:52 pm on Jul 9, 2008 (gmt 0)

10+ Year Member



[Tue Jul 08 22:52:00 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 08 22:52:00 2008] [notice] Digest: done
[Tue Jul 08 22:52:00 2008] [notice] Apache/2.2.8 (Unix) PHP/5.2.6 configured -- resuming normal operations
/etc/httpd/logs/error_log

[Wed Jul 09 11:47:30 2008] [notice] caught SIGTERM, shutting down
[Wed Jul 09 11:47:31 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jul 09 11:47:31 2008] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 09 11:47:31 2008] [notice] Digest: done
[Wed Jul 09 11:47:32 2008] [notice] Apache/2.2.8 (Unix) PHP/5.2.6 configured -- resuming normal operations