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

 

 

 

[Solved] Upgrade Apache2 from 2.4.10 to 2.4.41

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

[Solved] Upgrade Apache2 from 2.4.10 to 2.4.41

#1 Post by coppolino97 »

Hi all,
I need to upgrade an Apache2 server to security reason.
I have searched online, but I did not find a way to update Apache2 web server on a Debian server.
Can anyone suggest the right way?

Thanks so much :D
Last edited by coppolino97 on 2020-05-10 08:29, edited 1 time in total.
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Upgrade Apache2 from 2.4.10 to 2.4.41

#2 Post by kedaha »

How about backports?

Code: Select all

$ rmadison apache2 |grep buster-backports 
apache2    | 2.4.41-1~bpo10+1  | buster-backports
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Upgrade Apache2 from 2.4.10 to 2.4.41

#3 Post by dilberts_left_nut »

Also worth nothing that the stable version receives support from the Debian Security team, so will be much more "secure" than the one from backports (which you'll need to manage yourself).
AdrianTM wrote:There's no hacker in my grandma...

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Upgrade Apache2 from 2.4.10 to 2.4.41

#4 Post by coppolino97 »

Hi all,
thanks for all information.
I don't know about backports, I am a new Debian user.
Thanks so much!
:D
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Upgrade Apache2 from 2.4.10 to 2.4.41

#5 Post by coppolino97 »

I am trying to use backports on my debian machine but I have problem.

This is my configuration file of source.list

Code: Select all

cat /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 9.0.0 _Stretch_ - Official amd64 NETINST 20170617-13:06]/ stretch main
#deb cdrom:[Debian GNU/Linux 9.0.0 _Stretch_ - Official amd64 NETINST 20170617-13:06]/ stretch main

deb http://ftp.it.debian.org/debian/ stretch main
deb-src http://ftp.it.debian.org/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile' (attivi)
deb http://ftp.it.debian.org/debian/ stretch-updates main
deb-src http://ftp.it.debian.org/debian/ stretch-updates main

#backports
deb http://deb.debian.org/debian stretch-backports main
What is wrong?
Thanks
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Upgrade Apache2 from 2.4.10 to 2.4.41

#6 Post by coppolino97 »

Hi all,
I have solved this problem.

You can upgrade to Apache2 2.4.41 just using Debian 10 (not working with Debian 8 or Debian 9!)

1)Edit configuration file of APT

Code: Select all

nano /etc/apt/source.list
2)Add these two repos

Code: Select all

deb http://ftp.debian.org/debian buster-backports main
deb-src http://ftp.debian.org/debian buster-backports main
3) Save source.list and update

Code: Select all

apt update 
Install Apache2 2.4.41
If you need to install Apache2 as new:

Code: Select all

apt install -t buster-backports apache2
Upgrade Apache2 2.4.41
If you have got a Web Server, but you want upgrade it:

Code: Select all

apt upgrade -t buster-backports apache2

Best regards
See you soon :D
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

Post Reply