500 Internal Server error

Status
Not open for further replies.

ecuri

Active Member
34
2011
2
0
Hi, i get the following error

Code:
[Mon Feb 06 17:51:38 2012] [error]  File does not exist: /home/prordp/public_html/500.shtml
[Mon Feb 06 17:53:09 2012] [error]  suexec failure: could not open log file
[Mon Feb 06 17:53:09 2012] [error]  fopen: Permission denied
[Mon Feb 06 17:53:09 2012] [error]  Premature end of script headers: install.cgi
[Mon Feb 06 17:53:09 2012] [error] File does not exist: /home/prordp/public_html/500.shtml
[Mon Feb 06 17:53:12 2012] [error]  suexec failure: could not open log file
[Mon Feb 06 17:53:12 2012] [error]  fopen: Permission denied
[Mon Feb 06 17:53:12 2012] [error]  Premature end of script headers: install.cgi
[Mon Feb 06 17:53:12 2012] [error]  File does not exist: /home/prordp/public_html/500.shtml

It happens when i open a script. (.../install.cgi)
The script has the right chmod 0755.

Has anyone an idea how to solve that?

Perlversion : 5.14.2
 
16 comments
How are you running the script? Is the owner the same as user or is it owner?

Have you checked the script to see if this error is a real file or just an suexec error?
 
I run it via a Browser so by http.

Seems to be a general problem with the sheban.
I uploaded a test.cgi with following inside it:
Code:
#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "<html><head>";
print "<title>CGI Test</title>";
print "</head>";
print "<body><h1>I just wrote a web page using Perl!</h1>";
print "</body></html>";

Tested it with #!/usr/bin/perl and #!/usr/local/bin/perl . Both didnt worked. Started telnet with
Code:
 which perl
and the answer is /usr/local/bin/perl
Quite strange isnt it ?

How do i look up which user is the owner of the script?
 
hello,
looks like you suexec is not able to create log file.

just try to disable suexec and see if that will work .

Code:
mv /usr/sbin/suexec /usr/sbin/suexec.bak
and restart apache

Highest Regards
Mohammed H
 
Get this

Code:
root@ns1 [~]# whereis suexec
suexec:
root@ns1 [~]# mv /usr/sbin/suexec /usr/sbin/suexec.bak
mv: cannot stat `/usr/sbin/suexec': No such file or directory
 
Got this
Code:
 mv /usr/local/apache/bin/suexec /usr/local/apache/bin/suexec.bak 


root@ns1 [~]# /sbin/service httpd restart
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
 
No it doenst load

Code:
[Mon Feb 06 19:41:18 2012] [error]/usr/bin/perl: symbol lookup error: Modules/WSD/Filter51064.so: undefined symbol: Perl_Istack_sp_ptr
[Mon Feb 06 19:41:18 2012] [error]  Premature end of script headers: install.cgi
[Mon Feb 06 19:41:18 2012] [error]  File does not exist: /home/prordp/public_html/500.shtml
[Mon Feb 06 19:41:24 2012] [error] /usr/bin/perl: symbol lookup error: Modules/WSD/Filter51064.so: undefined symbol: Perl_Istack_sp_ptr
[Mon Feb 06 19:41:24 2012] [error] Premature end of script headers: install.cgi
[Mon Feb 06 19:41:24 2012] [error]  File does not exist: /home/prordp/public_html/500.shtml
 
i am sure that this is not perl probelm 100% and this is script probelm its not look like the perl probelm not at all so why you all wasting time on this to saying him that this is perl probelm

dude change or re download your script form where you buy it and start it form start

what i can say is that this is not perl problem
 
If you are his host say so but otherwise how can you be 100% sure??

to test perl on apache try this tutorial
Testing Apache - Perl[SIZE=-2]
[SIZE=-2] [SIZE=-2]
[/SIZE]

[SIZE=-2]ed[/SIZE]
[SIZE=-2]a[/SIZE]
[SIZE=-2]#!/usr/bin/perl[/SIZE]
[SIZE=-2]print ("Content-Type: text/html\n\n");[/SIZE]
[SIZE=-2]print "Hello World...Perl is working through Apache!";[/SIZE]
[SIZE=-2]exit 0;[/SIZE]
[SIZE=-2].[/SIZE]
[SIZE=-2]w test1.pl[/SIZE]
[SIZE=-2]q[/SIZE]
[SIZE=-2]chmod uga+x test1.pl[/SIZE]
[/SIZE]
Now open this page through your browser running on the same machine:[/SIZE]
[SIZE=-2] [SIZE=-2]http://yorsite/cgi-bin/test1.pl[/SIZE]

[/SIZE]
You should get the "Hello World" message displayed in your browser.
 
the issue why your getting that problem is because html::parser module was not compiled with all the extra modules included..

A FULL reinstall of perl and fixing perl locations will fix your script
 
Status
Not open for further replies.
Back
Top