How to enable SDO in WAMP Server - php

I want to enable SDO to use SDO_DAS_XML but I'm getting the error "Class 'SDO_DAS_XML' not found". I am using WAMP Server and dont see any setting for it under PHP Settings or PHP Extensions. Please help

This extension is pretty much abandoned, so I wouldn't recommend using it But,
First install the SDO package.
for Linux:
see this dosc for install and edit php.ini:
extension=sdo.so
extension=sdo_das_xml.so
For Windows:
you need to download sdo.dll file extansion and install with this docs and edit php.ini:
extension=php_sdo.dll
extension=php_sdo_das_xml.dll

You will need the SDO package. Unfortunately this package is no longer being maintained and won't compile on Linux and Windows.
You can't just load the existing extension of an earlier version in a newer PHP version (which comes with WampServer).
The latest version of WampServer i could find with the extension php_sdo.dll included is version 5.1.7.4. You can find it here with the outdated WampServer downloads. You can use the top one (WAMP5 1.7.4).
If you use that version of WampServer you can use the menu of WampServer to enable php_sdo in the PHP-extensions. (You will need to uninstall your current WampServer and its services)

Related

php version in plesk - extension installing on wrong version

I've just installed plesk on centos 7, it has multiple php versions installed.
7.1.10 was turned on and was the preferred version to use
However, i've tried to install phplib but it never loads on 7.1.10.
Have installed phplib perfectly fine, yet when you place pdf.so on the php.ini file it never load the extension.
I then noticed that pecl was installing the files in /usr/lib64/php/modules when php claimed they were in /opt/plesk/php/7.1/lib64/php/modules
That got me thinking that it must be installing it on a different php version, so I turned on the default php version of 5.4.16 and what do we have? pdf.so now loads and displays pdflib in the php config page.
Any ideas how to get it working on php 7 under plesk?
I would recommend to do the typical installations steps.
download the current PDFlib package for your Linux (64-bit) PHP and unpack the archive on your server
pick the correct PDFlib PHP DSO for your used PHP version (see bind/php/php-*)
get the correct extension_dir path from your phpinfo() output.
copy the PDFlib PHP DSO to the extension_dir
determine the correct php.ini from the phpinfo() output
add extension=php_pdflib.so to the php.ini
after a restart of your webserver, you should see a "PDFlib" section in the phpinfo() output.
Please see also the PDFlib in PHP Howto or PDFlib 9.1 Tutorial, chapter 2.9 "PHP Binding" for more detailed introduction how to install PDFlib.

Intl PHP extension not working

I want to use https://github.com/juriansluiman/SlmLocale module in zend framework-2 and need intl extension, I have installed using pecl and it show success. I had added
extension=intl.so
and restarted my MAMP-Pro, I had tried other links as well:
http://mynameispagewood.com/web-development/how-to-enable-intl-extension-mamp-osx-10-9-2/
http://codingexplained.com/operating-systems/mac/installing-php-intl-extension-os-x-mavericks
to enable it but its not working.
note: No error while starting apache
Is their any alternate method to enable it?
Any light on the path would be helpful
Thanks
You will need to ensure that the version of php being called is in the install path for Brew, otherwise it will be picking up the native installed php
The problem can be solved by first checking the php version in the terminal.
The which php command will print the /Applications/MAMP/bin/php/php7.1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin.
and then check
echo $PATH
/Applications/MAMP/bin/php/php7.1.8/bin/php
If this is right, then no need of installing intl extension, restart MAMP PRO, then it should work.

Memcache PHP Extension on Windows

I have found plenty of tutorials covering how to install memcache in Windows and install the PHP extension. My situation though is slightly unusual:
I'm using iis, not apache.
I don't need to install memcache on the server (it has its own dedicated server already setup). I ONLY need to install the extension.
I thought I simply needed to add the PHP_memcache.dll extension to the PHP extension folder and add it to PHP.ini
This causes an error loading the PHP module (unable to load dynamic library).
Is this error likely to be caused because memcache isn't installed on the server and what can I do to solve it?
Errors while loading extensions in Windows are not as helpful as they are in Linux, so you need a tool like dependency walker to fish out the problem.
http://www.dependencywalker.com/
If you are using XAMPP on Windows you probably have installed the 32bit-XAMPP version.
So make sure you are using the 32bit (x86) DLL of Memcache.
The DLL download List for windows can be found here: http://pecl.php.net/package/memcache/3.0.8/windows

Upgrading PHP 5.4.0 in XAMPP for Windows?

I want to upgrade to PHP 5.4.0 in XAMPP. I'm using windows operating system. I searched on web, but there was no proper guide for this as it was released recently.
Can anyone give me some instructions on how to upgrade to PHP 5.4.0 in XAMPP (windows)?
Download the latest binary version of PHP (make sure to get the .zip package not the installer)
De-archive it to a directory
Copy the contents of the directory in the php subfolder of your XAMPP installation directory, overwriting the files which are already present
Overwrite the files which are already present in the apache\bin directory with the newer versions.
Now the trick: take the files which have a "_2" in their names (for example php5apache2_2.dll or php5apache2_2_filter.dll), copy them in the apache\bin subdirectory and remove the "_2" part, overwriting the existing files. This is necessary because by XAMPP uses Apache version 2.2 and the files with the 2 prefix are built for Apache 2.0, so you must take the files build for the newer version (which has a different plugin interface) and rename them in the filenames XAMPP expects.
Source
I found a working php_uploadprogress.dll extension for xampp windows with php 5.4 here:
http://www.fsbcomputers.com/php_uploadprogress
there are 32 and 64 bit versions as well as a preview for php 5.5.
By the way, the php build numbers, apache /xampp refers to are:
PHP 5.2: 20060613
PHP 5.3: 20090626
PHP 5.4: 20100525
I hope that you are still following this, I installed php 5.4 on the latest xampp stable with no problem.
Fortunately for you, there is a beta update of xampp which makes life easier. http://www.apachefriends.org/en/xampp-beta.html
Just make sure to make a complete backup of your old xampp directory, and export your old databases so you can import them into your new (updated) mysql installation. Alternatively you do not need to update mysql, I use this beta and I can say that it's pretty solid.
EDIT: The pop-up warning were a problem that I had too, I recommend using the latest beta. But, you can fix the errors and use php 5.4 on your old install (not recommended) by commenting out the following line in php.ini
extension=php_oci8.dll
Change to
;extension=php_oci8.dll
I have done the upgrade in ubuntu. Following are the steps to do the upgrade.
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5
sudo /etc/init.d/apache2 restart

How do I enable the PHP HTTP PECL extension on Windows?

I have an installation of XAMPP version 1.7.3 on Windows 7 x64. I want to enable the PHP HTTP extension. How do I go about doing so? That is, where to I get the DLL, register it, etc. Thanks in advance.
First, download the PECL module from the php website.
Then unzipp it and copy the file php_http.dll in your PHP extension folder. Then edit your php.ini file (c:\WINDOWS\php.ini) and activate the module :
extension=php_http.dll
As you are on an earlier PHP Version, you can get the build from: http://downloads.php.net/pierre/
If you upgrade to XAMPP 1.8.3, which uses PHP 5.4, then you should take a look at the closed bug about this found at: bugs.php.net/bug.php?id=62056
As per details in the bug comments; I downloaded the ts (thread safe) version for XAMPP 1.8.3 from github.com/stealth35/stealth35.github.com/downloads and listed as "php_http-1.7.4 -5.4-vc9-x86.zip"
The latest builds can be found at: windows.php.net/downloads/pecl/releases/http/1.7.5/
Amoung those links you should find a version specifically for what you need.

Categories