Symfony 2.8 issue when i run config.php - symfony

when i access config.php in my browser i have following issue.
Configuration Checker
This script analyzes your system to check whether is ready to run Symfony applications.
RECOMMENDATIONS
To enhance your Symfony experience, it’s recommended that you fix the following:
intl ICU version installed on your system is outdated (4.2.1) and does not match the ICU data bundled with Symfony (57.1)
To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.

Try to install driver by :
if you use php5 do:
sudo apt-get install php5-intl
if you use php7 :
sudo apt-get install php7.0-intl
After restart apache
sudo /etc/init.d/apache2 restart

Related

Almost empty symfony install ( missing vendors except for flex )

symfony new my-project
is supposed to install a basic working symfony app but it gives me a project that's almost empty, with only composer.json, composer.lock and a vendor directory with only symfony/flex.
composer.json does include symfony/framework-bundle, but the bundle is not in vendors.
Running composer install does not do anything, and doesn't give an error.
Installing php-zip solved it for me (required by composer).
Looks like it might not be installed by default on recent ubuntu php installations, and either composer or the symfony binary failed silently.
sudo apt install php-zip
# now install vendors
composer update

php7.0-mcrypt can't install on ubuntu14.04

phpmyadmin show error [ The mcrypt extension is missing. Please check your PHP configuration.] on nginx. My PHP version is PHP 7.0.33-1+ubuntu14.04.1+deb.sury.org+1 (cli).
When I install php7.0-mcrypt, package doesn't exist.How to install php7.0-mcrypt?
As I understand from your message, you're using ubuntu 14.04. I recommend you upgrade your system. You could find this package in some latest reseases.
Or you could install this package manually wget http://cz.archive.ubuntu.com/ubuntu/pool/universe/p/php7.0/php7.0-mcrypt_7.0.33-0ubuntu0.16.04.4_amd64.deb && sudo dpkg -i php7.0-mcrypt_7.0.33-0ubuntu0.16.04.4_amd64.deb. But be careful, you could face some dependency hell and damage your OS.

RuntimeException: The bcmath extension is required by NumberFormatter

I have installed drupal commerce module. I am getting the below error while viewing a product page.
RuntimeException: The bcmath extension is required by NumberFormatter. in CommerceGuys\Intl\Formatter\NumberFormatter->__construct() (line 113 of /home/web/docroot/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php).
You have bcmath error and you need to install PHP bcmath extension.
sudo apt install php7.2-bcmath
You can check enabled extensions with php function. get_loaded_extensions()
Install php-bcmath with dependencies
yum install php-bcmath
Based on your PHP version you have to install bcmath extension.
for 7.2
sudo apt install php7.2-bcmath
for 7.4
sudo apt install php7.2-bcmath
Once done with installation you have to restart apache server then only it will start.
sudo service apache2 restart

Installing and initializing symfony on ubuntu 18.04

I tried almost all the solutions provided on the internet. Nothing seems to work.it says
Your requirements could not be resolved to an installable set of packages.
Problem 1
-installation request for symfony/symfony v2.8.4.1 -> satisfiable by symfony/symfony[v.2.8.41].
-symfony/symfony v2.8.41 requires ext-xml *-> the requested PHP extension xml is missing from your system.
You didn't mentioned the system on which you run Symfony and which PHP version you use.
For Ubuntu with PHP 7 you just need to install the xml extension through apt: sudo apt-get install php7.0-xml
For Windows you can follow the guidelines in the PHP documentation
For Mac OS X you can use a package installer like Homebrew or use a tool which will install many package at once
After that, make sure the extensions are enabled in your PHP ini file.

How to install a specific version of nginx on Debian 7?

I did the following to nstall nginx on Debian 7
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx
sudo service nginx start
This installed the latest version of nginx , How do I install another version?
Doing sudo apt-get install nginx=1.2 or sudo apt-get install nginx-1.2 does not work. It fails saying version not found?
Older version of Nginx is not available in Debian repository, you need configure Nginx Debian repository http://nginx.org/en/linux_packages.html or find the deb package and install manually.
A distribution of Debian is a set of software packages that was tested to run well together. Every change imposes a risk to break somethign somewhere since that change may not have been prepared for by another software also installed.
When you are for a newever version than what the distributions ships, then a look at the package "tracker" will present an overview of what is currently available, which includes so-called backports to your distribution: https://packages.qa.debian.org/n/nginx.html but indeed the packages directly provided by nginx.org should be just fine. For looks into the past, check out http://snapshot.debian.org/package/nginx/ .

Resources