简体   繁体   中英

Cannot install OAuth extension in Xampp on Windows

I need to install oauth extension in php. I tried lot of ways but still I cannot get the oauth in my php. I mentioned below few steps to get oauth in PHP.

  1. I copied the php_oauth.dll file to xampp/ext/

  2. wrote this line extension=php_oauth.dll in php.ini

  3. After restarting the server I accessed the phpinfo().php

But OAuth is not shown.

I can see this in my logfile:

PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oauth.dll' - %1 is not a valid Win32 application. in Unknown on line 0

I found a solution for this error. My system is 64 bit OS but XAMPP server installed in 32 bit. I install 64 bit oauth.dll file I cannot get oauth in PHP. After I install 32 bit oauth.dll I get the oauth in PHP file.(The windows binary and extension arch need to match)

Download link to php_oauth.dll - https://pecl.php.net/package/oauth/1.2.3/windows

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM