Failed php script execution in cgi-bin

Status
Not open for further replies.

xtrain

New Member
Messages
8
Reaction score
0
Points
0
Hi All,
I'm trying to execute a php script contained in the dir cgi-bin, but it doesn't work at all.
Here below I reported the error encountered:
"Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@xxx.x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


I've set 755 for the dir cgi-bin and I've tryed to modify .htaccess file, but without any good results.
The html files contained in public_html dir are all visible and working fine.


Do you know how I can solve this issue?
Thank you very much.


Regards,

Alex
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
PHP scripts should not be in the cgi-bin directory. PHP scripts can be executed anywhere. However, you can try searching for an error_log file in the cgi-bin directory and looking at the error log in cPanel.
 

xtrain

New Member
Messages
8
Reaction score
0
Points
0
Yes, I've tried to run php outside from cgi-bin and it works.
I'd prefer to keep this scripts inside that dir (only for convenience), but the error log in cPanel says:
[Tue Mar 30 17:41:08 2010] [error] [client 66.249.71.211] script not found or unable to stat: /home/xxx/public_html/cgi-bin/temp.php
and no more.

Thank you.

Bye,
Alex
 
Status
Not open for further replies.
Top