Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

Filter by
Sorted by
Tagged with
1 vote
0 answers
12 views

Octopus deployment causes 100% CPU usage in PHP-FPM

Environment: AWS OS: GoldenImage-amazonLinuxV2-2021-01-04_19.43.07 Nginx: 1.20.0 PHP-FPM: 7.3.33 Octopus tentacle: 6.1.1351 The old method So we currently use a simple push script to deploy a PHP site ...
user avatar
0 votes
0 answers
17 views

Memcached throws errors when using it as session handler

We are trying to use Memcached (1.5.22) as a session handler on a server with Apache + PHP 7.4, however, we have observed random errors with the message below: session_start(): Failed to read session ...
user avatar
  • 217
-2 votes
2 answers
32 views

what the meaning of #!/usr/bin/php -q

I look at some php script in centos,I notice there is #!/usr/bin/php -q What is the meaning of this option? because I cannot see it in php --help
user avatar
0 votes
0 answers
10 views

I've set sendmail_path in PHP.ini, and it works fine on the command line, but not when the same script is called from an Apache server?

So I'm trying to do a simple test of some email functions in a PHP (Magento) application, but I'm running into an issue. All I want to do is to store the output from calls to the built-in mail() ...
user avatar
-2 votes
0 answers
41 views

Migration from php5 to php7 on Red Hat Linux offline

I'm going to migrate a web application created since 2005 that use PHP 5.3 to PHP 7.2.11 , the server does not have internet access, so I should install all packages and dependencies manually. I have ...
user avatar
0 votes
0 answers
33 views

unable to upgrade php in ubuntu 18.04

I am trying to update php from 7.2 to 7.4, but getting error. I am trying with the following command as root: add-apt-repository ppa:ondrej/php the error: Error reading https://launchpad.net/api/1.0/~...
user avatar
  • 1
0 votes
1 answer
13 views

php memory_limity = -1 not respected?

Debian bullseye, php 7.4. One of my cron jobs has the line: 30 1 * * * www-data /usr/bin/php /my/script.php > /dev/null I'm getting the error PHP Fatal error: Allowed memory size of 157286400 ...
user avatar
0 votes
1 answer
87 views

After upgrading Debian Buster to Bullseye, Wordpress sites no longer updating

Today I upgraded my webserver from Debian Buster to Bullseye and it was in fact a pretty straightforward upgrade. Everything seemed to work until I tried to reach a few WordPress sites on the server. ...
user avatar
  • 155
0 votes
1 answer
34 views

apache 2.4.6 site works on Debian 10 but not on CentOS - php 7 code

I have a bootstrap website that runs on Debian 10 - php 7.4.25, httpd 2.4.52, mysqld 15.1 Distrib 10.5.12 which works perfectly. I copied it to my CentOS 7 box, which has selinux running as permissive ...
user avatar
  • 1
1 vote
0 answers
159 views

PHP PDO Very Slow on Fetch

I have a problem with a couple of queries running in PDO on PHP connecting to MSSQL server 2019. I have checked the time in SSMS and its fast. I have also added some timers into my code so I can see ...
user avatar
  • 11
0 votes
0 answers
33 views

HTTPS POST-Request fails in connection with Content-Length

A PHP application posts XML data with curl; nothing fancy, the output looking like (c/p, but identifiers and passwords changed): Host: foreign.host.example Authorization: Basic dGVzdDpnZWhlaW0= User-...
user avatar
  • 11
0 votes
1 answer
95 views

Nginx php-fpm 1 of 3 pools not working: returns stat() failed (13: Permission denied)

I have nginx with 3 pools for php7.4-fpm - one for each of 3 users on the system as they have their own apps and files. The setup of all 3 is completely identical, but the recently added one has some ...
user avatar
  • 13
0 votes
0 answers
37 views

AWS Lightsail LAMP PHP7 mod-rewrite

I just installed a fresh AWS Lightsail LAMP stack with php7.4 and a lets encrypt ssl Docs say Mod-rewrite is installed/enabled by default however I get a 404 when I go to any url on my site that is ...
user avatar
  • 103
0 votes
0 answers
959 views

Composer telling me " PHP extension ext-gmp * but it is missing" when it shouldn't be

I'm new to Composer, so be gentle! I'm trying to install a script that uses Composer, but I get: Problem 1 - Root composer.json requires PHP extension ext-gmp * but it is missing from your ...
user avatar
0 votes
0 answers
41 views

Page Loads Error

In my production Environment I'm observing a sporadic issue where pages are taking a long time to load. In the error logs we are seeing: PHP Fatal error: Maximum execution time of 30 seconds ...
user avatar
0 votes
0 answers
33 views

occasionally momentary loss of name resolution or connectivity between Azure app. instance and AWS DB

We have a PHP application running in an Azure app. instance and it communicates with a Postgres database hosted in AWS. Very occasionally it is unable to communicate with the database: [11-Nov-2021 ...
user avatar
0 votes
0 answers
81 views

How to serve Scriptcase app using nginx reverse proxy?

I have been trying to serve Scriptcase running on port 8091 through Nginx as a reverse proxy. I think I misunderstand what should proxy_pass do because everything I did so far is not working. The ...
user avatar
  • 101
0 votes
1 answer
96 views

PHP5 to PHP7 unexpected increase in memory usage inside container

Last week we updated several wordpress sites which are running Alpine Linux as containers inside a host (Ubuntu 20.04) through LXD. A summary of the update is as follows: Alpine Linux v3.8 -> 3.14 ...
user avatar
  • 466
1 vote
1 answer
247 views

On Apache 2.4, how can I disable the php7 module?

I want to disable the php7 module. apache2 -M | grep php returns: php7_module (shared) However, these commands fail: a2dismod php7 a2dismod php7_module They both return a message specifying that ...
user avatar
  • 133
0 votes
0 answers
61 views

Why does a systemd script stop writing to a log after restarting the service?

I have a systemd unit file. It starts a php script. There was a network blip, which made me have to reboot after nothing else worked. I noticed that the script was no longer writing to the specified ...
user avatar
0 votes
0 answers
25 views

Why is my PHP CLI Curl version different from curl and libcurl even if I try to force it with --with-curl flag during compilation?

I have compiled PHP after compiling Curl 7.73 . Curl -v shows me it's 7.73, and if I go to my web server and check phpinfo() output it's also 7.73 . However, the compiled php cli is showing me that it'...
user avatar
0 votes
0 answers
123 views

NGINX liip_imagine unable to create path for ... "Get operation failed" webp - not creating .webp in media/cache/filter_name symfony

So in my liip_imagine i have something like: webp: generate: True quality: 70 and it works good locally, it serves .png.webp images, but when i put it on my NGINX server i have an issue called ...
user avatar
0 votes
1 answer
270 views

How to install PHP on CentOS has preinstalled Apache HTTPD?

I'm using CentOS 7. I wanted to install PHP 7 so I used remi-php (latest PHP version of yum is 5.4). Since the HTTPD version of yum is too old, I compiled the latest HTTPD version from the source code....
user avatar
1 vote
2 answers
97 views

Can't change linux user password with php script [closed]

I have the following php script for password change: <?php error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE); ini_set('display_error', true); $cmd = '...
user avatar
  • 245
0 votes
1 answer
91 views

OpenSUSE: PHP - Unable to execute sudo /usr/sbin/chpasswd

Could somebody give a tip, where can be a problem. I have a Server with OpenSUSE, PHP7 and roundcube. Plugin "Password" in roundcube fire an error: PHP Error: Password plugin: Unable to ...
user avatar
  • 245
0 votes
0 answers
472 views

“No input file specified” - Laravel project on CentOS

I've have VM with CentOS installed where I want to host Laravel project. I've put it on /var/www/html/project But when I access via URL of this project like 127.0.0.1/project I get tree of document. ...
user avatar
1 vote
1 answer
3k views

Not able to install PECL for php 7.3 in ubuntu 20.04 LTS

I have a laravel project that uses firebase and I am not able to install PECL for php7.3. I tried this https://cloud.google.com/php/grpc. When I tried the following command sudo apt-get install ...
user avatar
0 votes
0 answers
24 views

S3 Security Policy for Bucket while allowing signed urls

ugh, bucket policies. I am trying to write a bucket security policy that would keep an outsider from listing the structure and data in the bucket but at the time my AWS users needs to be able to pull/...
user avatar
  • 109
0 votes
2 answers
2k views

Cannot enable php7.4 on Ubuntu 20.04

I'm trying to set up nextcloud on a home ubuntu box. I've got php 7.4 installed, apache, etc. However apache2ctl -M does not show php as shared. This causes (I guess) the http://localhost/nextcloud ...
user avatar
  • 101
0 votes
0 answers
31 views

Something keeps deleting /etc/apache2/mods-available/php7.load and restarting Apache2

I have an old box co-hosted in a VPS setup that I have no control over. It's an old kernel; 2.6.32-042stab145.3 and an old Xenial, Ubuntu 16.04.7 LTS. These things I can't change. I know it's end of ...
user avatar
  • 15
0 votes
0 answers
42 views

Apache causing massive load spike after reboot

My server is running Ubuntu 18.04.5 LTS, with LAMP stack (PHP 7.4), and apache version 2.4.29 using Prefork MPM. My server has 16 CPUs and 29GB of RAM. This server hosts 258 websites. Whenever I ...
user avatar
0 votes
2 answers
224 views

Debian 9 PHP7.4 can't install curl

I already searched answer for this question and checked Bartek Chanda answer, but not working with me. I have debian 9.13 and already done what Bartek Chanda answered, but not working. Still got this ...
user avatar
0 votes
1 answer
1k views

Apache "can't locate API module structure" with php73

newbie here. I was working on installing a LAMP environment on Manjaro for testing, trying to use older versions to match the production environment I have to work with (PHP 7.3, MySQL 5.6; got them ...
user avatar
0 votes
1 answer
3k views

How to install PHP-intl on Centos PHP 7.2

My PHP 7.2 application is giving the error Message: Class 'NumberFormatter' not found We are running: PHP 7.2.34 CentOS Linux release 7.9.2009 (Core) I tried to install PHP-intl and it seemed to ...
user avatar
  • 689
0 votes
1 answer
428 views

Apache: phpmyadmin on sub-domain "503 Service Unavailable": php7.4-fpm

I'm having a tough time trying to fix a major problem getting phpmyadmin working again (it used to work on ubuntu 16.04). I upgraded Ubuntu 16.04 to 20.04 yesterday and got the following versions of ...
user avatar
  • 53
1 vote
0 answers
326 views

php-fpm status page does not display info about Idle processes

I have PHP 5.6 and PHP 7.3 running on my machine. Webserver is Nginx and is using FastCGI (php-fpm). I have setup two php-fpm status pages - one for the www pool of the php-fpm 5.6 and one for the www ...
user avatar
0 votes
0 answers
1k views

PHP-FPM workers timeout times exceeding configuration limits

We are running server with this configuration: Nginx + FastCGI (PHP-FPM) + PHP 7.3 + MySQL 5.7. However, we experience some issues with long running PHP scripts, so we have setup these restrictions: ...
user avatar
1 vote
1 answer
89 views

Random Internal Server Error

We are receiving random internal server errors on one of our website. These internal server errors can sometimes appear only on some users but other users are not receiving it (at the very same time) ...
user avatar
  • 113
0 votes
2 answers
250 views

RHEL PHP 7.3.5 with mysqlnd and apache

I'll start by stating I'm not a server admin by trade, so I've been struggling with this task. PHP 7.3.5 was already installed on RHEL7 running Apache. I have installed MySQL successfully and now I am ...
user avatar
1 vote
0 answers
47 views

Some PHP extensions available only for root user

I have installed PHP 7.4 (from remi) on CentOS 8 since I need that version on CLI. The issue is with extensions, when I check modules (php -m) as root user I for example have redis enabled there, but ...
user avatar
1 vote
0 answers
1k views

Set default Php in CentOS 7

I have a centos server 7 with php 7.2 default installation. So, if I run php-v I get as output : PHP 7.2.34 (cli) (built: Feb 3 2021 09:23:21) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend ...
user avatar
1 vote
1 answer
2k views

How to properly set specific PHP version used by Apache on Arch?

So it appears that after a recent Arch system upgrade, my NextCloud server no longer works, currently giving me "This version of Nextcloud is not compatible with > PHP 7.4. You are currently ...
user avatar
  • 41
2 votes
0 answers
369 views

mod_fcgid: can't apply process slot for - error repeats every 6 hour

On server, I run Apache via FastCGI using PHP 7.4.13: /etc/httpd/conf.d/ is configured as this: # Use FastCGI to process .fcg .fcgi & .fpl scripts AddHandler fcgid-script fcg fcgi fpl # Sane ...
user avatar
2 votes
0 answers
220 views

Nextcloud internal server error after server upgrade

I upgraded my server today from Debian 9 to Debian 10 and installed PHP 7.3 with all modules needed for NC but when I try to open the website I get "internal server error. More details can be ...
user avatar
  • 21
1 vote
2 answers
820 views

Fedora 33/32 - Install PHP 7.3

Seems simple, but I have been unable to install any version other then php 7.4 reliably on fedora 33 (32 seems to have the same issue according to remi). PHP 7.4 is the default install, but the ...
user avatar
1 vote
3 answers
1k views

What is the origin of ZLIB's "Zlib error -2 deflating data"

Some of my sites are getting, seemingly without reason, strange errors like these: [Fri Nov 06 08:29:07.677505 2020] [deflate:error] [pid 23820:tid 140019129566976] [client XXX.XXX.XXX.XXX:XXXXX] ...
user avatar
0 votes
0 answers
128 views

PHP Zip module doesn't load

I use PHP 7.4 and Nginx 1.16.1 and i want to enable php-zip in my server because a wordpress plugin required it: I installed zip module (php-pecl-zip-1.19.1-1.el7.remi.7.4.x86_64). If i type php --...
user avatar
  • 103
0 votes
0 answers
674 views

Installing PCNTL module for PHP7.4 on Amazon Linux

I'm using amazon linux2 and trying to install pcntl extension for php7.4.9. There are no package for pcntl after run yum search pcntl, so I manually copied file pcntl.so to /usr/lib64/php/modules and ...
user avatar
0 votes
0 answers
188 views

PHP settings in apache2 config file completely ignored

On a fresh Debian 9 install, I installed PHP 7.2 and Apache2. php has been installed from the Sury repo with these extensions: php7.2-mysql php7.2-dom php7.2-simplexml php7.2-ssh2 php7.2-xml php7.2-...
user avatar
  • 1
1 vote
1 answer
16k views

PHP Warning: failed to open stream: HTTP request failed

I have two web servers: www.example.com.ar and eventos.example.com.ar I get the errors such as: [Wed Sep 16 12:11:30.872792 2020] [php7:warn] [pid 17125] [client xx.yy.226.234:48896] PHP Warning: ...
user avatar
  • 630

1
2 3 4 5
7