On 2015-10-19 10:49, Bremser, Kurt (AMOS Austria GmbH) wrote:
1. all systems must have the same Ubuntu release.
at least compatible. aka binary compatible
This would be ideal - however, you could modify the apachectl to determine where it lives and use relative paths2. on all systems, the stick needs to be mounted on the same directory
to refer to the conf, modules, etc. that you want to load.
Specifying your own --prefix (e.g., with a relative path in it, rather than absolute) may help. As you probably need root access to start httpd - you might also be able to create a symbolic link that your conf files use - but will point them at the USB location.3. build apache with a apache root directory that is located on the mounted stick. Make sure that nothing escapes you (conf location etc) That should do the trick.
In short - where there is a will - there is a way!
I have done a similar thing in AIX, where I installed apache in a VG apart from rootvg that is shared between primary and backup server. Kurt Bremser AMOS Austria Newton was wrong. There is no gravity. The Earth sucks. ________________________________ Von: Raf Roger [raf.news@xxxxxxxxx] Gesendet: Freitag, 16. Oktober 2015 23:11 An: users@xxxxxxxxxxxxxxxx Betreff: make apache 2.4.17 portable under ubuntu [wd-vc] Hi, 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 ? thanks a lot. -- Alain ----------------------------------------------------------- MySQL 5.6.x Apache 2.4.7 / OpenSSL 1.0.1c Tomcat 7.17 PHP 5.5 AMOS Austria GmbH 1130 Wien, Hietzinger Kai 101-105 FN 365014k, Handelsgericht Wien UID: ATU 66614737 http://www.allianz.at ******************************************************** Dieses E-Mail und allfaellig daran angeschlossene Anhaenge enthalten Informationen, die vertraulich und ausschliesslich fuer den (die) bezeichneten Adressaten bestimmt sind. Wenn Sie nicht der genannte Adressat sind, darf dieses E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen Personen zugaenglich gemacht noch in anderer Weise verwertet werden. Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten wir Sie, dieses E-Mail und saemtliche angeschlossene Anhaenge zu loeschen. Please note: This email and any files transmitted with it is intended only for the named recipients and may contain confidential and/or privileged information. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication to others and notify the sender immediately. Then please delete the email and any copies of it. Thank you. ********************************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx