install and or enable a php accelerator highly recommended

Symfony 3.0 migration PHP 5.5 to PHP 7.1 : «A PHP accelerator should be installed > Install and/or enable a PHP accelerator (highly recommended)»?

I want to upgrade PHP5.5 to 7.1 in a SYMFONY 3.0 Project.

I have been checking the «php.ini» file to get the right result.

One last thing is unresolved: Under PHP5.5, I used the extension accelerator php_apcu.dll. This is not maintained in PHP7.

I was looking for alternative and I read here that the accelerator is no longer needed in PHP7 because already embedded in it.

When I do a CLI: «php bin/symfony_requirements», the following message appears:

A PHP accelerator should be installed > Install and/or enable a PHP > accelerator (highly recommended)

As I understand it, I don’t need to add a new extension but I can enable somewhow the accelerator in PHP7.

Does someone know if an «accelerator» parameter needs to be set to «true» in PHP7, or does it run by default (and Symfony error message should be ignored), or a new extension (different from the deprecated APC as the wiki page explains) should be installed?

UPDATES: Following comments received on the question I added to my «php.ini» the following setting:

I restarted the Apache service and When I do a CLI: «php bin/symfony_requirements», I still receive the following message:

A PHP accelerator should be installed > Install and/or enable a PHP > accelerator (highly recommended)

Updates regarding @LBA required info: I did a CLI «composer update» in the folder of my Symfony project.

Then when I do a CLI: «php bin/symfony_requirements», I get:

PHP Notice: A non well formed numeric value encountered in D:\Application\Apache24\htdocs\symf\my_symf_project\var\SymfonyRequirements.php on line 759

Notice: A non well formed numeric value encountered in D:\Application\Apache24\htdocs\symf\my_symf_project\var\SymfonyRequirements.php on line 759

Symfony2 Requirements Checker

PHP is using the following php.ini file: D:\Application\php7\php.ini

[OK] Your system is ready to run Symfony2 projects

Optional recommendations to improve your setup

Requirements file should be up-to-date

Your requirements file is outdated. Run composer install and re-check your configuration.

a PHP accelerator should be installed

Install and/or enable a PHP accelerator (highly recommended).

Note The command console could use a different php.ini file

than the one used with your web server. To be on the safe side, please check the requirements from your web server using the web/config.php script.

About the setting of the environment (on Windows10):

PHP 7.1.1 (cli) (built: Jan 18 2017 18:38:49) ( ZTS MSVC14 (Visual C++ 2015) x64 ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

The composer file in the symfony project looks like that:

And if I try to change the value to «php»:»>=7.1.0″ and launch «composer update» it gives:

Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

So there is something wrong with my environement variable with Symfony.

Источник

WEB MASTERING BLOG

Статьи о современных системах разработки веб-приложений

Поиск по этому блогу

Проверка конфигурации настроек сервера для запуска приложения Symfony

В этой статье будет описано как настроить сервер с соблюдением рекомендаций Symfony.

Приложение было установлено на PHP 5.4 с версией Symfony 2.8.16.

Итак, посмотрим, что же рекоммендует Symfony.

Запустим встроенный веб-сервер:

И перейдем на страницу:

Видим следующие рекомендации:

Это сообщение говорит о том, что не было включено расширение intl, которое используется валидаторами.

Включим его в php.ini:

После перезагрузки страницы мы видим новое сообщение:

В нем говорится, что версия ICU используемая в PHP, не совпадает с версией ICU используемой Symfony.

Попробуем взять расширение php_intl.dll из дистрибутива PHP 5.6 (в нем как раз используется версия ICU 57.1) и заменить наше расширение php_intl.dll, предварительно сделав бекап.

К сожалению, такой трюк не пройдет, т.к. PHP 5.4 скомпилирован с определенной версией intl и с другой работать не хочет.

В таком случае остается либо перейти на версию PHP 5.6, либо ничего не делать с этой рекоммендацией, т.к. следовать этим рекоммендациям не обязательно.

В этом сообщении говорится, что должен быть установлен PHP-акселератор.

PHP-акселераторы позволяются увеличить производительность PHP за счет кэширования скомпилированного байт-кода в памяти.

Как происходит обработка сценария:

Без PHP-акселератора, чтение файла и генерация байт-кода выполняется всегда.

С включенным PHP-акселератором, чтение файла и генерация байт-кода выполняется один раз, при этом байт-код сохраняется в памяти.

PHP-акселераторы рекомендуется использовать только, если у вас PHP версии 5.4 и ниже, начиная с версии 5.5 в PHP по умолчанию используется акселератор Zend OPcache.

Скачаем акселератор APC и подключим расширение в php.ini:

В этом сообщении говорится, что нужно увеличить кэш до 5 МБ, т.к. это может увеличить производительность на Windows в некоторых случаях.

Увеличим кэш в php.ini:

И последняя рекоммендация:

Нужно выключить поддержку коротких тегов « Поделиться

Источник

how to install PHP Accelerator in Xampp

how to install PHP Accelerator in Xampp

Today, We want to share with you how to install PHP Accelerator in Xampp.
In this post we will show you php accelerator xampp, hear for we will give you demo and example for implement.
In this post, we will learn about How To Install PHP Accelerator Xampp On Windows with an example.

Step By Step install PHP Accelerator in Xampp

To install PHP Accelerator in Xampp, We should get first of all to go to your main xampp version to find php.ini file and then (i.e. within C:xampp/php folder) and put this line Like inside Dynamic simple Extensions part : for php accelerator xampp linux, php accelerator xampp mac, php 7 accelerator xampp.

Then you need simple 6 steps :

Step 1 : to display We PHP setting configuration file via the main root folder and show PHP function phpinfo()

Step 2 : to fetch 2 some precious dynemic informations :

install and or enable a php accelerator highly recommended. Смотреть фото install and or enable a php accelerator highly recommended. Смотреть картинку install and or enable a php accelerator highly recommended. Картинка про install and or enable a php accelerator highly recommended. Фото install and or enable a php accelerator highly recommended how to install PHP Accelerator in Xampp

version of the x86 or x64, as well as TS (Thread Safe) / Like as a NTS (Non Thread Safe) version

Step 3rd : Simple this download the file Like corresponding DLL main below file (including some latest your PHP version):

Step 4 : simple here copy and all the code paste the DLL main file within your any extensions folder

Step 5 : simple file edit your php.ini file (i.e. within C:xampp/php folder)

Step 6 : After that put this line simple inside Dynamic php accelerator xampp Extensions part :

We hope This Post can help you…….Good Luck!.

Источник

Как утсановить Symfony2 на Apache?

Ну так следуйте инструкциям приведенными вами, неужели сложно разобраться?.

Смысл пытаться освоить symfony если вы еще с php не разобрались?

install and or enable a php accelerator highly recommended. Смотреть фото install and or enable a php accelerator highly recommended. Смотреть картинку install and or enable a php accelerator highly recommended. Картинка про install and or enable a php accelerator highly recommended. Фото install and or enable a php accelerator highly recommended

install and or enable a php accelerator highly recommended. Смотреть фото install and or enable a php accelerator highly recommended. Смотреть картинку install and or enable a php accelerator highly recommended. Картинка про install and or enable a php accelerator highly recommended. Фото install and or enable a php accelerator highly recommended

сейчас устанавливаю на web matrix.
ошибок меньше:

Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component.
Install and enable the intl extension (used for validators).
Install and/or enable a PHP accelerator (highly recommended).
Set «realpath_cache_size» to e.g. «1024» in php.ini* to improve performance on windows.

install and or enable a php accelerator highly recommended. Смотреть фото install and or enable a php accelerator highly recommended. Смотреть картинку install and or enable a php accelerator highly recommended. Картинка про install and or enable a php accelerator highly recommended. Фото install and or enable a php accelerator highly recommended

Install and enable the intl extension (used for validators).
Install and/or enable a PHP accelerator (highly recommended).

@fornit1917 я вообще не понимаю какой смысл заниматься разработчикой на Symfony под виндой? Ладно там настройть вагрант какой и запускать проекты в виртуалке оставаясь в уютненьком шиндовсе, но Symfony проекты на винде банально медленее работают (за счет медленной работы с файлами (is_file/file_exists/require) и регулярок в дев режиме все очень плохо). Виртуалка даст прирост.

@cimonlebedev APC устанавливать обязательно, иначе будет очень не приятно работать в dev окружении. Да и в прод окружении не особо. Странички будут обновляться по паре секунд.

А еще лучше поставьте virtualbox, настройте самбу и работайте хотя бы так. Если конечно вам интересно поднять скилы.

Источник

WampServer

I’m trying to install an accelerator with wamp, but with no luck till now.
I allready tried APC and eaccelerator. I couldn’t find a dll for APC, and eaccelerator makes the server hang when I restart the services

One of the best use of this function is when installing the symfony framework or any other frameworks.

Using a framework is good so a good advice on checking the your server is this :

Save the script on your webroot and this will check your SERVER. (Notice that APC PHP Accelarator is failed)

Because windows is using a dll, we need to get this here : [downloads.php.net]

I preferred the php_apc-3.0.19-5.2-Win32-VC6-x86.zip. Because the [pecl4win.php.net] is out of service (as of this time).

Open your php.ini and insert «extension=php_apc.dll» like shown below

Restart your WAMP.. and run the check.php that you’ve downloaded earlier.

I am trying to install apc, but so far without success. Whatever version I download from the above mentioned site, on startup apache tells me.

I tried all those:
php_apc-20110109-5.3-nts-vc9-x86.zip
php_apc-20110109-5.3-vc9-x86.zip
php_apc-3.1-5.3-svn20101116-vc9-x86.zip
php_apc-3.1.5-5.3-vc9-x86.zip
php_apc-3.1.8-dev-+igbinary-1.1.2-dev-5.3-ts-vc9-x86.zip
php_apc_3.0.17-dev.dll
php_apc_319_php53_vc9_nts_win7-2008.zip

install and or enable a php accelerator highly recommended. Смотреть фото install and or enable a php accelerator highly recommended. Смотреть картинку install and or enable a php accelerator highly recommended. Картинка про install and or enable a php accelerator highly recommended. Фото install and or enable a php accelerator highly recommended

Edited 1 time(s). Last edit at 09/09/2011 12:17PM by saraiama.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *