Installation: webserver doesn't work

I have downloaded composer’s Windows Installer and installed it for all users on the computer.

Then I have installed Laminas following this tutorial starting from the first instruction

$ composer create-project -s dev laminas/laminas-mvc-skeleton path/to/install

After I ran this command

$ php -S 0.0.0.0:8080 -t public public/index.php

I got the following result:

\laminas_2>php -S 0.0.0.0:8080 -t public public/index.php
[Tue Jul 7 18:30:36 2020] PHP 7.4.7 Development Server (http://0.0.0.0:8080) started
[Tue Jul 7 18:32:22 2020] 127.0.0.1:62348 Accepted
[Tue Jul 7 18:32:22 2020] PHP Fatal error: Uncaught Laminas\I18n\Exception\ExtensionNotLoadedException: Laminas\I18n\Translator component requires the intl PHP extension in C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php:258
Stack trace:
#0 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php(354): Laminas\I18n\Translator\Translator->getLocale()
#1 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(163): Laminas\I18n\Translator\Translator->translate(‘Laminas MVC Ske…’, ‘default’)
#2 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(86): Laminas\View\Helper\HeadTitle->Laminas\View\Helper{closure}(‘Laminas MVC Ske…’)
#3 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(70): Laminas\View\Helper\HeadTitle->renderTitle()
#4 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\Placeholder\Container\AbstractStandalone.php(147): Laminas\View\Helper\HeadTitle->toString()
#5 C:\xampp\htdocs\lam in C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php on line 258
[Tue Jul 7 18:32:22 2020] 127.0.0.1:62348 Closing
[Tue Jul 7 18:32:53 2020] 127.0.0.1:62359 Accepted
[Tue Jul 7 18:32:53 2020] PHP Fatal error: Uncaught Laminas\I18n\Exception\ExtensionNotLoadedException: Laminas\I18n\Translator component requires the intl PHP extension in C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php:258
Stack trace:
#0 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php(354): Laminas\I18n\Translator\Translator->getLocale()
#1 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(163): Laminas\I18n\Translator\Translator->translate(‘Laminas MVC Ske…’, ‘default’)
#2 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(86): Laminas\View\Helper\HeadTitle->Laminas\View\Helper{closure}(‘Laminas MVC Ske…’)
#3 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(70): Laminas\View\Helper\HeadTitle->renderTitle()
#4 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\Placeholder\Container\AbstractStandalone.php(147): Laminas\View\Helper\HeadTitle->toString()
#5 C:\xampp\htdocs\lam in C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php on line 258
[Tue Jul 7 18:32:53 2020] 127.0.0.1:62359 Closing

As you have guessed, as server package, I use Xampp.

As attachment is one picture illustrating the files structure in the project root folder.

When I type the web server URL in the browser address bar, I get the following error message:

Fatal error : Uncaught Laminas\I18n\Exception\ExtensionNotLoadedException: Laminas\I18n\Translator component requires the intl PHP extension in C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php:258 Stack trace: #0 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php(354): Laminas\I18n\Translator\Translator->getLocale() #1 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(163): Laminas\I18n\Translator\Translator->translate(‘Laminas MVC Ske…’, ‘default’) #2 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(86): Laminas\View\Helper\HeadTitle->Laminas\View\Helper{closure}(‘Laminas MVC Ske…’) #3 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\HeadTitle.php(70): Laminas\View\Helper\HeadTitle->renderTitle() #4 C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-view\src\Helper\Placeholder\Container\AbstractStandalone.php(147): Laminas\View\Helper\HeadTitle->toString() #5 C:\xampp\htdocs\lam in C:\xampp\htdocs\laminas_2\vendor\laminas\laminas-i18n\src\Translator\Translator.php on line 258

Thank you for any help.

Welcome to the forum! :smiley:

The important message is:

This means you must enable the PHP extension intl.

The configuration for PHP can be found in c:\xampp\php\php.ini and in this file search for the following line:

;extension=php_intl.dll

Remove the starting semicolon (;) and restart the XAMPP.

(See also: https://stackoverflow.com/questions/33869521/how-can-i-enable-php-extension-intl)

Thank you froschdesign. It works now!