I downloaded a free library management system from Github when I open the URL via localhost or turning the Laravel server it says that "requires the Mcrypt PHP extension".
I have updated the composer but not work.
Error
Related
I am trying to install a Mongo DB designer tool Rock Mongo which requires PHP.
I tried installing the mongodb.dll in php.ini by downloading the driver from Windows.php.net downloads, specifically the file: php_mongodb-1.1.1-7.0-ts-vc14-x64.zip.
Environment
Windows 7 64 bit
Apache 2.4 web server
PHP 7.1
MongoDB 3.4
Attempt
Unzipped and copied mongodb.dll to my php7\ext directory.
I am still getting the following error when I try to open the ROCKMONGO index.php.
I'm trying to install the PHP SDK for my Couchbase cluster and everything during installation finishes without a hitch, but when I run php -i in the terminal I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20121212/couchbase.so' -
/usr/lib/php5/20121212/couchbase.so: undefined symbol:
php_json_decode_ex in Unknown on line 0
I don't understand why the couchbase extension won't load.
My setup is:
Ubuntu Server 14.04
Couchbase Server Enterprise 4.5.1
I followed this guide for setting up PHP SDK:
Link to PHP SDK installation guide
Enable extension=json.so in your php.ini if it is not enabled. If it is, enable the couchbase extension after the json extension.
As said in the couchbase php sdk documentation
The Couchbase SDK depends on the JSON PHP extension, so make sure that load order is correct. For example, if your distribution has just a single php.ini file, just insert the line after extension=json.so. If your distribution uses a conf.d-style, name the file with the Couchbase SDK ini so that it will be alphabetically ordered after the JSON extension.
I'm trying to install ZeroMQ for the push integration on Ratchet, I have successfully integrated Ratchet unto my Laravel 5 app. I downloaded and install the zeroMQ software and in the PHP binding instruction page, I followed the set up instruction for windows section since I'm on windows 10
Download the latest snapshot from http://snapshot.zero.mq/
Copy libzmq.dll into your php directory (e.g.
C:\wamp\bin\php\php5.3.8)
Copy the appropriate version of php_zmq.dll to your php extension
directory (e.g. C:\wamp\bin\php\php5.3.8\ext)
Add the following line to your php.ini:
extension=php_zmq.dll
since http://snapshot.zero.mq/ is a broken link so I look around the internet for other source and I found this link and downloaded the php_zmq-1.1.3-7.0-ts-vc14-x64.zip one. I copy the libzmq.dll to C:\wamp\bin\php\php5.5.12 as instructed as well as the php_zmq.dll to C:\wamp\bin\php\php5.5.12\ext and then I add
extension=php_zmq.dll
to my php ini and restarted my wamp server but it throws me this warning,
PHP Startup: Unable to load dynamic library
'c/wamp/bin/php/php5.5.12/ext/php_zmq.dll' - The specified module
could not be found
Any ideas, help please?
I downloaded the correct file from here https://pecl.php.net/package/zmq that match unto my php version and then restart my computer and now its working.
Get the version from here:
https://pecl.php.net/package/zmq/1.1.2/windows
In my case, the correct version that works was 1.1.2
I am setting up Ratchet on my system following instructions from official site
I have performed the following:
Downloaded and installed zeromq from the official site
Followed instructions of http://zeromq.org/bindings:php for PHP bindings and copied the dll files(as the mentioned url is down, I got the dll files from [http://178.79.157.189/~mikko/win32/php-zmq-win32.zip])
3.Made changes in php.ini file.
But when I restart the server, I get the error:
PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/5.4.3/ext/php_zmq.dll' - %1 is not a valid Win32 application.
Check out the official zeromq PHP binding. I know from experience that it will work.
Download the extension from the PHP pecl site. Make sure that you download the right ext for your PHP distro.
I have RabbitMQ running on one of our servers and am trying to connect to it via PHP. I am developing on a Windows7 machine and my first line of code reads:
$cnn = new AMQPConnection();
It gives me the error:
Fatal error: Class 'AMQPConnection' not found in
I know that it is something that I need to install but what is it ? I am new to PHP so a little help would be nice.
Ps: I can connect to the RMQ server via the RabbitMQ admin web interface.
Thank you
Jack
Installation guide for php_amqp 1.4.0 (Stable version):
Download proper package for your php version from https://pecl.php.net/package/amqp/1.4.0/windows
Unpack php_amqp.dll to X:/php/ext/ directory
Unpack rabbitmq.1.dll to X:/Windows/system (not system32) directory
Modify php.ini file and add "extension=php_amqp.dll" line at the end of extensions list
Verify module installation by executing command "X:/php/php.exe -m" in command line
Restart webserver
I am developing on a Windows7 machine
You may be out of luck using that specific code. That class is from the PECL aqmp extension. Inside the installation instructions, it states:
Note to Windows users: This extension does not currently support Windows since the librabbitmq library does not yet support Windows.
You will want to use another library to speak to your message queue instead.
The rabbitmq-c library supports windows now, and the php_amqp pecl extension builds on windows as well. The documentation just hasn't been updated, nor are there any official binary builds in the wild. However, I managed to get them to build and have some 32 bit dll's available for download here:
http://www.nathanjohnson.info/?p=77
# AMQP installation php.net:
Note to Windows users: This extension does not currently support Windows since the librabbitmq library does not yet support Windows.
But here at RabbitMQ website is a windows installer...
Apparently this php.net page is outdated
To install do like this:
Download the correct package for your php from this official PECL amqp 1.4.0 page
unzip
add amqp.dll to your php ext folder
add rabbitmq.1.dll to your windows system 32 folder.
This according to the post on the blog I found here i think it is from the same #NathanJohnson who posted also here.
How I got it working:
My System Config: Win 7 Pro, (x64) XAMPP running PHP 5.6(x86)
Follow instruction from here to install RabbitMQ:
https://www.rabbitmq.com/install-windows.html
Now download compatible extension from here
https://pecl.php.net/package/amqp/1.4.0/windows
in my case it is "5.6 Thread Safe (TS) x86"
Now from zip file (php_amqp-1.4.0-5.6-ts-vc11-x86.zip) downloaded copy dll "php_amqp.dll" to your php extension folder in my case it is "xampp/php/ext" and copy dll "rabbitmq.1.dll" to "Windows\system" directory.
now register your php_amqp dll in php.ini file as
"extension=php_amqp.dll"
now restart apache.
Done. Now you should not get AMQPConnection not found exception.