Results 1 to 3 of 3

Thread: PHP5 on 16.04, problem with xdebug

  1. #1
    Join Date
    Jul 2013
    Location
    India
    Beans
    50
    Distro
    Ubuntu 20.04 Focal Fossa

    PHP5 on 16.04, problem with xdebug

    So i had to install php 5.6 on my system since the project we are working on uses php 5.
    So everything seems to work fine except whenever i do a
    Code:
    apt-get install
    i see this error in middle of installation
    Code:
    Setting up php5-xdebug (2.3.3-1ubuntu1) ...
    /var/lib/dpkg/info/php5-xdebug.postinst: 11: /var/lib/dpkg/info/php5-xdebug.postinst: php5enmod: not found
    dpkg: error processing package php5-xdebug (--configure):
     subprocess installed post-installation script returned error exit status 127
    Errors were encountered while processing:
     php5-xdebug
    can someone help me resolve it

  2. #2
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: PHP5 on 16.04, problem with xdebug

    Hi

    php5enmod looks to be in the php5-common package.

    Code:
    matthew-xu-16-04:/home/matthew:0 % apt-file search php5enmod
    php5-common: /usr/sbin/php5enmod
    matthew-xu-16-04:/home/matthew:0 %
    You have installed that package ?

    Code:
    apt-cache policy php5-common
    The file exists ?

    Code:
    file /usr/sbin/php5enmod
    Your path is correct ?

    Code:
    echo $PATH
    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  3. #3
    Join Date
    Jul 2013
    Location
    India
    Beans
    50
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: PHP5 on 16.04, problem with xdebug

    i simply removed php5-xdebug and installed php-xdebug
    It seems to fix issue.
    forgot to mention I am on 16.04 where default php is php7 but I needed php5.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •