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
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
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
I downloaded PHP 5.5. for Windows and trying to install Composer.
Later I found that Composer need Zip extension. But php_zip.dll file is missing from PHP 5.5 zip I downloaded from php.net website.
Where can I find this missing php_zip.dll?
Thanks in advance.
Found the Answer.
Remove ;extension=php_zip.dll line in php.ini.
Restart Apache HTTP Server.
Previous versions of PHP shipped with separate php_zip.dll file in ext folder. And we need to enable (comment out the ;extension=php_zip.dll line in php.ini) the zip extension manually.
Latest version - PHP 5.5 includes this zip support in core and it is enabled by default.
But the line ;extension=php_zip.dll was left there in php.ini even though it is not needed.
As usual after installing PHP 5.5, I enabled (commented out) ;extension=php_zip.dll line in php.ini, thinking that it is a separate extension.
In this case, Composer couldn't find php_zip.dll.
I removed the ;extension=php_zip.dll line in php.ini.
Restarted Apache HTTP Server.
Worked fine.
The PHP 5.5 build for Windows that I installed from windows.php.net did not come with /ext/php_zip.dll, so I had to download the latest dll file for my Windows 8 x64 Non-Thread-Safe system and copy it into my php ext directory: http://pecl.php.net/package/zip/1.12.4/windows
Here is what I have in my PHP.ini:
extension=php_apc.dll
...
[APC]
apc.enabled = 1
I'm running Apache 2.0.59, PHP version 5.2.3 on Windows Server 2003.
I've already installed XDebug compiled with vc6. Thus, I got the APC version 5.2 vc6. Here are both filenames that I downloaded (and put the *.dll in php/ext/).
php_apc-3.1.5-5.2-vc6-x86.zip
php_apc-3.1.5-5.2-nts-vc6-x86.zip
I got them here.
I've tried rebooting the server and in both cases, I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library './ext/php_apc.dll' - The specified module could not be found.\r\n in Unknown on line 0
Try using the full drive letter and path to extension_dir in php.ini:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "C:\somedir\php\ext"
And restart Apache after making the change.
(It might very well be something else, but this is the first thing I check on Windows systems -- those pesky filepaths.)
First, I went here
Then, I downloaded Collection of PECL modules for PHP 5.2.3
Then, I extracted the php_apc.dll file and copied it in the ext/ folder
Restarted Apache
It works!
To complete other answers:
Using the non thread safe (NTS) version of the DLL instead of the thread safe one solved the problem for me.
That is, only the NTS version was compatible with my WAMP installation.
You could check this:
Note: On Windows, APC needs a temp path to exist, and be writable by the web server. It checks the TMP, TEMP and USERPROFILE environment variables in that order and finally tries the WINDOWS directory if none of those are set.
http://php.net/manual/en/apc.installation.php
You have to be sure that the DLL has the correct architecture level. I had the same problem trying to load the file from php_apc-3.1.10-5.4-vc6-x86.zip. It didn't work, while the DLL from php_apc-3.1.10-5.3-vc6-x86.zip worked. I don't know how to find the right file without fiddling in the PHP repository though. HTH.
My problem was that I had listed apcu before apc.
extension=apc
extension=apcu
Reordering them so apcu was first, solved my issue.
In my case, I'm using macOS Catalina and was trying to install extension APCU for PHP 5.6.
So i ran below commands:
brew install autoconf
pecl channel-update pecl.php.net
pecl install apcu-4.0.11
At this stage my php5.6 ini got input extension="apcu.so"
But i was getting warning saying the apcu.so wasn't found under
/usr/local/lib/php/pecl/20131226/ directory.
The installer put the apcu.so at /usr/local/Cellar/php#5.6/5.6.40/pecl/20131226/apcu.so
so i copied the apcu.so to the desired directory
cp /usr/local/Cellar/php#5.6/5.6.40/pecl/20131226/apcu.so /usr/local/lib/php/pecl/20131226/
and i'm done.