Skip to main content

Custom Flags PHP easy apache 4

Comments

5 comments

  • sparek-3
    See: EasyApache 4 PDO_DBLIB (mssql support) I believe the ODBC php module they are referring to is ea-phpXX-php-odbc In your case, for PHP 5.5, this would be ea-php55-php-odbc Which you can install on the server by doing:
    yum install ea-php55-php-odbc
    I really don't have any experience with using MSSQL, so this is where my help ends. Of note, PHP 5.5 is end-of-life, it went end of life in July 2016: PHP: Unsupported Branches If your application is depending on PHP 5.5, it probably needs an update.
    0
  • andryus
    Hello, thanks for your reply, but i need MSSQL extension support, instead of pdo_dblib Regards.
    0
  • cPanelMichael
    Hello, There's no direct equivalent to the rawopts files in EasyApache 4. This is answered on the following thread: EA4 equivalent for php rawopts ? Are you sure the workaround discussed under the comments section on the below feature request wouldn't work? EasyApache 4 PDO_DBLIB (mssql support) Thank you.
    0
  • andryus
    Hello, There's no direct equivalent to the rawopts files in EasyApache 4. This is answered on the following thread: EA4 equivalent for php rawopts ? Are you sure the workaround discussed under the comments section on the below feature request wouldn't work? EasyApache 4 PDO_DBLIB (mssql support) Thank you.

    Hello Michael, Thanks for your reply, in terms of code, the MSSQL and pdo_dblib connection are distinct, i have many customers that require the MSSQL option enabled for their site. Example: mssql:
    \ o // , cuando se use un n"mero de puerto diferente del de defecto $server = 'KALLESPC\SQLEXPRESS'; // Connect to MSSQL $link = mssql_connect($server, 'sa', 'phpfi'); if (!$link) { die('Algo fue mal mientras se conectaba a MSSQL'); } ?>
    PDO_DBLIB:
    $myServer = "server name"; $myUser = "username"; $myPass = "pword"; $myDB = "dbname"; try { # MS SQL Server and Sybase with PDO_DBLIB $DBH = new PDO("dblib:host=$myServer;dbname=$myDB", $myUser, $myPass); } catch(PDOException $e) { echo $e->getMessage(); }
    Regards.
    0
  • sparek-3
    The script that you are using may be in need of an update. PHP: mssql_connect - Manual PDO is typically where all database connections are moving to in PHP.
    0

Please sign in to leave a comment.