issues|March 20, 2018|1 min read

php55w-common conflicts with php-common-5.* | Php issues while installing libraries

TL;DR

Fix PHP package conflicts (php55w-common vs php-common) by installing php-devel headers so pecl can locate the required PHP headers in /usr/include/php.

php55w-common conflicts with php-common-5.* | Php issues while installing libraries

I was trying to install mongo extension with pecl.

pecl install mongo

It gave me error:

  • pecl install mongo phpize failed
  • phpize Can't find PHP headers in /usr/include/php

Then, I tried installing php-commons extension.

It gave me errors:

Error: php55w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64</li>

Solution

Php version: 5.5

I searched php*-devel in yum repo:

yum search devel | grep php

I got “php55w-devel”

I installed it:

yum installphp55w-devel

I tried installing mongo again:

pecl install mongo

Error:

configure: error: Cannot find OpenSSL's &lt;evp.h&gt;

ERROR: `/var/tmp/mongo/configure --with-mongo-sasl=no' failed

I installed openssl-devel

yum install openssl-devel

Again tried:

pecl install mongo

Voila! It installed

Related Posts

How to install Mongo DB Driver for Php 7.x

How to install Mongo DB Driver for Php 7.x

The simplest way to install driver for php is using pecl. When I tried to run…

Python SMTP Email Code - Sender Address Rejected - Not Owned By User

Python SMTP Email Code - Sender Address Rejected - Not Owned By User

Introduction In a normal email sending code from python, I’m getting following…

Drupal Helpful codes for database queries

Drupal Helpful codes for database queries

Being a drupal user from last around 5 years, I used to know small codes for…

How to connect Php docker container with Mongo DB docker container

How to connect Php docker container with Mongo DB docker container

Goto your command terminal. Type: This will expose port: 27017 by default. You…

How to get all image tags from an html - php code

How to get all image tags from an html - php code

I wanted to fetch all image tags from a big html, and wanted to perform some…

Paypal Payment Issue While Validating Payment - Access Denied

Paypal Payment Issue While Validating Payment - Access Denied

Introduction I was using Paypal payment on one of my website, and suddenly lot…

Latest Posts

Software Security in the AI Era: How to Write Secure Code When AI Writes Code Too

Software Security in the AI Era: How to Write Secure Code When AI Writes Code Too

In 2025, 72% of professional developers used AI-assisted coding tools daily. By…

SQL Injection: The Complete Guide to Understanding, Preventing, and Detecting SQLi Attacks

SQL Injection: The Complete Guide to Understanding, Preventing, and Detecting SQLi Attacks

SQL injection has been on the OWASP Top 10 since the list was created in 200…

Building a Vulnerability Detection System That Developers Actually Use

Building a Vulnerability Detection System That Developers Actually Use

Here’s a stat that should concern every security team: 73% of developers say…

How to Be a Full-Time Freelancer: Resources, Finding Clients, and Building a Sustainable Business

How to Be a Full-Time Freelancer: Resources, Finding Clients, and Building a Sustainable Business

Making the leap from full-time employment to freelancing is one of the most…

Deep Dive on Elasticsearch: A System Design Interview Perspective

Deep Dive on Elasticsearch: A System Design Interview Perspective

“If you’re searching, filtering, or aggregating over large volumes of semi…

Deep Dive on Apache Kafka: A System Design Interview Perspective

Deep Dive on Apache Kafka: A System Design Interview Perspective

“Kafka is not a message queue. It’s a distributed commit log that happens to be…