Skip to main content

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
1 vote
1 answer
2k views

ubuntu 24.04 and php 7.4

I tried to install php 7.4 on ubuntu 24.04. I had to add this repostitory. sudo apt update sudo apt install -y software-properties-common sudo add-apt-repository ppa:ondrej/php But there is an error ...
Thomas Aichinger's user avatar
0 votes
0 answers
100 views

Ubuntu 23.10: Unable to install PHP 7.1 using ppa:ondrej/php and apt install php7.1 [duplicate]

I'm a Laravel dev and new to Ubuntu. I have two different apps which use two different versions of PHP. I need to have PHP 7.1.x. I tried to explore different platforms most of them are using ppa:...
Dayan Ahmed's user avatar
1 vote
2 answers
789 views

CVE-2023-3824, CVE-2023-3823 on PHP

I have a focal machine ("Ubuntu 20.04.6 LTS") with php 7.4 installed (7.4.3-4ubuntu2.19), a vulnerability scan warned me about CVE-2023-3824, CVE-2023-3823 in PHP but the following: https://...
Fabrizio Dal Farra's user avatar
1 vote
0 answers
4k views

How to setup cron job

I am using Ubuntu 22.04 and have php-fpm, so I am using php8.2 and php7.3. I use 7.3 for Interspire Email Marketer, (IEM). In IEM, it found the cron path to be: /usr/bin/php -f /var/www/mail.domain....
Hawk007's user avatar
  • 179
1 vote
0 answers
142 views

Can I use PHP 7.4.x with Ubuntu 20.04

This is a question to better understand security update policy of the Ubuntu LTS distributions. I understand that a certain Ubuntu version (such as 20.04 LTS) will not upgrade from PHP 7.4 to PHP 8.x ...
BurninLeo's user avatar
  • 186
0 votes
1 answer
552 views

Why is php7.4-curl version not installed?

I me an Ubuntu 22.04 cloud server. Site version php 7.4.30 I needed to install curl version 7.4, I did the following: sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.4-...
Анатолий Быков's user avatar
0 votes
0 answers
79 views

I need to upgrade php v5.6 to version 7.4 . What are the procedural steps?

I am going to be upgrading from codeigniter 3.1 to codeigniter 4.0. I understand that I first need to upgrade php on my Ubuntu 18.03 to from v5.6.4 to version 7.4+. What are the steps I need to follow?...
richie's user avatar
  • 17
2 votes
0 answers
2k views

ERROR: Module php7.4 does not exist! shows

I'm trying to enable php7.4 and disable php8.2, but I'm not able to enable php7.4, even though php7.4 is already installed please help me with this, thank you,
Rushikesh Solanki's user avatar
0 votes
0 answers
412 views

imagick WriteImage function is not working using Php 7.4

I am trying to write images using imagick php extension but code break on write image line. I also comment this line in policy.xml <!-- <policy domain="coder" rights="none" ...
Abdullah Shahab's user avatar
0 votes
0 answers
2k views

Failed to set session cookie Maybe you are using HTTP instead of HTTPS

I configure my phpadmin with nginx and I have a problem to login. my phpadmin version 4.9.5 my php version PHP 7.4.3 . it work when I try to change $cfg['Servers'][$i]['auth_type'] in /etc/phpmyadmin/...
HGS's user avatar
  • 1
10 votes
1 answer
8k views

When will Ubuntu 20.04 drop php 7.4 for php 8.x?

Ubuntu 20.04 reaches end of standard support in April 2025 and so has some life left in it yet. At present (Sept 2022), Ubuntu provides php 7.4 as the default php package for Ubuntu 20.04 and doesn't ...
Fred's user avatar
  • 101
0 votes
1 answer
1k views

php 7.4, ssh_connect(), "Unable to exchange encryption keys" when connecting to ubuntu 22.04 machines

When using ssh2_connect ssh2_connect($this->host, $this->sshPort) to connect to a server running Ubuntu 22.04 I get the following error on the client PHP Warning: ssh2_connect(): Error ...
Liam's user avatar
  • 101
0 votes
1 answer
972 views

PHP Sessions broken in default Ubuntu 20.04 installation [closed]

I have an Ubuntu 20.04 server with PHP 7.4.3 (Apache 2.4.41 + mod_php) running, everything should be at its default AFAIK. But PHP sessions do not appear to be working. When running the following code,...
user2845840's user avatar
1 vote
0 answers
860 views

Php 8 over php 7.4

Resolved after using sudo apt install php8.0-fpm a2enconf php8.1-fpm Original post: I have Ubuntu 20.04.4 Firstly I've installed php 7.4 but after a couple of day php 8 in Linux command line ...
Csaby's user avatar
  • 11
1 vote
2 answers
9k views

Attempt to install PHP 7.4, but get PHP 8.1.2

For my needs, I need to install PHP 7.4 (and a module for Apache2), instead of the latest PHP 8.x. So I run the following command: apt-get install -y php7.4 libapache2-mod-php7.4 Reading package lists....
Programer Beginner's user avatar
0 votes
0 answers
86 views

Getting Error while removing packeges

sudo apt remove php7.4-common Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The ...
Tayyab Shahzad's user avatar
1 vote
0 answers
77 views

Removing php7: whereis gives etc/php, not sure about nginx files

Sorry I have two questions. I want to remove php7.4 to install php8.0. I followed the link: How do I remove PHP 7 Completely? used the commands: sudo apt-get purge php7.* sudo apt-get purge `dpkg -l | ...
user2994783's user avatar
5 votes
2 answers
11k views

php 7.4, ssh_connect(), "Unable to exchange encryption keys" only when connecting to ubuntu 22.04 machines

I have a PHP tool that needs SSH access to some of my servers. This is an internal only application and it works 100% fine when talking to Ubuntu 18.04 machines. I started updating my machines to 22....
schworak's user avatar
  • 901
0 votes
0 answers
206 views

need a single repository as argument

Help need to fix this problem, Error: need a single repository as argument I wrote this sudo add-apt-repository ppa:ondrej/php sudo apt-get update I am about to add php7 ppa:
Janice Hadap's user avatar
12 votes
1 answer
12k views

Should I add-apt-repository ppa:ondrej/apache2 when I add-apt-repository ppa:ondrej/php, as advised?

I am upgrading an Ubuntu 18.04 LTS server to PHP 7.4 because PHP 7.2 is no longer supported. Other public questions have directed me to add sudo add-apt-repository ppa:ondrej/php, such as How to ...
Dave Aiello's user avatar
-1 votes
1 answer
2k views

can't install php-gd ext 7.0

when i tried to install php7.0-gd i found this error dfiadm@dc2-magneto-test:~$ sudo apt-get install php7.0-gd Reading package lists... Done Building dependency tree Reading state information... Done ...
Hamad Al-Shabrawi's user avatar
8 votes
1 answer
8k views

Problem with libicu66 during installation php-intl extension on Ubuntu 21.10

sudo apt install php7.0-intl Output: The following packages have unmet dependencies: php7.0-intl : Depends: libicu66 (>= 66.1-1~) but it is not going to be installed E: Unable to correct problems,...
Михаил Ребров's user avatar
1 vote
1 answer
37 views

UpDating .sh file to be compatible with v20.04

I'm trying to update this .sh file #!/bin/bash function pecl_install { pecl install $1 echo "extension=$2.so" | sudo tee /etc/php5/mods-available/$2.ini echo "; priority=$3&...
Dr Brok's user avatar
  • 11
1 vote
0 answers
94 views

How do you downgrade php8.0 to php7.4 in Ubuntu 21.10 [duplicate]

Normally you would use add-apt-repository ppa:ondrej/php, however, there does not seem to be a release file for 21.10 so it does not add the repository. A few websites I have setup do not work with ...
Mike Krejci's user avatar
7 votes
3 answers
10k views

How to install php7.4, 5.6 ubuntu 21.10

How to install the old version of PHP. It does not work at the moment repository sudo add-apt-repository -y ppa:ondrej/php Then: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu impish ...
mahdiakkk's user avatar
1 vote
0 answers
2k views

Phpmyadmin to work for php 5.6 and 7.2 both on Ubuntu 20.04

I am working on Ubuntu 20.04 and have multiple PHP versions installed (5.6 - 8.0) because I need to work on Magento 1 & 2 both. When I switch to 7.2 and open PHPMyAdmin in the URL, it works fine. ...
Vishal Verma's user avatar
2 votes
0 answers
778 views

PHP-FPM upstream error with ipv6

I have just installed the latest Nginx with PHP7.4-fpm on a fresh Ubuntu 20.04.2 server. I added a virtual host that has a WordPress site on it and it is loading fine but I noticed the nginx logs ...
AndrewL64's user avatar
  • 355
-1 votes
2 answers
1k views

Unable to correct problems, defective packets are in "keep as is" mode. when i tried install phpmyadmin

I tried to install phpmyadmin on ubuntu 20.10, but there are errors : $ sudo apt install phpmyadmin Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des ...
Matrix's user avatar
  • 129
0 votes
1 answer
8k views

php-pam : Depends: phpapi-20180731 but it is not installable

on Ubuntu Desktop 20.04 with PHP 7.4 apt install php-pam Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean ...
mi-hol's user avatar
  • 9
0 votes
1 answer
9k views

How to set php 8.0 as default version in ubuntu server

For some reason, i have to install PHP 7.4 and PHP 8.0 in the same ubuntu server. By default when i install php 7.4, it shows it is the default version when use the command php -v. But i want to run ...
Joseph Miller's user avatar
0 votes
1 answer
159 views

White page appearing during BASE Installation for SNORT 2.9.17.1

I am installing SNORT 2.9.17.1 using a mannual SNORT-IPS-Tutorial (https://snort-org-site.s3.amazonaws.com/production/document_files/files/000/000/069/original/Snort-IPS-Tutorial.pdf?X-Amz-Algorithm=...
Sheeraz Ali's user avatar
0 votes
1 answer
430 views

Whong php-config, right php -v and phpize

This is okay phpize PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718 This is also okay php -v PHP 7.2.34-18+ubuntu18.04.1+deb.sury.org+1 (cli) ...
Bruce's user avatar
  • 196
0 votes
1 answer
683 views

do-release-upgrade fails with ubuntu 16.04 with plesk installed

I have an older Ubuntu 16.04.7 LTS server with Plesk Obsidian 18.0.34 Update #2 and I am trying to upgrade to 18.04 LTS. Everything is up to date but when I execute do-release-upgrade it complains ...
Zenorbi's user avatar
  • 103
4 votes
2 answers
16k views

How To Configure Apache HTTP to PHP-FPM on Ubuntu 20.10

I followed directions from here to switch the server API entry will be FPM/FastCGI.from Server API Apache 2.0 Handler. When mpm_event is enabled and a2dismod php7.4 the phpinfo.php shows only: <?...
Brad Thompson's user avatar
2 votes
3 answers
2k views

Ubuntu 18.04 ondrej php7.3 - gives php8.0 as default php

Ubuntu 18.04 ondrej php7.3 - gives php8.0 as default php Error in Magento2.3 / Composer1.. phpunit/phpunit 6.5.14 requires php ^7.0 -> your PHP version (8.0.2) does not satisfy that requirement ...
Roy William Gabrielsen's user avatar
0 votes
1 answer
235 views

apache2 virtual directory with wild card certificate

I'm using Ubuntu 20.04. I created a new site with WordPress and it's not working. <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerAdmin webmaster@localhost ...
kunal's user avatar
  • 442
0 votes
1 answer
1k views

Errors when installing Plesk: Depends: libodbc1 (>= 2.3.1) but it is not going to be installed

I'm trying to install Plesk, and get the following error messages: plesk-librdbmspp : Depends: libodbc1 (>= 2.3.1) but it is not going to be installed plesk-php72-odbc : Depends: libodbc1 (>= ...
user2616079's user avatar
0 votes
0 answers
113 views

compulsory php7.2 settings in ubuntu 18.04 environment for web development

I have ubuntu 18.04 development environment. Is this compulsory to make change on the following lines below in php.ini file to run environment properly? $ sudo nano /etc/php/7.2/fpm/php.ini Changes ...
jeeva's user avatar
  • 49
1 vote
0 answers
2k views

Many held back PHP 7.4 package updates on Ubuntu 18.04 since 3 weeks

I use PHP 7.4 on Ubuntu 18.04.5 LTS in a wp/nginx/mariadb setup. I installed it via Ondrej's main php repo and used/updated it for more than a year without any problem whatsoever. Approximately 3 ...
iuntergu's user avatar
3 votes
5 answers
13k views

issue when installing php-dev in ubuntu 20.04

I am getting the following error: root@56709:/etc/nginx/conf.d# apt install php7.4-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not ...
aherlambang's user avatar
0 votes
1 answer
214 views

16.04 LTS, `php -v` in console shows PHP 7.0.33, but PHP 7.3 *is* installed, however I can't use Composer since it needs PHP 7.2+

I'm trying to install something with Composer and am told I need PHP 7.2+. I know for a fact that PHP 7.3.22 is installed on my Ubuntu 16.04 LTS/Apache2/Plesk 18 system as reported by phpinfo(); and ...
zoldos's user avatar
  • 13
1 vote
3 answers
32k views

php-curl not installed in php 7.4

I am trying to install php-curl in my terminal but this command show linux@Lenovo:~$ sudo apt-get install php-curl Reading package lists... Done Building dependency tree Reading state ...
Ananda's user avatar
  • 13
2 votes
2 answers
3k views

Facing issue while installing php7.3 on Ubuntu 18.04 “Not replacing deleted config file /etc/php/7.3/apache2/php.ini,”

I am trying to install Php7.3 on Ubuntu 18.4, I am using Apache Server(2.4). My php.ini file is not getting setup at location /etc/php/7.3/apache2/php.ini. I followed the php.ini does not exist but ...
PRashant PUrohit's user avatar
5 votes
1 answer
18k views

Why can't I install php7.4-intl on Ubuntu 20.04?

I need the INTL module for PHP on Ubuntu 20.04. When I do $ sudo apt install php7.4-intl I get Reading package lists... Done Building dependency tree Reading state information... Done Some ...
thoni56's user avatar
  • 239
0 votes
1 answer
1k 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/...
Richard Bernstein's user avatar
2 votes
0 answers
889 views

Broken php package in apt-get install [duplicate]

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: Reading package lists... Done Building dependency tree Reading ...
Mahdi's user avatar
  • 1,482
4 votes
1 answer
917 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, ...
coffinspire's user avatar
20 votes
3 answers
82k 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?
PeriodParser's user avatar
1 vote
0 answers
6k 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.
Gustavo Emmel's user avatar
0 votes
2 answers
235 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 | ...
j0h's user avatar
  • 15k

1
2 3 4 5 6