How to install new extension in Apache - php

Hi friends i am using Apache 2.4.4 (Win64), PHP 5.4.12. I need to install a new extension in it. I have a dll file of that extension i.e. pspell.dll. How should i make it work in my Apache? I have copied this dll to apache/Apache2.4.4/bin/. And enabled extension=php_pspell.dll in apache/Apache2.4.4/bin/php.ini. Restarted my apache but still getting no sign of this extension in phpinfo();. Please tell me what should i do?
Also getting this error:
Fatal error: Call to undefined function pspell_new()

Check server logs to see where is the problem.
Usually it's because file can't be found on disk or DLL file is not compatible with PHP - both PHP and DLL have to be compiled for same architecture, with same compiler and thread safety options.

Related

Installation OCI8 extension to MAMP not works

I followed a few steps from http://caseymorford.com to install the OCI8 extension. The only issue was that the install-path on success was different. So i copied the oci8.so file to the right folder.
After restarting Apache and running some php, i still get the message:
Call to undefined function oci_connect()
Is there some other way to download a complete > PHP5.4 version with a build in oci extension?

PHP loading extensions error

I'm trying to get PHP to load some extensions (sqlsrv driver for PHP PDO).
I'm using a wamp server, With PHP 5.4, Apache 2.4.4.
In my PHP.ini file, i've entered the following line:
extension_dir = C:\wamp\bin\php\php5.4.16\ext
...
extension=php_pdo_sqlsrv_54.nts.dll
However in the apache error log, whenever I restart the apache service, I get the error message:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.16/ext/php_pdo_sqlsrv_54_nts.dll' - The specified module could not be found.\r\n in Unknown on line 0
Now, I know for a fact, this error is incorrect. If I copy the file location directly from the error log, (C:\wamp\bin\php\php5.4.16\ext\php_pdo_sqlsrv_54_nts.dll) and paste it into windows explorer, it finds the file fine.
I've added the ext directory to windows PATH environment variable, still no success.
Any ideas what to try next?
Thanks
Your problem is that you are trying to run a NTS 'Not Thread Safe' dll with a PHP that is 'Thread Safe', so initially try downloading the Thread Safe version of the sqlsrv DLL.
BIG NOTE and possibly your next problems solution:
As far as I know the sqlserver database interface dlls are only available as 32bit. So if you have installed the 64bit WAMPServer you will have to uninstall and install the 32bit WAMPServer.

Getting PHP pspell function to work.

I am trying to use the pspell function in my php application I am developing however when I run my code I get the error: "Call to undefined function pspell_new()". I am using an Apache 2.4 server on my localhost to run the application. Nothing I do seems to fix the problem. I have downloaded the aspell/pspell module with a "en" dictionary. I added the pspell-15.dll and aspell-15.dll to my System32 folder and I enabled the extension=php_pspell.dll line in my php.ini file and restarted the apache 2.4 service. What am I missing here because nothing seems to work? Thanks.
As of php 5.3. Pspell is no longer supported/bundled. Instead you can use the enchant which is bundled by default in 5.3.

php_memcache.dll for php 5.2.4

Trying to find the dll for memcache on php 5.2.4. Running on windows server 2k3 x64
I can find some for 5.3, but either they don't work or I cannot figure out how to get them to work. The php.ini file points to the right extension name in the ext file, but it fails with the error:
Fatal error: Class 'Memcache' not found in \PATH\ on line 2
This error occurs with or without the php_memcache.dll for php 5.3 in the ext folder.
Any ideas?
Thank you
http://museum.php.net/php5/pecl-5.2.4-Win32.zip
The version in that zip was compiled for 5.2.4, whether it will work on x64 I don't know.
http://www.php.net/releases/ is always the place to start when looking for old stuff, and it's where I found that link. But I would suggest that an upgrade to 5.3 or 5.4 would be in order, or at the very least an upgrade to 5.2.17.

Differences between PHP 5.2.x and 5.3.x with respect to the SOAP library

I have developed a PHP site using PHP 5.3.4 and deployed it to a server that has PHP 5.2.6 installed. I am not doing anything fancy; in fact, the only major library I am using is PHP's native SOAP library.
However, when I test my deployed site, I get the error:
Fatal error: Class 'SoapClient' not found in (path) on line 20
Are there any major differences between PHP 5.2.x and 5.3.x with respect to the SOAP library? I have already changed the configuration files. (Well, actually I told the sysadmin to do it, because I don't have permission to do so.) And I get the same error. Any ideas?
EDIT: More information...
I'm deploying my site to a Windows server.
The server has AppServ installed.
For some reason I don't understand, PHP's configuration file is C:\Windows\php.ini instead of PHP_DIR\php.ini.
I dont think soap is installed on the server try
sudo aptitude install php-soap
change the following line in php.ini:
;extension=php_soap.dll // before
extension=php_soap.dll // after
this enables the soap extension since PHP 5.0

Categories