Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: stiperstones on April 28, 2006, 11:52:50 AM

Title: Help with installing web application into /opt
Post by: stiperstones on April 28, 2006, 11:52:50 AM
Trying to install gallery2 into /opt

create
"webapplication" directory in /opt

then
# chmod 755 /opt/webapplication

Set the ownership of the /opt/webapplication
# chown -R root.shared /opt/webapplication

Templating
# mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

add
pico -w /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99webapplication

add to this file

Alias /webapplication /opt/webapplication

<Directory /opt/webapplication>
AddType application/x-httpd-php .php .php4 .phtml
Options Indexes +Includes FollowSymLinks
order deny,allow
deny from all
allow from all
</Directory>

Save it

Restart the web services:
# service httpd restart
# service httpd-e-smith restart

is this the correct way to do this

help greatly appreciated

thanks in advance
Title: Re: Help with installing web application into /opt
Post by: byte on April 28, 2006, 12:17:26 PM
Quote from: "stiperstones"

Restart the web services:
# service httpd restart
# service httpd-e-smith restart


After you saved it don't forget to expand the template...

expand-template /etc/httpd/conf/httpd.conf

And restarting the services we don't actually use "service" anymore I would actually do...

/etc/rc7.d/S**httpd graceful

Where ** is a number, then do the same for the other
Title: Re: Help with installing web application into /opt
Post by: stiperstones on April 28, 2006, 12:50:38 PM
Quote from: "byte"
Quote from: "stiperstones"

Restart the web services:
# service httpd restart
# service httpd-e-smith restart


After you saved it don't forget to expand the template...

expand-template /etc/httpd/conf/httpd.conf

And restarting the services we don't actually use "service" anymore I would actually do...

/etc/rc7.d/S**httpd graceful

Where ** is a number, then do the same for the other


thank you for your quick response