Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2640C18270 for ; Sat, 17 Oct 2015 00:41:20 +0000 (UTC) Received: (qmail 6650 invoked by uid 500); 17 Oct 2015 00:41:17 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 6607 invoked by uid 500); 17 Oct 2015 00:41:17 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 6597 invoked by uid 99); 17 Oct 2015 00:41:17 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Oct 2015 00:41:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0FA3DC0EB6 for ; Sat, 17 Oct 2015 00:41:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.751 X-Spam-Level: **** X-Spam-Status: No, score=4.751 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_INFOUSMEBIZ=0.75, KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id VUj6YNC8HaDt for ; Sat, 17 Oct 2015 00:41:07 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id CB7E721165 for ; Sat, 17 Oct 2015 00:41:06 +0000 (UTC) Received: by qkap81 with SMTP id p81so61796753qka.2 for ; Fri, 16 Oct 2015 17:41:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=hGpxuTUo1c/W/C3XakllOyd7l0INNfxStSP38w87at8=; b=fWN3QVq3LYw5VsOoO7aLVcFbdr49GZOmf8EgHu+g2PsEHnE2PeZuBjx5HMoW6Ip+ek RVw4JfFcAgVbctCCmaTXDio046xGqjHkWSVt6xhFhm87eg7flemXwmYL5NudXYwhjP/V hBmcj6bX8CrKLoIiO7MCHyTvDJeHfEnuRCKP4hU3Sk9wCcaP4uZYJTdbzzR1imDUCMHz h/DrMXII31hr+jY3QNXJYQIBoeIRyfzUqkD9p1SUIIIT7/E0Mt7M3oss5ksbmVF6+US5 ZqUxFQrgp1OYkCDx2Pt1ARqtxYLNMjyzVy/SgadXiPz2wJE48CzqG177zrfcDSWcNcPa BVhA== X-Gm-Message-State: ALoCoQntldxmBTmbczZTHd5CsZHK/Sn+KWkVgobCsjSiHICQF3Q+823vEypn3fQm0NnEqk3JDM96 MIME-Version: 1.0 X-Received: by 10.55.53.136 with SMTP id c130mr22416683qka.63.1445042465815; Fri, 16 Oct 2015 17:41:05 -0700 (PDT) Received: by 10.55.215.18 with HTTP; Fri, 16 Oct 2015 17:41:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 16 Oct 2015 17:41:05 -0700 Message-ID: From: Kurtis Rader To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=001a11476a68dc69160522422a90 Subject: Re: [users@httpd] Re: make apache 2.4.17 portable under ubuntu --001a11476a68dc69160522422a90 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Oct 16, 2015 at 5:23 PM, Good Guy wrote: > On 16/10/15 22:11, Raf Roger wrote: > >> I used during several years a portable version of my webserver under >> windows 7/8 to shift from laptop to desktop computer and without >> duplicating webserver from one computer to another. >> >> i'm trying to do the same under ubuntu 15.04 however it seems that only >> few people did it. >> 1. why people under linux do not use portable webserver (e.g. on USB >> drive) ? >> 2. how can i make apache 2.4.x portable, so to have all needed files >> (apache, php, openssl, etc) on a USB drive and make it work as standard = web >> server? >> so in fact how to make apache looks after its configuration files and >> librairies under its own directory where it will be stored ? >> > > I suspect this may not be possible in a Linux environment because Linux > doesn't use binaries. > > In Windows, it is pretty easy to create executable binaries and put them > on flash drive with all the necessary configuration files and voil=C3=A0 = it is > done. I have used in Windows by downloading the Apache binaries from > http://apachelounge.com and php binaries from http://windows.php.netand > mysql binaries from mysql.com and you are done. With Linux, this can't > be done as far as I can see because of the way how linux (ubuntu, Mint et= c > etc) works. My experience of Linux is limited so I too would like to kno= w > if it is possible to launch an Apache server from usb drive. > That is not correct, Good Guy. Linux, and pretty much any operating system, uses binary programs. Which means programs that consist of machine executable op codes. And Apache HTTP server on Linux is no different: it is a binary program. I would love to know where you got the idea that Linux does not use binaries. It's trivial to create a Apache HTTP server that can be run from a USB stick if all of the systems have compatible architectures (e.g., x86, x86_64, or ppc) and support libraries (e.g., the libc library). It's more difficult but still possible to create a portable server even if those assumptions are not true. You simply need to build everything from source and specify an installation root directory that will be valid for all the systems on which you want to run the server (i.e., a directory where you can mount the USB filesystem or symlink to it). You can't simply copy the httpd binary and related files that are created for a given distribution because the various parts are spread all over (e.g., /usr/bin and /usr/lib). Which is to say the only common directory for all the files you need is root ("/"). P.S., There are very fringe, unusual, computers that directly execute byte code for languages like Forth and Java rather than machine language as typically understood by most CPUs. But even those systems are effectively executing binaries. --=20 Kurtis Rader Caretaker of the exceptional canines Junior and Hank --001a11476a68dc69160522422a90 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On F= ri, Oct 16, 2015 at 5:23 PM, Good Guy <xfsgpr@hotmail.com> = wrote:
On 16/10/15 22:11, Raf Roger wrote= :
I used during several years a portable versi= on of my webserver under windows 7/8 to shift from laptop to desktop comput= er and without duplicating webserver from one computer to another.

i'm trying to do the same under ubuntu 15.04 however it seems that only= few people did it.
1. why people under linux do not use portable webserver (e.g. on USB drive)= ?
2. how can i make apache 2.4.x portable, so to have all needed files (apach= e, php, openssl, etc) on a USB drive and make it work as standard web serve= r?
so in fact how to make apache looks after its configuration files and libra= iries under its own directory where it will be stored ?

I suspect this may not be possible in a Linux environment because Linux doe= sn't use binaries.

In Windows, it is pretty easy to create executable binaries and put them on= flash drive with all the necessary configuration files and voil=C3=A0 it i= s done.=C2=A0 I have used in Windows by downloading the Apache binaries fro= m = http://apachelounge.com and php binaries from http://windows.php.netand= mysql binaries from mysql.com and you are done.=C2=A0 With Linux, this can&= #39;t be done as far as I can see because of the way how linux (ubuntu, Min= t etc etc) works.=C2=A0 My experience of Linux is limited so I too would li= ke to know if it is possible to launch an Apache server from usb drive.
=

That is not correct, Good Guy. Linux, and = pretty much any operating system, uses binary programs. Which means program= s that consist of machine executable op codes. And Apache HTTP server on Li= nux is no different: it is a binary program. I would love to know where you= got the idea that Linux does not use binaries.

It= 's trivial to create a Apache HTTP server that can be run from a USB st= ick if all of the systems have compatible architectures (e.g., x86, x86_64,= or ppc) and support libraries (e.g., the libc library). It's more diff= icult but still possible to create a portable server even if those assumpti= ons are not true. You simply need to build everything from source and speci= fy an installation root directory that will be valid for all the systems on= which you want to run the server (i.e., a directory where you can mount th= e USB filesystem or symlink to it). You can't simply copy the httpd bin= ary and related files that are created for a given distribution because the= various parts are spread all over (e.g., /usr/bin and /usr/lib). Which is = to say the only common directory for all the files you need is root ("= /").

P.S., There are very fringe, unusual, co= mputers that directly execute byte code for languages like Forth and Java r= ather than machine language as typically understood by most CPUs. But even = those systems are effectively executing binaries.

--
Kurtis Rader
Ca= retaker of the exceptional canines Junior and Hank
--001a11476a68dc69160522422a90--