Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Fail to parse address error after EA4 migration

Discussion in 'EasyApache' started by billmcollam, Apr 23, 2017.

  1. billmcollam

    billmcollam Member

    Joined:
    Jan 12, 2015
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Ontario Canada
    cPanel Access Level:
    Reseller Owner
    I've been keenly awaiting to migrate in order to utilize mpm-worker and fpm. However, ran into problems (this is the latest).

    After upgrading (to a profile I had tested on another server) with mpm-worker/fpm/php7.1. I get errors with accessing my mysql database.

    Failed to parse address "127.0.0.1:3306:3306" in /home/user/conndb/conndb.php on line 2

    This is from a 1 line script to connect the database.
    <?php
    $con = mysqli_connect('127.0.0.1:3306','db_user','password','database');
    ?>
    This worked fine in ea3 - and the same code was tested in the test server. It makes me think that the php handler is at fault. Suggestions or ideas?
     
  2. billmcollam

    billmcollam Member

    Joined:
    Jan 12, 2015
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Ontario Canada
    cPanel Access Level:
    Reseller Owner
    Closed... notice the :3306:3306 in the error message. Apparently in moving from php5.5 to php7.1 the mysql extension was changed to automatically add the port - making the explicit port reference redundant.
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,766
    Likes Received:
    313
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks for updating your thread.
     
Loading...

Share This Page