Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [php]

PHP is a widely-used, general-purpose scripting language that is especially suited for web development. Use this tag when you are dealing with a PHP script, installing PHP, or configuring a PHP installation.

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

TL;DR I am trying to make aplay play a wav file. This requires the current user to be in the audio group. It works fine when I invoke it from a logged in user, even when I su -u www-data but the nginx/...
Roger's user avatar
  • 111
-1 votes
1 answer
92 views

I've installed Visual Studio Code and PHP 8.3 from KDE Discover, but now I have no idea how to actually start the PHP Server. I'm able to do all my PHP Development in VSCode, but no way to actually ...
Delphi Programming's user avatar
0 votes
0 answers
48 views

I have been developing a task based system recently for a PHP project, which consists of tasks stored in a SQL database (MariaDB) for a queue, and a task worker PHP script to go through the queue and ...
Jacob Smith's user avatar
0 votes
1 answer
124 views

I'm running a server on Linux, and I need the specific PID so I can kill it later. I'm using PHP with shell_exec to run the server, but how do I get the specific PID of this server? while($...
Willian's user avatar
  • 101
1 vote
1 answer
73 views

I have my rlimit_files set to 65535 yet when I run lsof -c php-fpm | wc -l I get 218k results. How is this possible? I never noticed any big issues but I wonder if should increase it? I even had this ...
Freedo's user avatar
  • 1,396
0 votes
0 answers
99 views

I'm currently attempting (and failing) to set up an SMTP mail server on my Ubuntu server so I can recieve emails from the contact page of my php based website. I was planning to send these emails ...
Hoax's user avatar
  • 1
1 vote
0 answers
56 views

I'm running Apache with PHP-FPM on a RHEL 9 server. After updating Apache from version 2.4.57 to 2.4.62, all HTTP responses now include the Transfer-Encoding: chunked header, even when the PHP script ...
Riccardo Crociani's user avatar
0 votes
0 answers
97 views

Running ClamAV on my Linux Mint laptop gives /var/lib/clamav/rfxn.yara: Php.Exploit.C99-27 FOUND What does it mean on a laptop (not a server as such)? Is the system infected?
Mark Watney's user avatar
-1 votes
2 answers
345 views

I have PHP-FPM pool with such configuration blocks: ... listen = 0.0.0.0:9000 ... pm.status_path = /status ... I'm getting curl: (56) Recv failure: Connection reset by peer while trying curl 0.0.0.0:...
Aleksey's user avatar
  • 75
0 votes
0 answers
49 views

On my Linux Ubuntu system I run apache2 web server in the context of a PHP based web application. phpinfo() reports the following error_log /opt/unetlab/data/Logs/php_errors.txt I.e. error_log() is ...
CarloC's user avatar
  • 385
0 votes
2 answers
117 views

I'm currently dealing with a real threat: the trojans Troj/PHPShel-CE and PHP/Agent-BJNA showed up on my system. I've decided to move to another provider – the first server IP was already blacklisted, ...
Harvey68's user avatar
0 votes
3 answers
142 views

I want to execute a PHP code from VS.code on Debian OS. I'm sure the Apache is installed and active. I'm sure the PHP is installed. I'm sure about the php.executepath is correct. when I navigate to ...
Daryush's user avatar
  • 331
3 votes
2 answers
154 views

I have some service, which executes php scripts and sends its stdout to journald. Journald splits the log record by newline. This can be read under lineMax: journald.conf(5) - systemd | Debian ...
Dano Logos's user avatar
0 votes
0 answers
59 views

We have moved a server over from CentOS (finally) to Alma Linux, part of this move is going from WHM to Plesk. The server hosts around 50 websites. I have a lot of misgivings about Plesk, but ...
Mm-Art-In's user avatar
  • 143
0 votes
1 answer
58 views

In order to send 2FA emails from a PHP web site to myself, I set up an MX record override and created a firewall rule that allows access to the mail server for the destination domain, but when I ...
SuperAl's user avatar
  • 151
0 votes
0 answers
57 views

I have a PHP Script with the command shell_exec('nohup /usr/bin/python3 -u /location/script.py > /location/script.log &'); This PHP Script is called via ajax, the script runs, logfile is ...
cli's user avatar
  • 1
0 votes
0 answers
171 views

My current setup uses a very old OS (CentOS7.9). I just installed PHP8.2.26 using CWP's PHP Version Switcher module. CentOS yum only updates to OpenSSL to v1.0.2k which is what I had installed. I ...
Bijan's user avatar
  • 101
-1 votes
1 answer
127 views

My CentOS7 server has a very old version of PHP installed (v7.2.10). I am trying to upgrade to PHP8 but am having some major issues. My server has PHP Version Switcher installed and when I try to have ...
Bijan's user avatar
  • 101
0 votes
1 answer
793 views

We have an old PHP application that is used internally within the company. This application has a strict dependency on PHP 5.4 or lower. Currently, the application is hosted on a virtual machine ...
Adam Smith's user avatar
0 votes
1 answer
120 views

I try to make a simple script that pings a network connection: #!/usr/bin/env bash # Xdebug ip detector for docker # Copyright (C) 2023 Dimitrios Desyllas # # This program is free software: you can ...
Dimitrios Desyllas's user avatar
-1 votes
2 answers
984 views

I am on Linux Mint and had PHP 8.1 by default but I need to install PHP 8.3. I removed the existing PHP 8.1 with apt-get remove php. However, when I run the php command I still see PHP 8.1. Shouldn't ...
user175183's user avatar
0 votes
1 answer
815 views

The hostgator server updated the linux system from CentOs to Almalinux and now I need to install the sqlsrv drivers again as I only get the error could not find driver What I've done so far is move ...
Maico Rossarola's user avatar
2 votes
1 answer
352 views

I have Debian bullseye 18:14:08 $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye But it ...
Thomas Weller's user avatar
0 votes
1 answer
233 views

I have a Debian 12 system, where I use PHP in cli mode. In /etc/php/8.2/cli/php.ini I set the memory limit: memory_limit = 1024M If I query it with root, it shows me the right value. But if I use ...
Darwick's user avatar
  • 125
0 votes
1 answer
399 views

I tried to upgrade my debian system from buster to bullseye and messed up everything. I cant start apache2 and proftpd. When I do apachectl configtest I get the following error message: (38)Function ...
Anarkie's user avatar
  • 233
0 votes
0 answers
423 views

In order to have only one .log file related with php issues, I want to force php-fpm to write errors in /var/log/php-fpm/error.log instead of /var/log/php-fpm/www-error.log. I just updated /etc/php-...
Cris's user avatar
  • 1
0 votes
0 answers
844 views

I'm using EC2 instance t4g.micro which is arm64, with 1gb ram of the latest ubuntu. I'm using nginx with PHP-FPM for upload and convert pictures using latest image.intervention with GD. My PHP_FPM ...
user24198409's user avatar
0 votes
0 answers
1k views

I am building my app using official php docker image. Case 1: When I run supervisord with root user and subprocess php-fpm with www-data user. I always get this error log: FPM initialization failed ...
Hải Phạm's user avatar
0 votes
1 answer
118 views

Trying to switch PHP versions at the shell in Ubuntu: I'd like to switch from version 8.1 to 8.3. I complete the steps above and restart apache but my server remains using version 8.1? Am I missing ...
cookie's user avatar
  • 242
0 votes
1 answer
418 views

So I'm trying to install the php modules: mysqli, exif, mbstring and dom. But I'm unable to do so... I have apparently managed to install exif and mbstring with this command, yet it doesn't appear on ...
Fabriccio Bogdanoff's user avatar
-4 votes
2 answers
237 views

I have a script that checks addresses with curl But why does some of the addresses like the one below hang? What can I do to avoid it? Check this address to understand more curl https://10.10.34.36/...
amir salarr's user avatar
0 votes
0 answers
498 views

I just installed phpmyadmin on my PC. I followed several instructions such as: sudo apt update sudo apt install phpmyadmin sudo ln -s /usr/share/phpmyadmin /var/www/your_domain/phpmyadmin I use NGINX ...
Dans988's user avatar
-1 votes
2 answers
174 views

In a docker image I want to avoid installing netcat in order to ping for db connectivity at my entrypoint script: /bin/sh MOODLE_DB_HOST="xxxx" MOODLE_DB_PORT=80 function pingdb { OK=0 ...
Dimitrios Desyllas's user avatar
0 votes
1 answer
558 views

I try to run php artisan test --coverage (laravel unit testing) but i get 2 errors WARN No filter is configured, code coverage will not be processed and 2 WARN Unable to get coverage using Xdebug....
Ivar's user avatar
  • 1
0 votes
2 answers
185 views

I require a file at the top of my PHP scripts. The file just has connection object for MySQL: $c->new mysqli('host','usr','pass','db') The file has 400 permission: -r-------- and I keep it in /etc/...
bungee1980's user avatar
1 vote
1 answer
567 views

The server has a 4C/8T CPU and 32GB RAM. OS: Debian 12. Apache/PHP becomes unresponsive after ~500MB usage. I tried PHP8.2 and PHP8.1, but the result is the same. If I restart PHP, Apache starts ...
Doraemon's user avatar
  • 111
0 votes
1 answer
495 views

I have written a tool in PHP (on Linux) sendmail mails via mail() (unfortuenately PHPMailer is not an option due do missing support for some required stuff). PHP ignores all SMTP settings on linux so ...
Schubi Duah's user avatar
0 votes
2 answers
2k views

I wrote a simple php based on the fisrt example. https://www.php.net/manual/es/function.yaml-parse.php I got... Fatal error: Uncaught Error: Call to undefined function yaml_parse() in /var/www/html/p....
icalvete's user avatar
  • 101
2 votes
1 answer
233 views

Running Virualmin, still got about 1GB free mem apache log is full of: [mpm_prefork:error] [pid 119747] (11)Resource temporarily unavailable: AH00159: fork: Unable to fork new process <IfModule ...
Hayden Thring's user avatar
0 votes
1 answer
1k views

Here is my question, I am trying (forced) to install PHP 8.2 into almalinux 8.6, but in a weird way. The idea is to be able to install it without internet, but with some local repositories which ...
coyote's user avatar
  • 103
0 votes
2 answers
154 views

For my php containers if I need to detect the ip where ide listens to. I run: ip=$(netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10) And I get the gateway IP. But for that I need ...
Dimitrios Desyllas's user avatar
0 votes
1 answer
98 views

Problem description: Generate an image with an ASTERISK AGI PHP script that is displayed on a phone (Yealnk) using imagick. installed:php-imagick/oldstable,now 3.4.4+php8.0+3.4. The AGI PHP script ...
Edderpet's user avatar
0 votes
0 answers
160 views

I have a sh file (with setuid) that I want specific web users to be able to execute from an endpoint: -rwsr-xr-x 1 root root 59 Sep 11 09:47 restart-workers.sh The content of this file is ...
Jaquarh's user avatar
  • 101
0 votes
0 answers
109 views

Here is what I'm having trouble with: I've had the below script running for years and it's been fine. But my web host moved / upgraded servers a couple of weeks ago and ever since the script has ...
Rik's user avatar
  • 1
1 vote
1 answer
446 views

i am trying to install php 8.1 in manjaro but i am getting errors. This I am doing: [home_the_archphp_arch] Server = https://download.opensuse.org/repositories/home:/el:/archphp/Arch/$arch key=$(curl ...
Santiago Martinez's user avatar
0 votes
0 answers
40 views

I had trouble logging into my myPhpAdmin web interface, so after finding numerous posts suggesting I added my un/pw to the config file like this: $cfg['Servers'][$i]['user'] = 'root'; //mysql username ...
TSG's user avatar
  • 1,993
1 vote
1 answer
87 views

I just installed a new cert on a RHEL 8 server. I updated the conf files and restarted Apache. Apache is failing but I can't figure out why. How do I determine what's causing the problem? Here's what ...
Chanel's user avatar
  • 109
0 votes
0 answers
654 views

FROM php:7.3.33-apache-bullseye RUN docker-php-ext-install -j$(nproc) mysqli opcache RUN docker-php-ext-install pdo_mysql RUN docker-php-ext-install sockets # Instalar ifconfig RUN apt-get update &...
Carlos Fernandez Deus's user avatar
4 votes
1 answer
170 views

I'm trying to disable error messages for PHP on my Apache2 web server, but it's not working. I have enabled it in the php.ini file. error_reporting = E_ALL I deliberately introduced errors in my test....
Jasmin's user avatar
  • 43
3 votes
1 answer
1k views

Listing packages # apt list libapache2-mod-php* Listing... Done libapache2-mod-php5/trusty-updates,trusty-security,now 5.5.9+dfsg-1ubuntu4.29 amd64 [installed,automatic] libapache2-mod-php5.6/now 5.6....
realtebo's user avatar
  • 1,035

1
2 3 4 5
21