Koozali.org: home of the SME Server

enable execution of dynamic content in Primary

ldavies

enable execution of dynamic content in Primary
« on: April 18, 2004, 09:06:27 PM »
I am using 6.0

A few questions which should  be easy for an experienced user:

1) How do you enable execution of dynamic content in the Primary?  I can see how you can do it for an ibay.
2) If you cannot do this automatically then what is the reasoning for not allowing it?
3) If I want dynamic content should I then just point my primary to a new ibay i created that has it enabled?
4) If I do 3) I guess I would never use /home/e-smith/files/inays/primary/html/ .  Am I correct?

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
enable execution of dynamic content in Primary
« Reply #1 on: April 18, 2004, 09:35:18 PM »
I don't have a full answer (again)

Try the following command
# head /home/e-smith/accounts

After the normal header you should see a line like the following

Primary=ibay|CgiBin|enabled|Group|shared|Modifiable|no|Name|Primary i-bay|PasswordSet|no|Passwordable|no|PublicAccess|global|Removable|no|UserAccess|wr-admin-rd-group

You can see that (for me) the CgiBin is enabled which means that it supports dynamic content (eg cgi scripts).

I just tried on my 'almost fresh' 6.0.1 install and both CGI & PHP scripts are working. I don't think that you need to do anything.

-- If you already have dynamic content working in other ibays then ignore what follows--

I dropped a CGI script into
/home/e-smith/files/primary/cgi-bin

(I then had to 'chmod 4770 myscript')
It should then be working ...
http://testserver/cgi-bin/myscript

I put the classic test.php into,
/home/e-smith/files/primary/html

and checked ...
http://testserver/test.php

Ian
............

ldavies

enable execution of dynamic content in Primary
« Reply #2 on: April 18, 2004, 11:12:44 PM »
What about the security issue.  Why do they recommend separating public_html and the rest of the directories at www.geeklog.net if it is not important?

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
enable execution of dynamic content in Primary
« Reply #3 on: April 19, 2004, 01:30:31 AM »
The answer to this question is more applicable to the Geeklog thread so look at:
http://forums.contribs.org/index.php?topic=21463.0
............

Anonymous

enable execution of dynamic content in Primary
« Reply #4 on: April 19, 2004, 05:09:31 AM »
OK so now I understand.  

First I should say that I really appreciate what Abe has done because unless you really know what you are doing it can be a bit of a bear to get geeklog working on an esmith server.

However I really wish the rpm would work such that when you went to www.mydomainname.com the geeklog index.php would come up rather than having to go to www.mydomainname/geeklog.

Thanks again Abe

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
enable execution of dynamic content in Primary
« Reply #5 on: April 19, 2004, 09:15:48 PM »
This last question is answered in the Geeklog thread rather than this 'enable execution of dynamic content in Primary' thread

http://forums.contribs.org/index.php?topic=21463.msg87085#msg87085

Ian
............