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
0answers
40 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 ...
1
vote
1answer
69 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 ...
0
votes
1answer
113 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 ...
0
votes
1answer
15 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=...
0
votes
0answers
14 views

Ubuntu install and configure for OpenRealty script?

I'm trying to verify what version of Ubuntu server I should use and process for installing / configuring the following requirements. Assuming Ubuntu 16.x but with the PHP SuExec/SuPHP all the ...
0
votes
1answer
31 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) ...
0
votes
1answer
90 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 ...
1
vote
1answer
481 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: <?...
0
votes
2answers
334 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 ...
0
votes
1answer
51 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 ...
0
votes
1answer
63 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 (>= ...
0
votes
0answers
29 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 ...
1
vote
0answers
631 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 ...
0
votes
2answers
1k 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 ...
0
votes
1answer
40 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 ...
0
votes
3answers
3k 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 ...
0
votes
1answer
758 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 ...
2
votes
1answer
3k 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 ...
0
votes
0answers
129 views

Memcache missing error

Using vagrant (scotchbox) and I decided to update the default php version it shipped with. Default shipped php version was 7.0 and I updated to php 7.3 using this guide. Everything went smoothly and ...
0
votes
0answers
81 views

installing php7.3 on Ubuntu 18.04 [duplicate]

I am using Ubuntu 18.04 Bionic. It still uses php7.2. When will it switch to php7.3 or even php7.4? How can I force the installation of php7.3?
0
votes
0answers
46 views

php7.3 not installing on ubuntu 16.04? [duplicate]

I am trying to update my PHP version but it gives an error: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' ...
0
votes
0answers
216 views

500 internal server error

I have a dedicated server running Ubuntu 20 latest stable release, Maria dB, apache2, and php7.4 all are latest stable release. My issue is that when I have PHP7.4-mysqlnd disabled the sites load php ...
0
votes
0answers
23 views

How to configure VS code for wordpress theme development in ubuntu

I have installed php, apache, mysql and wordpress. As I was going to start a new project I noticed that the server folder is at /var/www/html. As I know that it is in root directory. So I can't create ...
0
votes
1answer
711 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/...
2
votes
0answers
886 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 ...
3
votes
0answers
560 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, ...
13
votes
3answers
32k 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?
1
vote
0answers
4k 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
94 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
32 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 ...
2
votes
0answers
194 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
229 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
415 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
1answer
333 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
596 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
249 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
698 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
412 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
74 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
2k 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 ...
5
votes
1answer
3k 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
8k 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
2answers
10k 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
1k 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
2k 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
250 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
3k 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
54 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
2answers
2k 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.
-1
votes
2answers
4k 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 ...

1
2 3 4 5 6