I'm working on Win7(x64), using PHP 5.3.
I had installed memcached, and the this service is running with port 11211 . And the *php_memcache.dll* had been copy into ext folder and added this extension into the ini file properly. But application always report the error 'The Memcache Extension must be loaded to use Memcached Cache' and Memcache can not be used.
I knew the difference between Memcache and Memcached, and I have tried many types of memcache and php extensions, finally, it's not working as always.
The error you're getting is typically caused due to an incompatible version (Possible duplicate).
You could upgrade from 5.3 to 5.4.6 here and either build memcache yourself or try this dll.
Alternatively you can try this dll for your current installation of PHP.
It's unfortunate but there is no maintained version of PECL binaries for windows. You should consider joining us privileged ones on a *nix environment :)
Related
I am trying to install Laravel in my cPanel via php composer.phar command. But installation does not complete. The installation failed by showing:
To enable extensions, verify that they are enabled in your .ini files:
-/opt/alt/php56/etc/php.ini
-/opt/alt/php56/link/conf/alt_php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
How can I remove this problem?
Most shared hosting companies don't all PHP extensions (required for Laravel) by default; you may have to pay something more for some of them (PHP extensions).
That said, you may be able to get access to your php.ini file so as to make sure all Laravel required extensions are installed and enabled depending on your contractual agreements.
Currently, server requirements for Laravel as at version 5.4 are:
PHP >= 5.6.4
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
In your very instance (Laravel 5.2), your server must meet the following requirements:
PHP >= 5.5.9
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
One other thing to consider after enabling the required PHP extension, you may need to restart your server so as your modifications take a full effect.
Also, on shared hosting, some extensions may interfere with other users' accounts if enabled (purposely for you); that adds up to the current challenge: enabling further extensions than the default ones provided and made available by your hosting provider for shared account users.
You should consider contacting them (your hosting provider) so as to enquire whether they meet server requirements for Laravel; it is the first thing you should do before considering to acquire their services so as to enable you choose the right host for your project.
Once that is done and you are certain they do, you will have more rooms to truly assess and proceed with your project.
I already know that it is possible to install memcache (not memcached, that is another program!) for PHP on windows to be used with xampp.
I am wondering if there are any solutions for a working memcached (mind the d at the end :))?
I have put several hours into this already, I have found out that you can install it with ease on linux.
And that HHVM has this preinstalled, you just need some dependencies such as libmemcached and so on.
But I develop on windows using xampp, so I would like to be able to use the memcached class from php on windows, too. I don't think swapping the database and using redis is an option for me because it is slow.
Even thoough phpredis is a fast C extension, but it is incompatible with HHVM.
There are countless tutorials on the web marketing how to install "memcache" on windows, but they are all just for the php memcache class (no d), not memcached.
The dll file you need to copy to D:\xampp\php\ext only exists for memcache and not memcached.
Can I develop with HHVM and memcached on windows using the php memcached class instead of the memcache one?
I am using wamp, PHP 5.4 running on win 8,
I can't seem to get PHP to acknowledge the memcache dll.
I download php_memcache-3.0.8-5.4-ts-vc9-x86.zip (the only one I could find).
I copied the dll to C:\wamp\bin\php\php5.4.12\ext
I added extension=php_memcache.dll
restart the server.
but still I cannot use memcache, and it is missing from Loaded Extensions list.
Please supply a step-by-step instruction on how to set this up,
Thanks.
You have to install memcached as well.
php_memcached is only an interface to the memcached service that also has to be running on the system your Apache/PHP is running on.
This site seems to be offering a ready to go .exe
This may also help with getting it running
I have set up a XAMPP installation on a windows server 2008 R2 that includes:
Apache 2
PHP 5.3.x
MySQL (not used anyway)
Then I have installed PostGreSQL 9.x. I have uncommented the pgsql pdo dlls in the php.ini file accordingly but when I try to connect to pgsql I get 'driver could not be loaded'. I am stuck as I couldn't come across a fix to that on the internet, I have tried adding the path of the pgsql installation (bin and lib dirs) to the PATH environement system but the problem persists. I have also rebooted the system many times after changing any configuration to ensure it is saved and applied but still same outcome.
I have read in a nonclear conversation that this might be related to the versions but couldn't find anything further.
If you have succeeded in performing the latter I would be greateful if you could provide me with some insight. (I am open to any alternatives except downgrading to older software versions).
Thanks so much for your time
Fixed by manually installing apache2 and php instead of going through xampp (or wampp). It seems those are buggy when it comes to the latest php version and pgsql pdo driver.
Does the memcached (not memcache) extension exist for Windows? I have looked through old answers and haven't found anything.
It does not exist and is very unlikely to exist any time soon. The main problem is not the extension itself but the libmemcached library. This library is barely portable to anything but a linux system, so windows support won't happen anytime soon (using Visual C).
You can get the php extension "memcache" to use memcached with php on windows here http://downloads.php.net/pierre/
Memcached is the server daemon and you can get it for windows here http://splinedancer.com/memcached-win32/
The php extension also called memcached requires libmemcached which doesn't seem well supported on windows which is probably why that extension doesn't exist for windows.