Forum Moderators: phranque

Message Too Old, No Replies

unrecodnized \x7f when running cgi from php

         

visamaster

4:53 pm on Mar 15, 2012 (gmt 0)

10+ Year Member



Hi there.
I use a cgi in my webpage when I want the user to pay me money. In a former server I had no problem but in my new one server I got an Internal Server Error in the browser when I call the cgi file from PHP.

I have a <form> with POST action="THE_CGI_FILE"

On putty I try "./file.cgi" and seems to run but "perl file.cgi" throws "unrecognized character \x7F at line 1" error. But in the former server was Ok.

I think I have all the necessary entries:

<VirtualHost ...

ScriptAlias /cgi-bin/ /path_to_cgi_folder/
<Directory "path_to_cgi_folder">
AllowOverride AuthConfig Indexes FileInfo Options Limit
AddHandler cgi-script .cgi .pl
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
AllowOverride Options FileInfo
</Directory>

...</VirtualHost>

What else do I need? Service provider tell me everything's fine...

lucy24

8:55 pm on Mar 15, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



fwiw... 7F is Delete. Somehow it's getting logged as a character instead of a function.