DEV Community

Patrick Schanen
Patrick Schanen

Posted on

sudo add-apt-repository ppa:ondrej/apache2

➜  ~ sudo add-apt-repository ppa:ondrej/apache2
[sudo] password for webdev: 
You are about to add the following PPA:
 This branch follows latest Apache2 packages as maintained by the Debian Apache2 team with couple of compatibility patches on top.

It also includes some widely used Apache 2 modules (if you need some other feel free to send me a request).

BUGS&FEATURES: This PPA now has a issue tracker:

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating:
 More info:
Press Enter to continue or Ctrl+C to cancel

Executing: /tmp/tmp.nWSJlEb0rh/ --keyserver
gpg: requesting key E5267A6C from hkp server
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
Enter fullscreen mode Exit fullscreen mode
➜  ~ sudo apt-get update
Hit:1 xenial InRelease                                                                                                                   
Get:2 xenial-security InRelease [102 kB]                                                                
Hit:3 xenial InRelease                                                                                           
Ign:4 sonya InRelease                                                                                 
Hit:5 xenial InRelease                                                            
Get:6 xenial-updates InRelease [102 kB]                                                                                   
Hit:7 sonya Release                                                                                                    
Hit:9 xenial InRelease                                                                                                  
Hit:10 xenial InRelease                                                                          
Get:11 xenial-backports InRelease [102 kB]                        
Get:12 xenial InRelease [23,8 kB]                              
Hit:13 xenial InRelease                                                                                                                                                                                                                                           
Hit:14 xenial InRelease                                                                                                   
Get:15 xenial/main Sources [6.656 B]                                                                                        
Get:16 xenial/main amd64 Packages [13,0 kB]                                                                                 
Get:17 xenial/main i386 Packages [13,1 kB]                                                                                  
Get:18 xenial/main Translation-en [7.084 B]                                                                                 
Fetched 370 kB in 2min 14s (2.750 B/s)                                                                                                                                     
Reading package lists... Done                                                                                                                                              
Enter fullscreen mode Exit fullscreen mode
➜  ~ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libnghttp2-14 libssl1.1
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libnghttp2-14 libssl1.1
0 upgraded, 10 newly installed, 0 to remove and 24 not upgraded.
Need to get 3.215 kB of archives.
After this operation, 10,2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 xenial/main amd64 libssl1.1 amd64 [1.333 kB]
Get:2 xenial/main amd64 libapr1 amd64 [96,3 kB]                                       
Get:3 xenial/main amd64 libaprutil1 amd64 [89,6 kB]                                   
Get:4 xenial/main amd64 libaprutil1-dbd-sqlite3 amd64 [16,9 kB]                       
Get:5 xenial/main amd64 libaprutil1-ldap amd64 [15,0 kB]                              
Get:6 xenial/main amd64 libnghttp2-14 amd64 [80,0 kB]                                
Get:7 xenial/main amd64 apache2-bin amd64 [1.119 kB]                               
Get:8 xenial/main amd64 apache2-utils amd64 [143 kB]                               
Get:9 xenial/main amd64 apache2-data all [163 kB]                                  
Get:10 xenial/main amd64 apache2 amd64 [159 kB]                                    
Fetched 3.215 kB in 19s (162 kB/s)                                                                                                                                        
Preconfiguring packages ...
Selecting previously unselected package libssl1.1:amd64.
(Reading database ... 246675 files and directories currently installed.)
Preparing to unpack .../ ...
Unpacking libssl1.1:amd64 ( ...
Selecting previously unselected package libapr1:amd64.
Preparing to unpack .../ ...
Unpacking libapr1:amd64 ( ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../ ...
Unpacking libaprutil1:amd64 ( ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../ ...
Unpacking libaprutil1-dbd-sqlite3:amd64 ( ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../ ...
Unpacking libaprutil1-ldap:amd64 ( ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../ ...
Unpacking libnghttp2-14:amd64 ( ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../ ...
Unpacking apache2-bin ( ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../ ...
Unpacking apache2-utils ( ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../ ...
Unpacking apache2-data ( ...
Selecting previously unselected package apache2.
Preparing to unpack .../ ...
Unpacking apache2 ( ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu20) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libssl1.1:amd64 ( ...
Setting up libapr1:amd64 ( ...
Setting up libaprutil1:amd64 ( ...
Setting up libaprutil1-dbd-sqlite3:amd64 ( ...
Setting up libaprutil1-ldap:amd64 ( ...
Setting up libnghttp2-14:amd64 ( ...
Setting up apache2-bin ( ...
Setting up apache2-utils ( ...
Setting up apache2-data ( ...
Setting up apache2 ( ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
insserv: warning: current start runlevel(s) (empty) of script `apache-htcacheclean' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `apache-htcacheclean' overrides LSB defaults (0 1 6).
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu20) ...
Processing triggers for ureadahead (0.100.0-19) ...
Enter fullscreen mode Exit fullscreen mode
➜  ~ apache2 -v
Server version: Apache/2.4.29 (Ubuntu)
Server built:   2017-10-22T13:35:47
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

charbelsako profile image
Charbel Sarkis

Already ran this (except the installation.)
But I already have apache2 installed.

  • Will it cause problems?
  • Should I backup my files?
  • Should I remove apache2 that I have first?