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.
1,011 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
40
views
Systemd service to keep a fixed number of the same script running
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 ...
0
votes
1
answer
80
views
Getting PID from PHP shell_exec to kill server process later
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($...
1
vote
1
answer
40
views
php rlimit_files appears to not be working
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
49
views
Sendmail wont work for my ubuntu terminal server (Ubuntu 24.04.2)
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 ...
1
vote
0
answers
42
views
Apache force transfer-encoding chunked after update to version 2.4.62
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 ...
0
votes
0
answers
72
views
What countermeasures are required for alert /var/lib/clamav/rfxn.yara: Php.Exploit.C99-27 FOUND?
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?
-1
votes
2
answers
202
views
PHP-FPM status page returns curl: (56) Recv failure
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:...
0
votes
0
answers
40
views
Apache2 PHP error_log() doesn't work when called in some PHP code
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 ...
0
votes
2
answers
99
views
Troj/PHPShel-CE and PHP/Agent-BJNA trojan
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, ...
0
votes
3
answers
129
views
php code does not execute [closed]
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 ...
2
votes
2
answers
120
views
How to preserve newline characters in journald logs from PHP script stdout?
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 ...
0
votes
0
answers
45
views
On Plesk Obsidian 18 - How to update PHP open_basedir and/or httpd.conf server wide?
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 ...
0
votes
1
answer
43
views
nslookup times out when type is set to MX
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 ...
0
votes
0
answers
43
views
php script: shell_exec('nohup /usr/bin/python3 -u /location/script.py > /location/script.log & : Script terminates after 5 seconds but should not
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 ...
0
votes
0
answers
145
views
PHP Rebuild Using Updated OpenSSL
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 ...