You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/04/11 01:24:08 UTC

DO NOT REPLY [Bug 53059] New: Make httpd easier relocatable by using a variable sbindir

https://issues.apache.org/bugzilla/show_bug.cgi?id=53059

             Bug #: 53059
           Summary: Make httpd easier relocatable by using a variable
                    sbindir
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: i.galic@brainsware.org
    Classification: Unclassified


Created attachment 28577
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28577
variable sbindir

In order to be easily relocatable, make apachectl use a variable sbindir.

That way we can ./configure --prefix=/opt/foo && make && make install

and then cp -r /opt/foo /opt/bar and have a new instance to run with.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 53059] Make httpd easier relocatable by using a variable sbindir

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53059

--- Comment #1 from Igor Galić <i....@brainsware.org> 2012-04-11 09:53:42 UTC ---
I have made slight modifications to this patchset -- to actually work. - But of
course it only works with the default layout:

bin/apachectl:

  HTTPD="$SBINDIR/httpd"
  #
  # pick up any necessary environment variables
  if test -f $SBINDIR/envvars; then
    . $SBINDIR/envvars
  fi

  if test "x$SERVER_ROOT" != "x"; then
    HTTPD="$HTTPD -d $SERVER_ROOT"
  fi


bin/envvars:

  envvars=$( readlink -f $0 )
  export SERVER_ROOT=${envvars%*/*/*}

conf/httpd.conf:

  ServerRoot "${SERVER_ROOT}"
  DocumentRoot "${SERVER_ROOT}/htdocs"
  # .. etc..

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 53059] Make httpd easier relocatable by using a variable sbindir

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53059

Igor Galić <i....@brainsware.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org