How do I install mysql instead of mysqli in php 5.6.33?

Discussion in 'ISPConfig 3 Priority Support' started by S0ft, Jan 17, 2020.

  1. S0ft

    S0ft Member HowtoForge Supporter

    The server was installed following this tutorial
    https://www.howtoforge.com/tutorial/perfect-server-debian-10-nginx-bind-dovecot-ispconfig-3.1/

    Then I followed this tutorial and installed php 5.6.33 (additional version)
    https://www.howtoforge.com/tutorial...#nbspcompilenbspphpnbsp-as-phpfpm-and-fastcgi

    I have a script that works only with mysql, how can I configure it to work with that version?​

    The tutorial installs mysqli and not mysql
    What commands should I apply to install mysql?


    This is the php.ini configuration of the tutorial
    https://yosoynash.com/php.php

    This is the php.ini where the script works, to this configuration I want to reach
    https://yosoynash.com/phpcapture.html


    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can get all available configure options by using the command:

    ./configure --help

    while you are in the /usr/local/src/php5.6-build/php-5.6.33/ folder. If I remember correctly, the option is named --with-mysql

    A general note, instead of compiling I would use the PHP Debian packages from sury.org instead. This guide here is for Debian 8 and 9, but the steps are basically the same for Debian 10 https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/ Just take care to install also all PHP packages that you want to use like php5.6-gd php5.6-mysql etc. as described in the comments of the guide.
     
    S0ft likes this.
  3. S0ft

    S0ft Member HowtoForge Supporter


    excellent, I just changed --with-mysqli to --with-mysql and it works perfect, thanks
     

Share This Page