4

This question already has an answer here:

I am just curious: Are there any 64 bit Linux systems, which support a 32 bit version of Apache? As far as I know, a 64 bit Linux system supports only an Apache 64 bit and a 32 bit Linux system supports only an Apache 32 bit.

Edit

My motivation was just to know, if and which Linux distribution also provide 32 bit packages for applications and / or libraries.

marked as duplicate by Braiam, drewbenn, Romeo Ninov, Jesse_b, Rui F Ribeiro Apr 21 '18 at 17:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 5
    Just curious as to what motivates you to have a 32 bit app under a 64 bit OS. What is your concern? – ajeh Apr 20 '18 at 16:39
  • 1
    I think his/her motivation is just to know if it works, since on the question he uses "as fas as i know, a 64 bit Linux system supports only an Apache 64 bit..." – user34720 Apr 20 '18 at 16:46
  • 1
    Define "support". Do you want to know if it will run? If the distro provides a straightforward way of installing it? If they will accept bug reports for that configuration? If they will provide you commercial support if you run it and it breaks? – hobbs Apr 20 '18 at 21:39
  • This question isn’t Debian-specific... – Stephen Kitt Apr 21 '18 at 8:21
12

Many distributions support this, in various ways.

On Debian and derivatives, you’d install using the amd64 architecture for the system (or even just the kernel), then add the i386 architecture (dpkg --add-architecture i386 followed by apt update) and install apache2:i386. See How do I run 32-bit programs on a 64-bit Debian/Ubuntu? for details.

On Fedora, you can install httpd.i686 directly on a 64-bit x86 system.

Other distributions have different ways to support this, the above isn’t exhaustive.

  • 2
    On Debian dpkg --add-architecture i386 to enable 32bit software to be installed . On Fedora you just need to install the package with the .i686 sufix as you said (yum install httpd.i686) – user34720 Apr 20 '18 at 16:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.