Installing and initializing symfony on ubuntu 18.04 - symfony

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.

Related

Symfony "no PHP binaries detected" on GNU / Linux Debian

I'm installing Symfony framework following the instructions of https://symfony.com/download using symfony-cli.
When I executed
symfony new my_symfony_app
I get the next Error
no PHP binaries detected
I thought the solution would be to install php by using apt, but after some research I read about php-symfony deb package and I installed it.
apt install php-symfony
Works fine to me and solved the problem.

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.

Symfony 2.8 issue when i run config.php

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

Upgrading NGINX: apt-get candidate version

I've installed nginx-light on my Google Compute Engine instance (Debian Wheezy). I installed with apt-get install nginx-light, which installed NGINX version 1.2.1 (specifically: 1.2.1-2.2+wheezy3).
Its working fine, but I was just over at NGINX and realized this is a very old version from like 2012, and that the latest stable version is 1.6.2. But apt-get upgrade nginx-light doesn't upgrade the release it seems. I'm not that familiar with apt-get so I've been searching for tips. I found a reference to the command: apt-cache policy nginx-light. Running that I get:
nginx-light:
Installed: 1.2.1-2.2+wheezy3
Candidate: 1.2.1-2.2+wheezy3
Version table:
1.6.2-5~bpo70+1 0
100 http://gce_debian_mirror.storage.googleapis.com/ wheezy-backports/main amd64 Packages
100 http://http.debian.net/debian/ wheezy-backports/main amd64 Packages
*** 1.2.1-2.2+wheezy3 0
500 http://gce_debian_mirror.storage.googleapis.com/ wheezy/main amd64 Packages
500 http://security.debian.org/ wheezy/updates/main amd64 Packages
500 http://http.debian.net/debian/ wheezy/main amd64 Packages
100 /var/lib/dpkg/status
So it shows 1.6.2 as available in the version table. A little more research indicates that the pin-value (100) of this version correlates to "NoAutomatic" and "ButAutomaticUpgrades". A little more searching tells me these states indicate that the upgrade to that version isn't automatic, it must be explicit.
It seems the solution has to do with version pinning, but I'm not finding clear enough info on that to be confident about exactly what to do. So I have a few questions if anybody has any insight.
Do you know of a good reason the upgrade to 1.6.2 wouldn't be
automatic? Any reason to stay on 1.2.1? This will be a production
web server for a fairly small web site (basically a startup home
page) running PHP / Wordpress.
How do I force apt-get upgrade to use 1.6.2 as the candidate
release?
What brought me here was setting up Google PageSpeed modules. The
instructions involve building NGINX 1.6.2 from sources with the GPSM
linked in. But I don't want to confuse the package manager or mess
anything up by building my own NGINX if I don't have to. Will I need
to build from sources if I want to install GPSM into NGINX?
The website is already running great, and super fast with CloudFlare. But I thought I would experiment with Google Page Speed- but not if its going to be too much trouble.
OK I figured it out myself. Maybe not the most efficient, but I had to:
Backup my nginx config (not too complicated, just nginx.conf was
overwritten with a new version)
sudo apt-get remove nginx-light
sudo apt-get autoupdate
sudo apt-get install nginx-common=1.6.2-5~bpo70+1
sudo apt-get install nginx-light=1.6.2-5~bpo70+1
Then I had to change one line in my site config in /etc/nginx/sites-available...
(because PHP files stopped working after the upgrade)
I changed: include fastcgi_params;
to: include fastcgi.conf;
I still don't know if this upgrade was really necessary, or if I can (or should) install google pagespeed into it, but at least I've got the latest stable nginx running with my current setup.
FYI, the correct way to do this is (using the wheezy-backports line for example) is
apt-get install -t wheezy-backports nginx-light
As for your question:
Do you know of a good reason the upgrade to 1.6.2 wouldn't be automatic?
The answer is simple, so that you don't upgrade to a version newer than the version in wheezy by accident. Most of the time, you don't want to do that.
Also, you ask:
Will I need to build from sources if I want to install GPSM into NGINX?
Building a custom Debian package from nginx sources may be an option. But I'm not sure of the details of what you are trying to do.

How can I install qt5 to Debian using commandline?

I need to install Qt5 to my Debian using commandline. How can I do that?
My system:
debian 2.6.30-vortex86mx-yh
I am trying to install using qt online installer from qt-project.org.
But after ./qt.run I get this error:
libstdc++.so.6 version glibcxx_3.4.11 not found
I try to install libstdc++6. but Debian said it is already newest version.
cat /etc/issue result is:
Debian 5.0
Also my debian has no gui. I have to do it using commandline.
Try this command for installing from default debian 5 repository:
#apt install g++
#apt install qtcreator
#apt install qtdeclarative5-dev
You should be able to run the qt-installer in a decent debian version. Get Version by:
cat /etc/issue
On older versions or "unsupported" versions you can still download the sources and build the libraries yourself, which is probably your way to go, since the vortex86-builds are pretty limited in compiler flags. Compiling is rather easy, depending on your needs. The configure script itself gives you a lot of hints regarding possible flags.
Another alternative is to find a user-managed repository that has QT5 for your debian version and add this repository to your sources.lst, so you could perform a apt-get install libqt5.

Resources