microsoft / msphpsql

Microsoft Drivers for PHP for SQL Server
MIT License
1.8k stars 371 forks source link

AWS Amazon Linux 2 On ARM display error message :PHP Fatal error: Unsupported processor architecture. #1442

Open reddoor-php opened 1 year ago

reddoor-php commented 1 year ago

Please check the FAQ (frequently-asked questions) first. If you have other questions or something to report, please address the following (skipping questions might delay our responses):

PHP version PHP 8.0

PHP SQLSRV or PDO_SQLSRV version 5.10.1

Microsoft ODBC Driver version 3.52.7

SQL Server version Azure SQL

Client operating system Amazon Linux 2(ARM)

Table schema

Problem description PHP Fatal error: Unsupported processor architecture.

Expected behavior and actual behavior

Repro code or steps to reproduce

v-makouz commented 1 year ago

This sounds like a mismatch in terms of processor architecture, such as x86_64 version of PHP trying to run on ARM machine.

reddoor-php commented 1 year ago

This sounds like a mismatch in terms of processor architecture, such as x86_64 version of PHP trying to run on ARM machine.

Does have document install PHP SQLSRV or PDO_SQLSRV on ARM processors ?

avtarsm commented 1 year ago

Hi,

Please see this link, they have released the driver for ARM.

https://learn.microsoft.com/en-us/sql/connect/oledb/release-notes-for-oledb-driver-for-sql-server?view=sql-server-ver16

reddoor-php commented 1 year ago

Hi,

Please see this link, they have released the driver for ARM.

https://learn.microsoft.com/en-us/sql/connect/oledb/release-notes-for-oledb-driver-for-sql-server?view=sql-server-ver16

Hi~ Thank you very much for your reply, but mine is a Linux operating system msi file, and it seems that I cannot run the installation. https://go.microsoft.com/fwlink/?linkid=2224283

v-chojas commented 1 year ago

I think you meant to write ODBC, not OLEDB.

v-chojas commented 1 year ago

Look here instead:

https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16