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

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

Why is permission denied on this file?

I am having a strange problem. I am trying to include a file in one of my php files that is in my /assets folder. In the php file I have the line require "/opt/docker-substantiator2/app/...
-1
votes
0answers
39 views

Installing PHP7.2 on Ubuntu 20: error processing package php7.2-common (--configure)

I'm trying to install php7.2 in Ubuntu 20, and I'm driving crazy. I tried with the official sources and also with the ppa:ondrej/php by: sudo apt-get install software-properties-common sudo add-apt-...
0
votes
0answers
135 views

Broken package in apt-get install

I want to install php7.4-soap on my ubuntu 20.04 machine, so I ran sudo apt-get install php7.4-soap But I get following error: eading package lists... Done Building dependency tree Reading ...
2
votes
0answers
214 views

Ubuntu 20.04 - Can't Install Older PHP Versions

I decided to install Ubuntu 20.04 and give it a go. I am loving it so far, but I have run into an issue that may prevent me from using it. The default repositories have PHP 7.4, which is awesome, ...
3
votes
3answers
5k views

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?
0
votes
0answers
1k views

install php 7.1 on ubuntu 20.04 [duplicate]

I have recently install ubuntu 20.04 - focal fossal. I tried to add ondrej PPA. But it is not working. I only could install php7.4 by apt get. Please help.
0
votes
2answers
49 views

updated Ubuntu webserver not working

I just updated an Ubuntu 16.04 server to 18.04 using sudo do-release-upgrade. Nginx is the webserver. Sites report 404. During install, I chose to keep the currently installed version. $ ps aux | ...
0
votes
0answers
30 views

very heavy php fpm processes

i have problems with heavy php-fpm on a server. Here an excerpt from top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7631 <user> 20 0 583996 88932 ...
1
vote
0answers
71 views

/usr/sbin/and using up the entire CPU coure

I am running Ubuntu Server 18.04 LTS Kernel 5.5.2-050502-generic and since a while now I've seen this /usr/sbin/and popping up in htop, always using entire full core of the server, not really sure ...
1
vote
1answer
65 views

How can I determine the PHP version MediaWiki is using?

Running Ubuntu 19.10 with MediaWiki 1.31.1 installed. I have a wiki that worked well under Ubuntu 19.04 but says MediaWiki 1.31 internal error Installing some PHP extensions is required. Required ...
1
vote
1answer
58 views

How in APT to choose a specific source to provide installation instructions for virtual package?

I'm trying to install PHP extension php-ctype. When I do apt-get install php-ctype it returns Reading package lists... Done Building dependency tree Reading state information... Done Package php-...
0
votes
0answers
55 views

Encountering issues when trying to install Curl

I'm running an Ubuntu 18.04 server with PHP 7.3.9. I'm trying to install Curl on my server, primarily so that sites can communicate with Mailchimp. Doing so gives this error: Building dependency ...
0
votes
0answers
87 views

MySQL problems with PHP7.4 especially woth Laravel6

Doctrine\DBAL\Driver\PDOException : SQLSTATE[HY000] [2006] MySQL server has gone away at ~/PhpstormProjects/PropscoutFinal/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31 27|...
0
votes
1answer
225 views

Ubuntu 18.04 with LAMP installed and want to upgrade from php7.2 to php7.2-fpm

I have a bare metal Ubuntu 18.04 box that I installed LAMP on for NextCloud and Minecraft dynmap install in vhosts. Everything works okay, but my NextCloud speeds are laughably slow and all the ...
0
votes
1answer
216 views

Apache2 Web server is running but not serving after migrating to ubuntu 18.04

I appreciate a little help; I spent couple of days trying to rectify this issue. Basically My web server runs normally only after de-activating php7.2. First I attempt to de-activate all PHP ...
0
votes
0answers
137 views

Error : Phpize failed, some packages could not be installed

I am trying to install phpize on my ubuntu but everytime am getting this error. I tried this command apt install php7.0-dev and used the sudo also: sudo apt install php7.0-dev but it doesn't work ...
1
vote
0answers
180 views

Allowed memory size exhausted after switching PHP from 7.1 to 7.2

Previously, my site ran on PHP 7.1 on Ubuntu 14.04 LTS and I upgraded to Ubuntu 16.04. After upgrade, I could still access my site. Then I installed and switched to PHP 7.2 (I didn't remove PHP 7.1, ...
0
votes
1answer
184 views

Running Ubuntu 19.10 But phpinfo() shows v19.04

In trying to get ImageMagick to work with HEIC, I noticed that while I have Ubuntu 19.10 installed, phpinfo() shows version 19.04. This makes it difficult to know which php.ini to edit, especially as ...
1
vote
0answers
29 views

Multiple ElasticSearch (6 and 7) versions in ubuntu 18.04

I would like to install two Elasticsearch versions (Elasticsearch 6.x) and Elasticsearch (7.x). Does anyone know which is the best way for Ubuntu 18.04 so it should work for both projects? I want ES ...
1
vote
0answers
899 views

Ubuntu 18.04 + PHP7.3 - Unable to load dynamic library 'pdo_mysql.so'. How to solve it?

I have updated my SO form Ubuntu 16.04 to 18.04. I am using NGINX as a server and updated my php from 7.1 to 7.2 and 7.3. Now when I do php -v this is what I get: PHP Warning: PHP Startup: Unable ...
1
vote
1answer
974 views

Ubuntu 18.04 - Following packages have unmet dependencies: php7.2-fpm: … How to solve this error?

I have php version 7.1 in my Ubuntu 18.04. PHP 7.1.33-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Oct 26 2019 19:28:18) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c)...
0
votes
2answers
6k views

phpmyadmin has no installation candidate

I have updated and add repositories to sourcelist , but still doesn't work. cyan@cyanonvo:~$ sudo apt install phpmyadmin [sudo] password for cyan: Reading package lists... Done Building dependency ...
5
votes
1answer
5k views

How to install php7.2 in Ubuntu 19.10

I have recently upgraded to Ubuntu 19.10 from 19.04. When I tried to install some package it asked me to remove many packages by autoremove. So I run the command and it removed the php7.2-fpm. Now I ...
1
vote
1answer
539 views

PHP 7.3 update didn't take

OS: Ubuntu 16.04.6 LTS I updated to php 7.3. Everything appeared to go correctly. However when I type in php -v I get "PHP 7.2.24-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Oct 24 2019 18:28:...
3
votes
2answers
1k views

Making PHP7.2 work under Ubuntu 19.10

I installed Ubuntu 19.10 and use it for Web Development, mainly with PHP frameworks. We have a few projects that run php7.2 and php7.3. I got 7.3 installed however 7.2 doesn't exist? I've added the ...
0
votes
1answer
186 views

bionic (18.04LTS): PHP 7.3, Package availability

I am aware of the existing Ubuntu Packages site (https://packages.ubuntu.com/en/bionic/). But how to know which Php version will be supported ? Thank you.
-1
votes
1answer
1k views

Unable to locate package libapache2-mod-php7.0 [closed]

I'm trying to install Rainloop Webmail on Debian. I've added the next package add-apt-repository ppa:ondrej/php This key was added: 4F4EA0AAE5267A6C But upon apt-get update: Reading package lists.....
0
votes
0answers
283 views

MySQL not added to Apache2-PHP7.3

So I am upgrading from PHP7.0 > PHP7.3, and this shows in Apache2 when I do the following on a web page: phpinfo(); exit; //7.3.9 For the record I also needed to run: a2dismod php7.0 a2enmod php7....
0
votes
0answers
203 views

pdo_mysql.so missing even after installing php-mysql in Ubuntu with php version 7.1

I am using a Digital Ocean server. I have a Ubuntu 16.04 installed in it and am running multiple Laravel projects in it. However, I get PDO Mysql driver missing warrings. I would always ignore the ...
0
votes
0answers
32 views

How to install php5 alongside existing php7 which is installed using xampp?

I'm on ubuntu 16.04 unity 64 bit. For php7 I have xampp installed, for php5, I cannot have xampp, it will override php7. I need to temporarily install php5, how to do that? And how to switch back ...
0
votes
1answer
1k views

Ubuntu 18.04, can't enable the mbstring PHP extension

When entering the command sudo phpenmod mbstring it returns error already tried other solutions available on Google. Still, no result.
0
votes
0answers
400 views

Php 7.3 mod issue

I am currently running php 7.3 on Ubuntu Mate 18.04. I am trying to get a web server running and need the cli, dev, and mysql modules enabled. Unfortunately, when I try to enable them I get the ...
-1
votes
2answers
1k views

\n and \r\n not escapping when they are printed in the browser

I am not sure if this is an Ubuntu, Apache or PHP issue. The following basic scripts do not render a new line in my Firefox browser. echo "this is not \n creating a new line"; echo "this is not \r\n ...
0
votes
0answers
31 views

In Ubuntu16 I Cannot run more than 5 pool in php-fpm

I am trying to run more than 5 pool with 4 different port (9000, 9001,9002,9003,9004). PHP-fpm can listen on all 4 port and run without problem but when I run a pool on a fifth port like on 9005 but ...
1
vote
1answer
1k views

Can't install xdebug on LAMPP with PHP 7.3.5

I've searched and read a lot of threads, and a lot of webs. Documentation of xdebug also. But I continue developing without xdebug, and I really need it. I followed installation instructions of few ...
0
votes
2answers
473 views

How to Install Imagick on Ubuntu by OpenLiteSpeed web server?

I want to enable Imagick for lsphp73, I have a digitalocean OpenLiteSpeed for Wordpress droplet. By running these commands I think it doesn't install my proper PHP version: sudo apt install php-...
0
votes
1answer
261 views

PHP fresh installation with fpm & mysqli

Studying multiple documentations I've got confused about PHP 7.* installation process. Do I have to compile it from source with fpm and mysqli options, or may I use package manager like aptitude for ...
0
votes
0answers
78 views

apt-get purge package does not delete!

I am trying to fully uninstall PHP. I tried apt-get purge php7.3. But after my installation, the folder in /etc/ is still there and filled with data. Why? I also did autoremove.
0
votes
3answers
5k views

Why laravel api.php routes give a 404 error?

I'm using laravel 5.8.24 in Ubuntu 18.04 And This is the first time I'm writing an API. I'll add a test code here. routes/api.php Route::get('/api',function(){ return "Test api"; }); When I go ...
2
votes
0answers
905 views

Does answering “no” on the “restart services during package upgrades without asking?” affect unattended-upgrades?

I answered no when doing interactive upgrade check on 18.04 and this came up: There are services installed on your system which need to be restarted when certain libraries, such as libpam, libc, ...
2
votes
2answers
26k views

How do I enable PHP 7.3 in Apache2

I followed the instructions in https://idroot.us/install-php-7-3-ubuntu-18-04/ to install PHP 7.3 and then, as instructed, ran a2enmod proxy_fcgi setenvif a2enconf php7.3-fpm to enable it in ...
14
votes
2answers
25k views

How to update/upgrade PHP 7.2 to latest PHP 7.3 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 ...
5
votes
2answers
9k views

not able to get php7 after add ppa:ondrej/php [closed]

I added the repository by this command: LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/...
1
vote
1answer
2k views

PHP -v No such file or directory

i've been install PHP7.2 on my PC but when i try to php -v it's show me error like this bash: /usr/local/bin/php: No such file or directory and then i try to type php7.2 -v it's works Anyone have ...
0
votes
1answer
297 views

Uninstalled PHP5.6 not working

i've been uninstall php5.6 on my PC then I upgrade to PHP7.2 but when i checked php cli php -v, it's show me like this, it's still show me PHP 5.6 Anyone can help me out ?
0
votes
1answer
250 views

Switching PHP version PHP 5.6 to PHP 7.2

i have installed 2 php versions on my PC here, i run this command composer require kreait/firebase-php ^4.18 but that show error message : [InvalidArgumentException] Package kreait/firebase-php ...
0
votes
1answer
406 views

Php Server Monitor - Uncaught Error: Class 'DOMDocument' not found

I'm doing phpservermonitor's setup, I finished everything and supposedly it should be ready, but I get an error when I access http://my_localhost/phpservermon The error is Fatal error: Uncaught ...
0
votes
1answer
478 views

Ubuntu server PDO

I have Ubuntu server 18.04 with PHP7.2 and PHP5.6 loaded. When using PHP7.2 the PDO drivers shows in phpinfo(). When using PHP5.6 the PDO driver does not show in phpinfo(). The php.ini files look ...
0
votes
1answer
533 views

PHP7.3 upgrade from php5.6 and wordpress backend slow

Recently i upgraded my dedicated server from php-fmp 5.6 to 7.3 mysql from 5.5 to 5.7 Frontend is really fast...but backend is drammatically slow! If i run a long processo like a revision of some ...
0
votes
0answers
230 views

Ngnix - fpm php status page error

I am trying to see the fpm status page through ngnix (http://example.com/status). I am getting "Access denied." While my web application is running without any issues. Thanks in advance for your time. ...

1
2 3 4 5 6