17

I have just used apt-get update and my apache has been updated to 2.4.6.

i want to install apxs for compiling modules and i get this error

The following packages have unmet dependencies:
 apache2-prefork-dev : Depends: apache2.2-common (= 2.2.22-1ubuntu1.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

How can i fix that

Light93
  • 952
  • 1
  • 8
  • 18
user26
  • 3,937
  • 5
  • 22
  • 22

5 Answers5

59

to install apxs on ubuntu, install theapache2-dev package.

sudo apt install apache2-dev
Light93
  • 952
  • 1
  • 8
  • 18
12

To install apxs on Oracle Linux run:

yum install httpd-devel

interestedparty333
  • 2,386
  • 1
  • 21
  • 35
1

You cannot install httpd-devel on cpanel. You will need to install ea-apache24-devel

https://forums.cpanel.net/threads/install-httpd-devel.594631/

Kevin
  • 21
  • 1
  • 3
    A link to a solution is welcome, but please ensure your answer is useful without it: [add context around the link](//meta.stackexchange.com/a/8259) so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. [Answers that are little more than a link may be deleted.](//stackoverflow.com/help/deleted-answers) – geisterfurz007 Feb 14 '18 at 06:25
0

In Ubuntu, when setting up Apache2 + PHP, apxs is actually not needed anymore.
You should install libapache2-mod-php instead.
sudo apt install apache2
sudo apt install libapache2-mod-php

F.M
  • 1,369
  • 1
  • 16
  • 31
macyou
  • 99
  • 6
-3

APC is currently not compatible with the version. Try adding native opcode cache in it.

Karthick88it
  • 601
  • 2
  • 12
  • 28
  • 1
    APXS is not APC. They aren't even related. (APXS is a tool used to build and install Apache modules, and APC is a PHP extension.) –  Oct 12 '17 at 18:33