Koozali.org: home of the SME Server

Help with installing web application into /opt

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Help with installing web application into /opt
« 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
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Help with installing web application into /opt
« Reply #1 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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Re: Help with installing web application into /opt
« Reply #2 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
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.