Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Script Execution Failed


Recommended Posts

I am hoping someone can help.


This is the first time I installed osCommerce manually and have a problem with the secure site. The non-secure site runs OK but when I try to go into "My Account" I get the following message:




CGIWrap encountered an error while attempting to execute this script:


Error Message: Exec format error

Error Number: 8


This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. That will prevent it from executing. An easy fix that takes care of this most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the first line of the script. This is typically a problem if the script was edited or uploaded from a DOS/Windows/Macintosh station to a unix based server.


If you are not the owner of this script, please forward this error and the URL that caused it to the script owner. That is often the component in the URL right after /cgiwrap/.




I don't know what this means. osCommerce did not install te necessary files inot the secure area, so I copied them myself from the non-secure area. Could this have something to do with it?


Any help is appreciated.

Link to comment
Share on other sites

It's OK. I found the answer....


For all those interested, if you come across this problem then you need to put the following line before the <?php in every .php file:



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...