Koozali.org: home of the SME Server

Could somebody help... please?

James Redfern

Could somebody help... please?
« on: October 12, 2002, 04:32:54 AM »
I had to reinstall due to a problem I had with the HDD. I used the 5.5 ISO, the available blade and then the 'dmc-SMEServer-5.5_Update2-pkg-2.noarch.rpm'.

Now, after patiently reinstalling the application software, I can no longer start 'http://www.europeancarsales.biz/cgi-bin/am/exec/am.cgi' -- although I can ftp to the server's subdirectory and see that the script is there, something stops the browser from seeing it and I get a HTTP 404 - File not found. This is a cgi that sits in the '/ibays/eurocars/cgi-bin/am/exec/' subdirectory as it is part of the 'europeancarsales' virtual domain.

I have made the following files executable:(chmod 755)

/am/exec/*.*

I have make the following directories and files writable:(chmod 777)

/am/data/
/am/data/*.*
/am/homepages/
/am/homepages/images/
/am/listings/
/am/listings/images/

There must be something I can reset so that I can reach or use these CGIs again... anyone got any ideas before I finally give up and throw the whole damn lot in the river?

JR.

Des Dougan

Re: Could somebody help... please?
« Reply #1 on: October 12, 2002, 06:05:38 AM »
James,

When you re-installed, did you enable execution of dynamic content in the ibay screen in the Server Manager?

Des Dougan

Terry Brummell

Re: Could somebody help... please?
« Reply #2 on: October 12, 2002, 08:51:32 AM »
Not sure if this applies, but there is a new php sandbox feature which only allows php content to run stuff in it's own ibay.  I'm not sure if it helps, but worth a look:

http://www.e-smith.org/faq.php3#6q12

James Redfern

Re: Could somebody help... please?
« Reply #3 on: October 12, 2002, 07:40:06 PM »
Thanks for trying... I can't get that URL to work but that wasn't the problem.  

It turned out to be a bug in 5.5, but as I had installed 'dmc-SMEServer-5.5_Update2-pkg-2.noarch.rpm' I would have thought this should have corrected the original problem, but apparently not.  Must have been introduced later.  You have to rectify it by going to...

# pico /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent

change line 51 which reads

$OUT .= " ScriptAlias /$ibay/cgi-bin $basedir/cgi-bin\n";

to

$OUT .= " ScriptAlias /cgi-bin $basedir/cgi-bin\n";

and save.
Expand the template

# /sbin/e-smith/expand-templates /etc/httpd/conf/httpd.conf

# /etc/rc.d/init.d/httpd-e-smith restart

Then you get your virtual domains CGI back again.  

Trust me.  I've been there!

JR.

James Redfern

Re: Could somebody help... please?
« Reply #4 on: October 12, 2002, 07:41:57 PM »
Sure did, but it was a bug in 5.5 apparently.  Just now posted the fix which I eventually found in the messagebase.  

Thanks for trying help though.

JR.

Paul Nesbit

Re: Could somebody help... please?
« Reply #5 on: November 05, 2002, 06:18:19 PM »
James Redfern wrote:
>
>  You have to rectify it by going to...
>
> # pico
> /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent
>
> change line 51 which reads
> [...]

Modifying the original templates should be avoided - instead create a custom template from the original and edit the copy.   See http://www.e-smith.org/custom/.

Using custom templates will allow your changes to be maintained across upgrades, will result in your changes being included in backups, and will ensure your system remains in a known, supportable configuration.

Thanks,
 
 Paul

James Redfern

Re: Could somebody help... please?
« Reply #6 on: November 05, 2002, 07:04:18 PM »
Point taken, but if you read http://forums.contribs.org/index.php?topic=14532.msg55507#msg55507 you will see that it was reported as a bug in July, so I hope they do overwrite it with subsequent releases, so it is right the next time and doesn't require this fix.

JR.