Re: Make apache2 (httpd) portable under Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Tha's not exactly true. You specify a default path absolute path, but
you can override these values with config on startup easily.

If you want to "install" apache without a default path or a relative
one, I don't think that can be done.

El lun., 3 feb. 2020 a las 15:30, Raf Roger (<raf.news@xxxxxxxxx>) escribió:
>
> Bonjour Lucien,
>
> I already read and understood what you wrote as this is the basic steps i already read before.
> In fact my goal is to do something like XAMPP for linux but with the following differences:
> - no root permissions needed
> - no installation needed, just to unzip the completed stack (apache, php, mysal) and to use a simple script to run/start stack servers.
> - users could unzip in whatever directory he wants, it will run normally. No need to unzip in a particular directory like /opt/lamp or /home/webserver... Basically it could be unzip in /$HOME/webserver or in /home/server/ or in /home/username/web/server-stack. Anyway the structure of directories in this folder will be always the same e.g.:
>  /apache
> / php
> / mysql
> ...
>
> in the step you wrote, by compiling and making install, it force any use to have it in 1 and only 1 directory as XAMPP does...and this is something i do not want.... as the final purpose is to move it on usb stick or in some directory in any other linux computer and to run website as demo e.g.
>
> naybe it's clearer now how i was planning this stuff.
>
> thx.
>
> Alain
>
> On Sat, Feb 1, 2020 at 1:05 PM Lucien Gentis <lucien.gentis@xxxxxxxxxxxxxxxx> wrote:
>>
>> Hello Raf,
>>
>> Le 31/01/2020 à 22:16, Raf Roger a écrit :
>>
>> Hi,
>>
>> I work on web development using several computers (laptop, desktop) and i do not have always access to internet.
>>
>> While i was under Windows i had a portable LAMP server and it was great as i was just able to sync it once online, to have it on other computers.
>>
>> I would like to do the same under Ubuntu 19.10 and i'm looking for information how to do it.
>> My first step would be to have apache2 (httpd) not depending on root permissions, but also running from any directory where the binaries are stored...
>>
>> See http://httpd.apache.org/docs/2.4/invoking.html
>>
>>
>> so if binary is set to /home/alain/webserver/apache or /home/$user/webserver/apache it should be able to run with configuration file, just by launching httpd start or something like that.
>>
>> however i'm lost with the source code while i compile it with --PREFIX and other option.
>>
>> Can someone help me to understand it better ?
>>
>> Once you have uncompressed the httpd tarball, you go to the root of the source tree then execute following command , for example:
>>
>> ./configure --prefix=/usr/local/httpd-2.4.41
>>
>> where /usr/local/httpd-2.4.41 is the root of the installation directory which will contain bin, doc, share, include,... directories.
>>
>> if there's no error, you execute then
>>
>> make
>>
>> to build httpd, then
>>
>> sudo make install
>>
>> to install it /usr/local/httpd-2.4.41
>>
>> Other configure options can be found via command :
>>
>> ./configure --help
>>
>> thx
>>
>> --
>> Alain
>>
>
>
> --
> Alain
> -----------------------------------------------------------
> Kubuntu 17.10
> MySQL 5.6.x
> Apache 2.4.25 / OpenSSL 1.0.2j
> Tomcat 7.17
> PHP 7.1.x



-- 
Daniel Ferradal
HTTPD Project
#httpd help at Freenode

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux