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,003 questions
0
votes
0
answers
19
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
24
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
22
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
71
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 ...
0
votes
1
answer
62
views
Upgrade PHP to New Version
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 ...
0
votes
1
answer
357
views
Install PHP 5.4 on Ubuntu 22.04 or Debian 12
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 ...
0
votes
1
answer
47
views
How I can run a php inline script and also provide command line arguments using bash?
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 ...
-1
votes
2
answers
485
views
php is still available after running apt-get remove php
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 ...
0
votes
0
answers
16
views
php.ini display_errors Off but phpinfo() says it's on...?
my host server is running centos 7 GNU/Linux, php 7.4.33, and Apache. I have display_errors = Off in both the plesk version of php and in the system version of php. I am still getting Warnings and ...
0
votes
1
answer
643
views
install/enable sqlsrv/pdo_sqlsrv php8.1 on AlmaLinux v9.4.0
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 ...
2
votes
1
answer
315
views
Upgrading PHP versions from buster to bullseye, when I am already on bullseye
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 ...
0
votes
0
answers
33
views
Apache configuration to host both PHP and Python backend together not working for special Alias requirement
I am working on a web application in Ubuntu.
I have a PHP backend that I want to host in "http://localhost/myapp/".
All the application files are in the "/var/www/html/myapp/website/...
0
votes
0
answers
42
views
Can't run php page in RedHat satellite
i'm using RedHat satellite 6.15 in RHEL 8. We want to add some php web page like dokuwiki/racktable there. But i have problem that if i install php and put php files in /var/www/html/pub/ directory, I ...
0
votes
0
answers
55
views
This causes error in php file shell_exec('/home/cjm/.local/bin/yt-dlp')
shell_exec('/home/cjm/.local/bin/yt-dlp')
causes this error:
yt-dlp: error: You must provide at least one URL.
Type yt-dlp --help to see a list of all options.
Traceback (most recent call last):
...
0
votes
0
answers
32
views
Upgraded from Debian Jessie to Stretch but php -v still shows using 5.6.40?
The webpage at https://wiki.debian.org/PHP says Stretch should be using PHP 7 but after I upgraded from Jessie to Stretch typing:
php -v
At the command line, it shows it's still using 5.6.40.
How do I ...