Skip to main content

Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

Filter by
Sorted by
Tagged with
0 votes
0 answers
151 views

Nginx + php-fpm "504 Gateway Time-out"

During some long operations that generate many PDF files, the CRM application goes into "504 Gateway Time-out" for ALL people that are using the CRM (remote and local people). I'm always ...
ISFT's user avatar
  • 1
0 votes
0 answers
54 views

Outdated PHP 7 version with Google App Engine

I received the attached message for App Engine that PHP 7.4. will no longer be supported by Google from July 2024. Can someone tell me if there is a way to extend this deadline and how? Are there ...
Melle's user avatar
  • 1
0 votes
0 answers
24 views

Redirect Automatically Unrestricted Page when Another Page is Restricted

<VirtualHost *:80> ServerName admin.fxmagician.com ServerAlias www.admin.fxmagician.com DocumentRoot /var/www/admin.fxmagician.com/public/ <Directory /var/www/admin....
FX Magician's user avatar
0 votes
2 answers
315 views

LDAPS Auth very slow in Moodle

I have a moodle-installation that uses LDAPS auth which is very slow or does not work at all. It is debian 12, apache2.4, moodle4.1 and php7.4. I had a test installation where things were just fine, I ...
tux's user avatar
  • 1
0 votes
0 answers
3k views

Can't install php7.4-dev on Ubuntu 18.04

Trying to install php7.4-dev extension, but I'm getting E: Unable to locate package php7.4-dev E: Couldn't find any package by glob 'php7.4-dev' E: Couldn't find any package by regex 'php7.4-dev' ...
Abdulah Abutouq's user avatar
0 votes
1 answer
52 views

Detect Linux/Ubuntu -> Lamp/Apache or Nginx -> PHP - detect outcalls

I have a Ubuntu Server setup with LAMP at DO (Digitalocean, VPS - self managed via shell) running mainly Wordpess (php). Now which ways do you recommend to detect outcalls/outreaches of scripts/...
Email's user avatar
  • 101
1 vote
1 answer
1k views

Apache 2.4 AH00687: Negotiation: discovered file(s) matching request: (None could be negotiated)

Apache 2.4 on Windows 11, thus localhost. I'm running a Wordpress site and Apache serves all URLs correctly except for one. One URL 404s. The Apache error log contains this error: AH00687: ...
Karl's user avatar
  • 119
0 votes
1 answer
113 views

PHP-Module from Apache on Windows looses ability to read from local file system (include, require, fopen fail)

I'm running Apache2.4 with php7.4 module on a virtual Windows Server 2019 system. Regularely at 01:00 AM the php module looses the ability to read includes, requires or fopen streams from the local ...
hangerer's user avatar
1 vote
0 answers
935 views

Ondřej Surý's PPA - php7.4-xdebug also installs php8

OS: Ubuntu 20.04 focal (on the Windows Subsystem for Linux) Kernel: x86_64 Linux 5.10.102.1-microsoft-standard-WSL2 Uptime: 1h 20m Packages: 1612 Shell: bash 5.0.17 WM: GTK Theme: Adwaita [GTK3] Disk: ...
Sylvester DeMouser's user avatar
0 votes
0 answers
241 views

Apache2 not working with PHP

I have Apache2 running on a Debian 11 box (x64). It was installed with an Openmediavault ISO, with nginx and PHP 7.4 installed already (for the web UI) I try to install the PHP connector for apache2 (...
EnderSlayer7692's user avatar
1 vote
1 answer
314 views

apache2 with PHP-FPM truncating error_log messages

I have an apache2 server configured to serve multiple websites with php-fpm. Each websites has a custom error_log file ErrorLog "/var/log/apache2/error_log-example.com" using the following ...
Luca Ricci's user avatar
1 vote
0 answers
289 views

CentOS 7 with php-fpm renders raw PHP

Summary: My CentOS 7 server with PHP 7.4 fpm is not executing PHP files instead they provide a raw PHP file to the client. In the next section, I will explain the environment. I have set up a minimal ...
mercury's user avatar
  • 23
2 votes
0 answers
2k views

Upstream prematurely closed FastCGI stdout while reading response header from

I have a setup of nginx1.20.1 + php7.3.3 on Centos7. We run those VMs beneath google cloud load balancer. Sometimes, randomly there is 502 returned to the end client. I traced one of those error ...
Tim's user avatar
  • 41
0 votes
0 answers
473 views

Wincache stops running, with PHP and IIS

I'm running PHP 7.2.22, with Wincache 2.0.0.8 on IIS 8.5, Windows Server 2012 R2. Everything runs well most of the time. But about every few days, Wincache stops running. PHP and everything else ...
Ray Gurganus's user avatar
1 vote
0 answers
168 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 ...
WeaponX86's user avatar
-2 votes
2 answers
1k 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
tree em's user avatar
  • 99
1 vote
0 answers
584 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/~...
mk0222's user avatar
  • 11
0 votes
1 answer
27 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 ...
Paolo Benvenuto's user avatar
0 votes
1 answer
331 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
0 votes
1 answer
129 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 ...
kathyl's user avatar
  • 1
2 votes
1 answer
2k 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 ...
Charlie's user avatar
  • 29
0 votes
0 answers
1k 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-...
SlowFox's user avatar
  • 11
0 votes
1 answer
1k 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 ...
lion's user avatar
  • 23
0 votes
0 answers
378 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 ...
Jayreis's user avatar
  • 145
1 vote
0 answers
8k 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 ...
Andrew Newby's user avatar
  • 1,214
0 votes
0 answers
42 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 ...
Santosh Baruah's user avatar
0 votes
1 answer
774 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 ...
lepe's user avatar
  • 469
1 vote
1 answer
5k 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 ...
user76615's user avatar
  • 143
0 votes
0 answers
368 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 ...
camelyellow's user avatar
0 votes
1 answer
2k 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....
Tần Quảng's user avatar
1 vote
2 answers
297 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 = '...
kbu's user avatar
  • 255
0 votes
1 answer
236 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 ...
kbu's user avatar
  • 255
0 votes
0 answers
1k 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. ...
wpcpremium80's user avatar
1 vote
1 answer
11k 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 ...
Riwaj Chalise's user avatar
0 votes
3 answers
10k 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 ...
auslander's user avatar
  • 101
0 votes
0 answers
146 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 ...
Alex Douglas's user avatar
0 votes
2 answers
1k 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 ...
Niammmin's user avatar
1 vote
1 answer
6k 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 ...
Trobador's user avatar
0 votes
1 answer
7k 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 ...
Ade's user avatar
  • 741
0 votes
1 answer
1k 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 ...
peppy's user avatar
  • 73
1 vote
0 answers
724 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 ...
Juraj Nemec's user avatar
1 vote
1 answer
15k 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: ...
Juraj Nemec's user avatar
1 vote
1 answer
202 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) ...
jpneey's user avatar
  • 113
0 votes
2 answers
946 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 ...
Dan's user avatar
  • 101
1 vote
0 answers
403 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 ...
mixerowsky's user avatar
1 vote
0 answers
3k 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 ...
user1356820's user avatar
1 vote
1 answer
4k 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 ...
DhP's user avatar
  • 161
2 votes
0 answers
849 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 ...
Martin Perry's user avatar
2 votes
0 answers
400 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 ...
webhead's user avatar
  • 21
1 vote
2 answers
1k 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 ...
Jordan Ramstad's user avatar

1
2 3 4 5
7