Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
own3mall
Posts: 3
Joined: 2018-05-22 17:59

Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#1 Post by own3mall »

I develop a web panel for Ubuntu that I have also modified to work with Debian. However, one of my latest incoming edits, which uses the ProxyFCGISetEnvIf (https://httpd.apache.org/docs/2.4/mod/m ... GISetEnvIf) Apache2 directive, will not work unless I can get Apache 2.4.26+ installed on Debian 7, Debian 8, and Debian 9.

Is there any way to get a version of apache2 greater than 2.4.26+? In Ubuntu, I can add this ppa:

https://launchpad.net/~ondrej/+archive/ubuntu/apache2

Is there something equivalent I can do for Debian? That ppa won't import into debian for some reason:

Code: Select all

root@debian:~# apt-get update
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.us.debian.org/debian stretch InRelease                  
Hit:3 http://ftp.us.debian.org/debian stretch-updates InRelease                
Hit:4 http://ftp.us.debian.org/debian stretch Release                          
Ign:5 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic InRelease         
Ign:7 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic Release
Ign:8 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main all Packages
Ign:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main amd64 Packages
Ign:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en_US
Ign:11 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en
Ign:8 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main all Packages
Ign:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main amd64 Packages
Ign:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en_US
Ign:11 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en
Ign:8 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main all Packages
Ign:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main amd64 Packages
Ign:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en_US
Ign:11 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en
Ign:8 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main all Packages
Ign:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main amd64 Packages
Ign:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en_US
Ign:11 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en
Ign:8 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main all Packages
Ign:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main amd64 Packages
Ign:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en_US
Ign:11 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en
Ign:8 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main all Packages
Err:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main amd64 Packages
  404  Not Found
Ign:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en_US
Ign:11 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic/main Translation-en
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/ondrej/apache2/ubuntu/dists/cosmic/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@debian:~# apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2 is already the newest version (2.4.25-3+deb9u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian:~# man add-apt-repository 
root@debian:~# add-apt-repository -y ppa:ondrej/apache2
gpg: keybox '/tmp/tmprzb1lfu8/pubring.gpg' created
gpg: /tmp/tmprzb1lfu8/trustdb.gpg: trustdb created
gpg: key 4F4EA0AAE5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 480, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 438, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'

root@debian:~# apt-get upgrade -u apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2 is already the newest version (2.4.25-3+deb9u4).
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian:~# apt-get upgrade -u apache2

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#2 Post by cuckooflew »

If I was a developer, (I am not) but if I was, first I would get a good undertstanding about the OS the application or "moduel" was going to be used on, it is obvious you don't know enough about Debian , and have not researched your project very well, first I would look at some of the Debian documentation, and there is this: https://wiki.debian.org/DontBreakDebian
Repositories that can create a FrankenDebian if used with Debian Stable:

Debian testing release (currently buster)

Debian unstable release (also known as sid)

Ubuntu, Mint or other derivative repositories are not compatible with Debian!
Ubuntu PPAs

You were lucky those Ubuntu ppas were not installable.

You could maybe find something using bacports of some sort, or compiling the apache version you need , for the specific Debian version, there are details about that available : How to install Apache 2.4.26 on Debian 7,
There are several results, it is pathetic when developers do not know how to do any reasearch, but anyway :
https://www.d7031.de/content/apache-24- ... d-squeeze/
--------------------------------------------
https://quickbuild.io/~kb9vqf/+archive/ ... e24-wheezy
--------------------------
https://serverfault.com/questions/60641 ... ian-wheezy
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

own3mall
Posts: 3
Joined: 2018-05-22 17:59

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#3 Post by own3mall »

Those back ports won't work. I need version 2.4.26 minimum. Yeah, I could always compile it, but that sucks. I should be able to use third party PPAs in Debian just as I can with Ubuntu.

I actually read the article here (https://wiki.debian.org/DontBreakDebian) before posting, and it's totally incorrect and completely flawed. I should be able to do whatever I want on Linux. It's interesting that Ubuntu is based on Debian, yet it's so much better.

I don't really want to support Debian, it's just that since Ubuntu is Debian based... it's not that hard to get my software working on it.

Your elitist response is of very little help. You have no idea how much research and time I've spent on my project, so you shouldn't be making such ludicrous and baseless assumptions.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#4 Post by stevepusser »

Debian testing has 2.4.29. It may be possible to backport, but if that fails, 2.4.26 debianized source should be available at snapshot.debian.org. That's pretty close to the 2.4.25 in Stretch.

Debian 7 LTS supports ends in a few days. I would not bother with wheezy, myself.

Ubuntu does not offer Debian support on their Launchpad service, despite what one might wish. However, one can build both Debian and Ubuntu packages on the openSUSE Build service, as well as a bunch of rpm distros, all from one set of source packages. There's a HOWTO here to get one started using it to build packages and host them.
MX Linux packager and developer

binaryanomaly
Posts: 3
Joined: 2018-05-13 18:43

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#5 Post by binaryanomaly »

I'd suggest you to look into https://www.docker.com/ and consider running your application in a container.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1402
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 68 times

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#6 Post by None1975 »

Nowadays there are many elementary things that are not known to the "creators" :D
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

own3mall
Posts: 3
Joined: 2018-05-22 17:59

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#7 Post by own3mall »

Looks like it works if I do the following on Debian 9:

Code: Select all

sed -i "s/cosmic/xenial/g" "/etc/apt/sources.list.d/ondrej-ubuntu-apache2-cosmic.list"
Debian 8:

Code: Select all

sed -i "s/cosmic/trusty/g" "/etc/apt/sources.list.d/ondrej-ubuntu-apache2-cosmic.list"
Going off this Ubuntu to Debian conversion chart:

https://askubuntu.com/questions/445487/ ... wer-445496

So, it must just be a question of the PPA not identifying Debian.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#8 Post by stevepusser »

Well, we haven't had any entries to the infamous thread of woe for a while. Many people have shared your opinion that the warnings in the wiki article are just to scare beginners, and that long time users are actually mixing Ubuntu, Sid, and Arch packages on their own machines as they snicker at the gullible noobs: http://forums.debian.net/viewtopic.php?&t=114130

(grabs a bag of popcorn and pulls up a chair)
MX Linux packager and developer

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1418
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 190 times

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#9 Post by steve_v »

Image
own3mall wrote:I actually read the article here (https://wiki.debian.org/DontBreakDebian) before posting, and it's totally incorrect and completely flawed.
Sure, if your goal isn't "avoid screwing up the package manager or breaking linking consistency", i.e. not breaking Debian. :roll:
You can install software compiled on and for another distro, even whole repos, assuming you pin them properly. Your OS your call, but there are still good reasons not to:
Updates may get out of sync, leading to package conflicts, silently broken dependencies, and unresolvable upgrades.
Dynamic linking consistency is not assured even when all required libraries are present, causing random runtime borkage.
Problems become difficult to diagnose and systems become difficult to support, as you now have a configuration that few are willing and able to replicate.
own3mall wrote:I should be able to do whatever I want on Linux.
Sure. Just don't expect anyone here to support it or recommend it to others, mixing distros simply creates too much woe.
own3mall wrote:It's interesting that Ubuntu is based on Debian, yet it's so much better.
That's entirely subjective, and I strongly disagree. But whatever turns your crank.

As to your question,

In order of least to most likely to break your OS:
Wuss out and just run Ubuntu.
Run apache on testing (or even Ubuntu) in a container, VM or chroot.
Install the required apache version manually in /usr/local/
Backport apache yourself: "2.4.26 debianized source should be available at snapshot.debian.org", and some variation on this.
Add testing repo, pinned.
Add some Ubuntu repo, pinned.
Use packages from J.Random blog.
Add any distro repo, without apt-pinning.
Widlarize the hard disk in rage, because we're not helping you enough.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Debian 9 Stretch, 8, and 7 - Get Apache 2.4.26+

#10 Post by stevepusser »

I had a few spare minutes, and got the source for Apache 2.4.27 from snapshot.debian.org (there's no 2.4.26), and loaded it into the OBS. It builds on Stretch with no additional backports, but requires a newer libssl-dev on Jessie, which in turn requires debhelper 10 (already in jessie-backports).

Wheezy needs even more, but since that's on its last legs, I'm not gonna worry about that.

You can check on the progress here: https://build.opensuse.org/project/show ... er:apache2

I'll leave it as a point 'n' click exercise for a motivated reader to find out how to add the repo and the repo key for the Debian 9 and 8 packages...think of it as an easier Myst.

Apache 2.4.29 from Buster needs three additional backports on Stretch, which is why I did the older version.
MX Linux packager and developer

Post Reply