Questions tagged [php7]

Questions related to the seventh release of PHP, a server-side scripting language designed for web development, which can also be used as a general-purpose programming language

PHP 7.0.0 was released on the 3rd of December, 2015 and comes with a new version of the Zend Engine, numerous improvements and new features.

289 questions
158
votes
4 answers

Installing PHP 5.6 on Xenial (16.04)

I need to use php5 (5.6) because I'm working on a Drupal 7 project which doesn't support php7. The problem is I recently updated to ubuntu 16.04 Xenial which seems to no longer support php5. I tried to install it from this repo, however when It try…
Nikolai
  • 1,683
124
votes
9 answers

How to install PHP 7?

PHP 7 came out yesterday and I would like to give it a try. PHP 7.0.0 comes with a new version of the Zend Engine, numerous improvements and new features such as Improved performance: PHP 7 is up to twice as fast as PHP 5.6 Significantly reduced…
hg8
  • 13,582
83
votes
5 answers

how to install imagemagick for php7 on ubuntu?

well, just after upgrading my Ubuntu and therefore moving to php7, I seem not to be able to install imagick extension for php using the same old command sudo apt-get install php5-imagick I get this error (tried php7-imagick too) Package…
azerafati
  • 1,189
68
votes
1 answer

Upgrade to the specific php 7.1/7.2 from php 7.0 in Ubuntu 16.04

How can I upgrade to php 7.1 from php 7.0 in ubuntu 16.04 ? If I do a php -v I get this message: PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with…
47
votes
5 answers

curl is not working on Ubuntu 18.04 LTS

I can't fetch content from the web using `curl. I tried to install it and got the output below: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that…
Joseph-L-S
  • 1,113
41
votes
3 answers

ERROR: Module php7.0 does not exist!

I have Ubuntu Server 16.04 installed with Webmin 1.831. I am getting this error when trying to run PHP ERROR: Module php7.0 does not exist libapache2-mod-php7.0 is installed.
32
votes
2 answers

How to update/upgrade PHP 7.2 to latest version safely?

I am running a WordPress website over LEMP stack server on Ubuntu 18.04 on DigitalOcean. WordPress is recommending me to update my PHP to the latest version. I am running PHP 7.2.17; Please tell me the safest way to update my PHP to the latest…
31
votes
5 answers

How to install Mongodb PHP extension in Ubuntu 16.04 LTS

I'm running Ubuntu 16.04 LTS and I want to use Mongodb with PHP. For this I tried sudo apt-get install php5-mongo which is enough for Ubuntu 14.04 LTS would be enough but I was wrong. I'm getting error message as: E: Unable to locate package…
22
votes
9 answers

Install laravel 5 on Ubuntu 16.04

Anyone installed laravel 5 on Ubuntu 16.04? I've just switched to Ubuntu 16.04 and I'm trying to install laravel 5 framework on it using composer. But every time I try to create a project it gives me this erros Your requirements could not be…
21
votes
3 answers

Cant install PHP 7.2 on Ubuntu 20.04

I added ondrej PPA. And tried install php 7.2, but looks like PPA has not been updated yet. What are my workarounds?
20
votes
4 answers

PHP rendered as text after Ubuntu 16.04 upgrade

Apache is rendering PHP files as text after Ubuntu 16.04 upgrade. Apache is installed and running. PHP7 is running. When I execute the following command I get the correct output: php -r 'echo "\n\nYour PHP installation is working…
machadoug
  • 267
15
votes
1 answer

Using an unofficial PHP PPA on a production server

I have a query regarding PHP updates on my Ubuntu servers. I've noticed that php versions from here https://launchpad.net/~ondrej/+archive/ubuntu/php seem to get updates a lot faster than the official ubuntu PHP packages get updated. My primary use…
Matt
  • 325
14
votes
4 answers

How to activate PHP7.0 PDO in 16.04 LTS?

I upgraded from 14.04LTS to 16.04LTS; php5 to php7.0; MySQL to 5.7. Apache and PHP are working but when trying to access MySQL databases, I get the following: fatal error: could not find driver phpinfo() shows "no value" under PDO Drivers Enabled.…
13
votes
3 answers

How do I enable the bcdiv function in PHP 7.0?

The PHP function bcdiv is not available by default. How do I enable that in PHP configuration?
12
votes
4 answers

how to enable and disable php7 modules in linux server 16.4

I have mad a custom ini files in /etc/php/7.0/mods-available. how can I enable it. I have tried php5enmod, and php7enmod. none worked for me. Thank you.
1
2 3
19 20