Ubuntu xenial, apache; sudo: a2enmod: command not found

1,690 views
Skip to first unread message

Dan Hughes

unread,
Jan 6, 2017, 3:18:14 AM1/6/17
to Phusion Passenger Discussions
Following along the docs at https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/ownserver/apache/oss/xenial/install_passenger.html , having reached step 2, install passenger, I get the above error. I'd appreciate some advice about how to troubleshoot this. I've restarted the terminal session and had no joy. I get a similar error on apache2ctl. If you can share any ideas, thank you.

From the the terminal -

$ sudo apt-get install -y libapache2-mod-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  passenger passenger-dev passenger-doc
Suggested packages:
  www-browser
The following NEW packages will be installed:
  passenger-dev passenger-doc
The following packages will be upgraded:
  libapache2-mod-passenger passenger
2 upgraded, 2 newly installed, 0 to remove and 6 not upgraded.
Need to get 5,834 kB of archives.
After this operation, 34.7 MB of additional disk space will be used.
Get:1 https://oss-binaries.phusionpassenger.com/apt/passenger xenial/main amd64 libapache2-mod-passenger amd64 1:5.1.1-1~xenial1 [314 kB]
Get:2 https://oss-binaries.phusionpassenger.com/apt/passenger xenial/main amd64 passenger amd64 1:5.1.1-1~xenial1 [1,784 kB]
Get:3 https://oss-binaries.phusionpassenger.com/apt/passenger xenial/main amd64 passenger-dev amd64 1:5.1.1-1~xenial1 [2,697 kB]
Get:4 https://oss-binaries.phusionpassenger.com/apt/passenger xenial/main amd64 passenger-doc all 1:5.1.1-1~xenial1 [1,039 kB]
Fetched 5,834 kB in 1s (4,273 kB/s)
(Reading database ... 66806 files and directories currently installed.)
Preparing to unpack .../libapache2-mod-passenger_1%3a5.1.1-1~xenial1_amd64.deb ...
Unpacking libapache2-mod-passenger (1:5.1.1-1~xenial1) over (5.0.27-2) ...
Preparing to unpack .../passenger_1%3a5.1.1-1~xenial1_amd64.deb ...
Unpacking passenger (1:5.1.1-1~xenial1) over (5.0.27-2) ...
Selecting previously unselected package passenger-dev.
Preparing to unpack .../passenger-dev_1%3a5.1.1-1~xenial1_amd64.deb ...
Unpacking passenger-dev (1:5.1.1-1~xenial1) ...
Selecting previously unselected package passenger-doc.
Preparing to unpack .../passenger-doc_1%3a5.1.1-1~xenial1_all.deb ...
Unpacking passenger-doc (1:5.1.1-1~xenial1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up passenger (1:5.1.1-1~xenial1) ...
Setting up libapache2-mod-passenger (1:5.1.1-1~xenial1) ...
Installing new version of config file /etc/apache2/mods-available/passenger.conf ...
Installing new version of config file /etc/apache2/mods-available/passenger.load ...
Setting up passenger-dev (1:5.1.1-1~xenial1) ...
Setting up passenger-doc (1:5.1.1-1~xenial1) ...

.....

$ sudo apt-get upgrade libapache2-mod-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-passenger is already the newest version (1:5.1.1-1~xenial1).
Calculating upgrade... Done
The following packages will be upgraded:
  python3-distupgrade snap-confine snapd ubuntu-core-launcher ubuntu-release-upgrader-core update-notifier-common
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,460 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://gb1-a.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 snap-confine amd64 2.20.1ubuntu1 [42.1 kB]
Get:2 http://gb1-a.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-core-launcher amd64 2.20.1ubuntu1 [2,396 B]
Get:3 http://gb1-a.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-notifier-common all 3.168.3 [165 kB]
Get:4 http://gb1-a.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-release-upgrader-core all 1:16.04.20 [29.3 kB]
Get:5 http://gb1-a.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-distupgrade all 1:16.04.20 [104 kB]
Get:6 http://gb1-a.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 snapd amd64 2.20.1ubuntu1 [8,117 kB]
Fetched 8,460 kB in 0s (27.5 MB/s)
(Reading database ... 66964 files and directories currently installed.)
Preparing to unpack .../snap-confine_2.20.1ubuntu1_amd64.deb ...
Unpacking snap-confine (2.20.1ubuntu1) over (1.0.43-0ubuntu1~16.04.1) ...
Preparing to unpack .../ubuntu-core-launcher_2.20.1ubuntu1_amd64.deb ...
Unpacking ubuntu-core-launcher (2.20.1ubuntu1) over (1.0.43-0ubuntu1~16.04.1) ...
Preparing to unpack .../update-notifier-common_3.168.3_all.deb ...
Unpacking update-notifier-common (3.168.3) over (3.168.2) ...
Preparing to unpack .../ubuntu-release-upgrader-core_1%3a16.04.20_all.deb ...
Unpacking ubuntu-release-upgrader-core (1:16.04.20) over (1:16.04.19) ...
Preparing to unpack .../python3-distupgrade_1%3a16.04.20_all.deb ...
Unpacking python3-distupgrade (1:16.04.20) over (1:16.04.19) ...
Preparing to unpack .../snapd_2.20.1ubuntu1_amd64.deb ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Unpacking snapd (2.20.1ubuntu1) over (2.17.1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up snap-confine (2.20.1ubuntu1) ...
Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine ...
Setting up ubuntu-core-launcher (2.20.1ubuntu1) ...
Setting up update-notifier-common (3.168.3) ...
Setting up python3-distupgrade (1:16.04.20) ...
Setting up ubuntu-release-upgrader-core (1:16.04.20) ...
Setting up snapd (2.20.1ubuntu1) ...
Installing new version of config file /etc/X11/Xsession.d/65snappy ...

......


ubuntu@srv-ow00i:~$ sudo a2enmod passenger
sudo: a2enmod: command not found

Camden Narzt

unread,
Jan 6, 2017, 3:53:37 PM1/6/17
to Phusion Passenger Discussions
Which package did you use to install apache itself? The logs show it was already installed before you installed passenger's apache module.
Reply all
Reply to author
Forward
0 new messages