I am trying to run a basic cake 3.7 application, however after I create a new project I get a You must enable the intl extension to use CakePHP. According to CakePHP, XAMPP comes with intl extension it just needs to to be enabled via php.ini. I enabled the extension and restarted the server and it did not work. I look inside my extensions directory xamppfiles/lib/php/extensions/no-debug-non-zts-20170718 and could not find the required extension. My question is how do install and enable this extension to satisfy the requirement error?
I've just double-checked and indeed Xampp is coming with php_intl.dll (in your /php/ext folder).
You can enable this extension easily in your php.ini file:
Edit php.ini and remove ; on this line ;extension=php_intl.dll
Restart Xampp
Related
I've been making upgrades on my Dev workstation using XAMPP for a long time now, from the various version 7s up through 8.012.
I seem to have hit a wall upgrading to 8.1.
I've edited the apache config to use the new version of php. Taking the php.ini-development and renaming it to php.ini, then uncommenting the openssl extension has no effect after I restart apache:
extension=openssl
Openssl isn't enabled in the php info page:
And if I try and enable mongodb by moving my extension over from the previous installation, and uncomment the extension in php.ini and restarting apache again I get an error:
extension=php_mongodb.dll
Update: I now find that enabling ANY PHP module does not work under PHP 8.1.
I can roll back to the previous version of php-8.0.12 and have a fully functioning php again. When I roll back to the previous version enabling and disabling PHP modules still works. It does not work under PHP 8.1.
I'd like to stay up to date with the latest release if at all possible!
What am I doing wrong with this version of PHP? Why can't I enable anything?
I've had to set the FULL PATH to the extensions directory on Windows. Once I did that and restarted, I was able to enable / disable extensions. Look for this line in php.ini and adjust it to your needs:
; On windows:
extension_dir = "C:\xampp\php-8.1.0\ext\"
This setting only seems important on Windows. Set that line the way you want it, restart apache and you should be good to go!
You are copying an incompatible module compiled with the older version. If you are upgrading the PHP version, You'll need an extension DLL file compiled with that specific version of PHP and suitable for your server environment. You can download the compatible packages from here PECL. Download and put the .dll file in your extension directory. Then, you'll need to enable that extension.
Here is the guide for the windows system Installing a PHP extension on Windows.
For MongoDB, get it here https://pecl.php.net/package/mongodb
Trying to install Magento 2.2 locally on my Windows computer with MAMP. Received an error that the following PHP extensions were missing:
PHP Extension xsl and
PHP Extension intl
I went into the appropriate php.ini file for my version of PHP and removed the ; from infront of ;extension=php_xsl.dll and ;extension=php_intl.dll and restarted the server. The xsl.dll file works, but the intl.dll file is still missing.
I have checked and the extensions appear in the correctly in the file structure. Scratching my head.
SSHed and installed the correct extensions from the Sury PHP 7.2 library to my localhost
1.Installing TYPO3 CMS Screenshot
2.Ubuntu & PHP Version
3.PHP.ini Config
4.TYPO3 Version
In many cases, activating
extension=intl
in your php.ini
and restarting Apache will solve the problem.
In my case, using Windows, this was not sufficient:
Additionally, I had to add the php install directory to my windows path variable!
Details about this can be found here:
intl extension: installing php_intl.dll
I am trying to install intl extension in moodle which is a php application. I've added the lines
extension = php_intl.dll
and
[intl]
intl.default_locale = en_utf8
intl.error_level = E_WARNING
in my php.ini file. When I do this in apache and copy all the icuu*.dll files in apache/bin folder, I can see the extension in the application. In IIS server, I don't know where to copy the icuu*.dll files and whether I need to copy those files. If I restart without copying, the application still runs but I can't see the extension. Can someone please advise me?
I had the same issue. I tried to disable php_wincache.dll extension and it worked. Then i could reenable it again.
I used VC9 x86 Thread Safe intl extension dll from zip package from here http://windows.php.net/download/
MYSQL and apache server are already installed on my server.
But still I encountered these problem.
I dont understand the terms to compile php with --with-mysql
Where should i compile? i am using window server.
or how to install the mysql.so module??
Checking environment...
Please include all of the lines below
when reporting installation problems.
PHP 5.2.14 installed Could not find a
suitable database driver! For MySQL,
compile PHP using --with-mysql, or
install the mysql.so module For
PostgreSQL, compile PHP using
--with-pgsql, or install the pgsql.so module For SQLite, compile PHP using
--with-pdo_sqlite, or install the pdo_sqlite.so module For MSSQL,
compile PHP using
--with-mssql_not_ready, or install the mssql_not_ready.so module For DB2,
compile PHP using --with-ibm_db2, or
install the ibm_db2.so module For
Oracle, compile PHP using --with-oci8,
or install the oci8.so module
Look in /php_install_dir/extensions. There should be a file named "php_mysql.dll". If so, enable it in php.ini. If not, download the dll, copy it to the extension dir and enable in php.ini. Remember to restart Apache.
See this page for more info (make sure you read the comments).
Changed this in php.ini. Shouldn't the installer have done this for a Windows installation?
; enable_dl = Off
; CHANGED - This is necessary to enable dynamic loading of Windows .dll modules
; The immediate problem was that PHP could not find a database driver for MySQL
enable_dl = On
For PHP: 5.6.10 and MySQL: 5.0.24a
Go to the root folder of PHP installation
Find a file called php.ini-production
Save the file as php.ini
Edit the file and uncomment the following contents
;extension=php_mysqli.dll
;extension_dir = "ext"
and replace it with,
extension= php_mysqli.dll
extension_dir = "D:\Programs\php\ext”