cgi errors

General ShopSite user discussion

cgi errors

Postby iford » Tue Oct 19, 2010 8:51 pm

Sorry if this is the wrong place but I am trying to setup 10.sp2r3 under Ubuntu 10.04 and Apache 2.2 I have setup the config file for the site with the ScriptAlias as well as the AddHandler cgi-script .cgi. The permissions for the folders as well as the files are setup for 755 and everything is owned by www-data but I still can not get the wwwinstall.cgi to work it comes back with 500 error on the browser and in the apache log I get the following errors

Apache Conf for the site
Code: Select all
ScriptAlias /cgi-bin/ /var/www/sitename/cgi-bin/

        <Directory /var/www/sitename/cgi-bin>
                Options ExecCGI
                AddHandler cgi-script cgi pl
        </Directory>



File Permissions
Code: Select all
/cgi-bin/
drwxr-xr-x 2 www-data www-data 4096 2010-10-19 19:53 shopsite-install

/shopsite-install/
-rw-r--r-- 1 www-data www-data     8330 2010-10-19 19:23 currency.dat
-rw-r--r-- 1 www-data www-data   512000 2010-10-19 19:23 data.tar
-rw-r--r-- 1 www-data www-data 14807040 2010-10-19 19:23 en-US-images.tar
-rw-r--r-- 1 www-data www-data   337920 2010-10-19 19:23 en-US.tar
-rw-r--r-- 1 www-data www-data   378880 2010-10-19 19:23 html.tar
-rw-r--r-- 1 www-data www-data     2502 2010-10-19 19:23 lpscript-English
-rw-r--r-- 1 www-data www-data    12286 2010-10-19 19:23 readme.txt
-rw-r--r-- 1 www-data www-data    12052 2010-10-19 19:23 readme.unix
-rw-r--r-- 1 www-data www-data 11929600 2010-10-19 19:23 sccgis.tar
-rw-r--r-- 1 www-data www-data 22220800 2010-10-19 19:23 sscgis.tar
-rw-r--r-- 1 www-data www-data      493 2010-10-19 19:24 store.auth
-rwxr-xr-x 1 www-data www-data      139 2010-10-19 19:53 test.cgi
-rwxr-xr-x 1 www-data www-data     7908 2010-10-19 19:23 testmm.cgi
-rwxr-xr-x 1 www-data www-data  5061744 2010-10-19 19:23 wwwinstall.cgi



Apache log errors
Code: Select all
(2)No such file or directory: exec of '/var/www/sitename/cgi-bin/shopsite-install/wwwinstall.cgi' failed, referer: http://yourdomian.com/cgi-bin/shopsite-install/
Premature end of script headers: wwwinstall.cgi, referer: http://yourdomain.com/cgi-bin/shopsite-install/


But if I run a .cgi script written in perl it works with out a hitch so I am at a complete loss here..

Any ideas anyone has that would be great.
iford
 
Posts: 4
Joined: Mon Jun 21, 2010 4:09 pm
Location: Bellevue

Re: cgi errors

Postby loren_d_c » Wed Oct 20, 2010 9:04 am

If this is 64-bit Ubuntu, then this is likely because the Ubuntu no longer installs the 32-bit compatibility libs by default, so you (or someone with root access on the server, if you don't have it) will need to install them. I believe the package name to install using apt-get is 'ia32-libs'.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: cgi errors

Postby iford » Wed Oct 20, 2010 9:13 am

That worked the cgi fired off the first time thank you. This might be something that would be good to include in the documentation due to more and more people are running 64bit versions of OS's on servers.

But thank you again.
iford
 
Posts: 4
Joined: Mon Jun 21, 2010 4:09 pm
Location: Bellevue

Re: cgi errors

Postby loren_d_c » Wed Oct 20, 2010 9:36 am

As far as I know, it's not an issue for all 64-bit Linux OS's, just recent versions of Ubuntu.
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: No registered users and 66 guests