Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: wjhobbs on March 22, 2007, 07:31:15 PM
-
I have a test server in server-only mode. It is a fresh install with updates applied to bring it it SME 7.1.2. I have tried to use this post as a guide http://forums.contribs.org/index.php?topic=22307.0
I have installed my application in /usr/local/ledger-smb. I have set its ownership to www:www. There is a file 'index.html' in that directory.
I have created an ibay called ledger-smb and allowed for executable content and allowed local access no-passwords.
I created /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf and put into that a file called '95ledger-smb'. The content of this file is:
Alias /ledger-smb /usr/local/ledger-smb/
<Directory /usr/local/ledger-smb>
AllowOverride All
AddHandler cgi-script .pl
AddDefaultCharset On
Options ExecCGI Includes FollowSymlinks
Order Allow,Deny
Allow from All
</Directory>
<Directory /usr/local/ledger-smb/users>
Order Deny,Allow
Deny from All
</Directory>
(These were the recommended settings for this web app.)
I then expanded the template and restarted Apache. This fragment is included at the end of /etc/httpd/conf/httpd.conf
It is my understanding that when I use my web browser to go to '<domain name>/ledger-smb' I should get the index.html page that is in /usr/local/ledger-smb. What happens is that I get the standard "This information bay has not yet been customized." page.
Any suggestions for resolving this would be much appreciated.
John
-
You can get a webshare contrib that enables users to have their websites.
-
I have set its ownership to www:www.
Depending on what you have done, that may be a huge security risk! :shock: Be careful and only grant www:www ownership where it is truly needed. Avoid this at all costs.
I have created an ibay called ledger-smb...
That is a direct conflict. Your app is not installed in an ibay so no ibay is required. Delete the ibay. :wink:
Darrell
-
Thanks Darrell,
It was the ibay that caused the access problem.
As for the ownership, I was incorrect.
The web app install documentation recommends this for ownership of specific directories within the main application directory:
chown -hR www:www users templates css spool
Do you see issues with this?
Thanks for your help.
John
-
chown -hR www:www users templates css spool
Do you see issues with this?
Web apps often require a subset of directories/files to have ownership and rights set appropriate for the apps intended operations. This small subset appears ok. I interpretted your original post to say you set everything www:www, which should be avoided. :wink:
Darrell