sqlsrv extension not showing up in phpinfo. - php

I'm using Win server 2k12, php 5.5.12, on wamp.
Edited php.ini (both on apache dir and php dir) to add php_sqlsrv_55_ts.dll and the php_pdo_sqlsrv_55_ts.dll, and configured the extension dir path correctly. Happily, wamp is showing up those extentions at the PHP extension menu, and after ticking it and restarting all services, phpinfo is not showing up these changes! Not in the registered PHP streans entry, no anywhere.
Do you have any idea why?
Thanks in advance.

Related

Call to undefined function curl_init() after updating PHP version in WAMP

I've been using WAMP for a long time without any problems with PHP 7.2.4. Today I've updated my PHP to 7.4.19 and it seems the cURL extension is not loading properly, I am getting the curl_init() error.
php.ini is configured correctly in php7.4.19 folder,
extension=curl is uncommented, so is the php.ini file in apache/bin
folder, which is basically just a link to the same file from the PHP
directory
I've tried unchecking the cURL extension and turning it on
again from WAMP settings and also directly in php.ini by commenting
it, followed by restarting the WAMP or even Windows
in phpinfo() I
can clearly see the cURL is not being loaded, if I switch back to
7.2.4 however and refresh the page, cURL loads just fine
I've tried copying the php_curl.dll from 7.2.4 /ext directory, to the current 7.4.19 /ext
directory and rewriting the file
I've tried adding
extension=php_curl.dll to php.ini as well
The system PATH is correctly configured. As I mentioned, it works well with older version of PHP, which uses the same system PATH.
System info:
WAMP 3.2.5 x64
Apache 2.4.33
PHP 7.4.19
MySQL and MariaDB probably not relevant at all
Windows 10 x64 with most recent updates
Basically I've tried everything I found online. Do you have any ideas?
This is very dumb of me, but I finally solved it, leaving this answer here in case anyone struggles with the same problem.
I needed to update Apache from 2.4.33 to 2.4.47. Seems like the .33 version had problems with loading the cURL extension in PHP 7.4 for some reason.

Installing the Mongo PHP Extensions (php_mongo.dll)

Environment in local system
MAMP 3.2.2
PHP 5.6.24
Webserver Apache
Mongodb for caching is installed successfully and found running in MongoDBservice.
I Downloaded Mongodb drivers from https://pecl.php.net/package/mongodb (used thread safe versions PHP5.6 "php_mongodb.dll") selected php_mongo-1.1.8-5.6-ts-vc11-x64.zip, Made changes to php.ini as extension=php_mongo.dll
I just copied and pasted .dll file in my C:\MAMP\bin\php\php5.6.24\ext
So far good... After restarting my MAMP I cannot see mongo in phpinfo ---->This is my issue
Any idea about this?
Thank you
Just copying the DLL file to the correct directory is not enough. You also need to add the following line to your php.ini file before the MongoDB extension is available:
extension=php_mongo.dll
After that restart Apache and MongoDB should show up as an available extension in phpinfo().
By the way, that is also mentioned on the official PHP website for installing the MongoDB driver: http://www.php.net/manual/en/mongodb.installation.windows.php
Should be extension="php_mongodb.dll instead of extension="php_mongo.dll as it is the name of the file you copied.
In my case, I first downloaded a x64 version of php_mongo.dll, which did not show in phpinfo page. Then i downloaded a x86 version and everything works fine. Hope this helps.
PS. Make sure you pick the right php version.

Cannot get LDAP extension enabled on new PHP IIS server

I have a new server at work, installed PHP 5.4.21 on it yesterday, got SQLSRV working this morning but now I'm stuck getting LDAP enabled. It's not showing in phpinfo(). This is my php.ini file that is in C:\PHP which is where phpinfo() says is the correct directory: http://pastebin.com/yWv9gRNT
I have uncommented extension=php_ldap.dll (near the bottom), I have the dll in the ext folder that is linked in the php.ini file, I have restarted IIS numerous times, I have even copied all DLLs to Windows\System32 folder as recommended on some forums (including libsasl.dll libeay32.dll & ssleay32.dll) & restarted server. Server is Windows 2008 R2 running IIS 7.5.
Add two other dll libeay32.dll and ssleay32.dll and compile with --with-ldap
Step by step:
1 Add extension = php_ldap.dll in php.ini
2 Make sure that you're editing the right php.ini by checking the output of phpinfo()
3Check the php.ini file for the location of your extensions directory
4Check that php_ldap.dll is located in that directory
5 Find the files libeay32.dll and ssleay32.dll and add their directory to the Windows PATH
6 Reboot server. If LDAP is enabled there will be a section about it in the output of phpinfo()
OK, I have resolved this, been away for a week, came back to look at it again...
Turns out at the very first time (before posting on here) it wasn't working (the dll files weren't in the system32 folder) I followed a few posts on here where people suggest downloading the latest version of PHP and taking the ext folder and copying over the ones we have installed. Today I downloaded the zip that matches my version exactly, overwrote all the newer dlls and it now works perfectly, thank you to all those that helped and offered their expertise and time.

how to install 'intl PHP extension' with Wamp server

i want to install 'intl PHP extension' on my WAMP. i am running Wamp on windows.
i have looked online but cannot find any guidance on how to do this. does anyone have any ideas.
on wamp icon click on php -> php extensions -> php_intl then restart the server
According the the comment this is the content
In both XAMPP and WAMP, the mbstring extension is working by default.
In XAMPP, intl extension is included but you have to uncomment
extension=php_intl.dll in php.ini and restart the server through the
XAMPP Control Panel.
In WAMP, the intl extension is “activated” by default but not working.
To make it work you have to go to php folder (by default)
C:\wamp\bin\php\php{version}, copy all the files that looks like
icu*.dll and paste them into the apache bin directory
C:\wamp\bin\apache\apache{version}\bin. Then restart all services and
it should be OK.
Hope it helps

PHP extension "curl" must be loaded while installing on xampp Windows 7

I am installing Magento on xampp local server on Windows 7. How to fix this error "PHP extension "curl" must be loaded." ?
Uncomment the following line: extension=php_curl.dll in the php.ini configuration file of your XAMP.
The location of the php.ini file will be mostly
%XAMPP_HOME%/php/php.ini
Stop apache and restart it.
In the xampp control panel go to the SCM tab and then select apache server and stop it and again restart it.
Then, go to the installation page of magento and refresh the page.
The setting to change:
;extension=php_curl.dll
to (semicolon removed)
extension=php_curl.dll
I would like to point out something regarding this problem. First of all
doing the same under Wamp instead of Xampp (i.e. uncommenting the
extension=php_curl.dll line under the php and apache directories
causes an error because Wamp does not package this dll with its
distribution (at least as of wamp server 2.2). I had do ditch
wamp and install xampp to get magento running. Perhaps someone
can suggest where one can alternatively download the php_curl.dll
from so that magento can be brought to work with Wamp as well.
There is a magento checklist file at:
http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento
This script has two problems. First the opening tag should be <?php rather than <?
or the xampp server wil not run it. Secondly the shell_exec() statement returnss an
empty array because the path to mysql is not configured, that's all, otherwise even
that part should be fine I suppose. (???)

Categories