Skip to main content

Questions tagged [php]

PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

0 votes
2 answers
63 views

Installing PHP replacing version folder with another label

Every time I install php it creates a folder structure as: /etc/php/8.3/apache2/php.ini Instead of "8.3" I want to use a label as "installed" and have a folder structure as /etc/...
Jose Cabrera Zuniga's user avatar
1 vote
0 answers
24 views

Trying to set HttpOnly but no changes are working

After a PenTest was told to set the HttpOnly flag on all of our cookies. We have an Ubuntu Server 22.04 & 24.04 LAMP stack with a WordPress website. I have made changes to /etc/apache2/apache2....
Andrew's user avatar
  • 11
0 votes
0 answers
35 views

PHP.ini setting not in effect with FPM

I just switched my Nextcloud Apache2 install to use php8.3-fpm (from php8.2 apache module). Everything works, except NC is giving me the warning that my opcache is nearly full. I can also that the ...
Atlas's user avatar
  • 1
1 vote
3 answers
264 views

How to install cURL library for PHP on Windows?

I'm starting with this error: Call to undefined function curl_init() Fine, so I go to PHP's php.ini file and uncomment: ;extension=curl to extension=curl I restart Apache, and? Call to undefined ...
Reports's user avatar
0 votes
0 answers
35 views

Google Business Profile API always returns PERSONAL account instead of BUSINESS

I’m trying to fetch my Google Business account and locations using the Google Business Profile API with PHP. I’ve set up OAuth2, got a token, and followed all the steps: oauth_start.php → opens Google ...
Zsolt László's user avatar
0 votes
1 answer
159 views

PHP-fpm (v 8.3) not using sqlsrv or pdo_sqlsrv on Ubuntu 24.04

My VM running Ubuntu 24.04 is giving an error that it cannot find the driver for SQLServer (aka MSSQL-Server aka sqlsrv). Sure enough, a page with phpinfo(); shows no sqlsrv or pdo_sqlsrv. Here were ...
petermalcolm's user avatar
1 vote
2 answers
439 views

How can I fix PHP package conflicts when I using multiple PHP versions?

I am running two versions of PHP 7.4 and 8.4 on an Almalinux server and I'm missing a php function posix_getppid (in Laravel/Horizon). I've searched and it seems I'm missing a PHP extension/module. I'...
Danny Connolly's user avatar
-2 votes
1 answer
102 views

Apache absolutely refuses to set XML Type or PHP Handler! [closed]

I'm running Apache 2.4 locally on Widows 10 x64. I know my .htaccess file works because I can break the rewrites, undo it, reload the page and everything works fine again. PHP files execute PHP code ...
John's user avatar
  • 133
0 votes
1 answer
88 views

How to get current path for error log files if error_log got no value

I have a small php web app to view the log files, to see errors, specially PHP ones. My local Apache is different from the remote website servers, so I have to point the right directory in each case, ...
Gustavo's user avatar
  • 131
0 votes
2 answers
112 views

php --info shows different configuration than phpinfo()

I’m running the official image wordpress:6.8.1-php8.2-apache of WordPress in a Kubernetes pod. I tried using Duplicator to create a backup, but it failed to finish. In the Duplicator logs, I saw the ...
Eastman's user avatar
  • 62
0 votes
1 answer
85 views

How to host the same folder in IIS using two different PHP versions?

I have a folder running a PHP application configured in IIS. Here's the current setup: Site Name: Original Website PHP Manager > PHP Version: 7.0 Bindings: * on ports 80 and 443 Handler Mappings: ...
Faheem Anis's user avatar
0 votes
0 answers
68 views

Deployment on Cloud Run failed. Container import failed, cannot serve traffic

I have been trying to deploy the backend of a website that I am developing for a while, and it has given me multiple errors, the main one being that the container does not start because it cannot ...
Esteban Raigoza carmona's user avatar
0 votes
1 answer
65 views

"systemctl edit httpd.service" not working on Amazon Linux 2023, Apache 2.4/PHP8.4

I have an Amazon Linux 2 server running Apache 2.4/PHP 8.2. On it, I've run systemctl edit httpd.service and added the following Environment Variables for my ODBC drivers. [Service] Environment="...
Barry Ralphs's user avatar
0 votes
0 answers
83 views

Faulty IMAP server can't list emails on Thunderbird

I am currently writing a custom implementation of an IMAP server in PHP. I'm having an issue where Thunderbird will simply not issue the correct UID fetch call. I'm expecting something like this ...
lolc's user avatar
  • 261
0 votes
0 answers
39 views

Webserver - Load a root webpage regardless of browser path, but with data (config) from the entered path

It was suggested I come over here from StackOverflow regarding the below, More so on the server side. I am working on a proof of concept and have run into a scenario in which I would like to simplify. ...
Angryjames's user avatar
0 votes
0 answers
134 views

How to get PHP FPM errors into the journald?

I'm using PHP FPM 8.3, and Symfony 7.1 with Monolog configured to send logs to stderr. This is NOT a containerized setup. This is my Monolog's configuration: when@prod: monolog: handlers: ...
Łukasz Zaroda's user avatar
0 votes
0 answers
46 views

High Private Bandwidth & CPU Load in 3-5 hours interval

I'm running a Laravel application with the following architecture: Backend server: Handles queues, jobs, emails, Horizon, cron jobs, and admin panel. Specs: 2 vCPU / 4 GB RAM. Frontend server: ...
Kashif Saleem's user avatar
1 vote
1 answer
170 views

Get php-fpm status when php-fpm's child processes are full

So normally you can get PHP FPM's status by querying the /fpmstatus endpoint (or whatever is configured). This displays info about FPM's status, threads, etc. FPM has a maximum number of child ...
dirtside's user avatar
  • 1,733
0 votes
1 answer
96 views

PHP OPcache nearly immediately full after restart

While checking my server I noticed that PHP’s OPcache is completely full, despite having enough scripts stored to fill the space. opcache_get_status returns this: array(8) { ["opcache_enabled&...
KittMedia's user avatar
  • 258
0 votes
1 answer
74 views

Why does my apache configuration need PHP for a directory listing?

Ive moved my users to a new server. I try to replicate what they were used to, but I also locked it down as much as I could. PHP is only available for a few users. Indexes is turned off globally. ...
user1311554's user avatar
2 votes
1 answer
97 views

NGINX routes all requests to backend service instead of separating backend and API (PHP YII2)

I'm running two services (backend and api) on the same port inside Docker. However, whenever I send requests, NGINX routes all requests to the backend service, and I cannot access the api service ...
Amr Abu Aza's user avatar
0 votes
0 answers
31 views

Moodle installation files sudden change 2025-04-21 17:16 [duplicate]

Since yesterday all admin accounts on my moodle suddenly started to have login problems, when i verified the VPS where it was installed the antivirus software catched some files on the moodle, the all ...
user avatar
0 votes
0 answers
39 views

Site/PHP Operations goes to a Hault after a load spike

So I have been trying to go through an issue, where after a certain spike in PHP operation which exceeds in Either IOPS, CPU/RAM threshold - it brings not only the site to a complete stalemate but all ...
LambTheBamb's user avatar
0 votes
1 answer
117 views

Custom built Apache and PHP can't LoadModule php_module

Custom built Apache(2.4.55) and PHP(8.2.10) (Ubuntu Desktop 22.04.5) can't LoadModule php_module. PHP built to generate libphp.so http://172.30.222.2:8008/info.php <?php phpinfo(); ?> Not Found ...
yW0K5o's user avatar
  • 71
0 votes
1 answer
73 views

Serve requests with AWS EC2 and Lambda on the same endpoint

I reduced my problem to the following example. We have two XML request types: <data1>some-data</data1> and <data2>other-data</data2> coming to the same endpoint something like ...
inf3rno's user avatar
  • 418
0 votes
0 answers
26 views

TikiWiki upgrade is not upgrading database ERROR: Cannot initiate Database

i#m in to process of upgrading my TwikiWiki 22.1 to 27.1 by installing a fresh TikiWiki27 on a fresh AlmaLinux 9.5 system and then importing the mariabdb database. I have set up TikiWIki27 on the new ...
Chris9834's user avatar
  • 373
0 votes
0 answers
24 views

Drupal on Openshift: Image Generation Fails After Modifying Image Styles (Permission Issue on PVC)

I have a Drupal 10 deployment running on Kubernetes/OpenShift, where image generation fails after modifying an image style also the previews images and upload failes. The web/sites/default/files ...
ayoub kamli's user avatar
0 votes
1 answer
113 views

Rewrite PHP URLs as clean URLs in Nginx

I have inherited a PHP application. It runs on Nginx/PHP-FPM/MySQL. I'm not a dev, I'm looking after the servers, therefore I'm looking for a way to fix this without modifying the PHP code. The ...
Baldrick's user avatar
  • 4,322
0 votes
0 answers
265 views

A lot of php-cgi.exe processes that can't be closed, do not closes itself on timeout and use huge memory

We use IIS 10 on Windows Server 2022 with PHP 8.3, hosted at Contabo VPS. Server worked fine for a time, but today we noticed, that php script that handles big-size file and uses about 600 mb of RAM, ...
Stdugnd4ikbd's user avatar
0 votes
1 answer
300 views

Where are PHP8 syntax error logged?

I installed LEMP with PHP8 on Ubuntu 24.04 and was able to host a WordPress website. The only thing I can't figure out is where PHP errors are logged. For example I created a PHP page with an error: &...
Dmitriano's user avatar
  • 111
0 votes
1 answer
488 views

Kerberos Error 401 with PHP Curl Script

I have an ubuntu server running Apache with a folder secured via Kerberos using GSSAPI. I was able to get this working against our AD server and can see the created tickets using Klist -e. Inside the ...
Marc Carr's user avatar
0 votes
0 answers
84 views

403 - Forbidden How can I try Track this down

I had someone gain access to the admin side of my OSCommerce installation and upload a Google verification file. That has been resolved but now unable to access the admin page/directory. I'm getting a ...
OverClocked's user avatar
0 votes
0 answers
63 views

Increase PHP flush rate (2-3 times a second to 10+) for server-sent event

I have a server-sent event that processes about 20-30 items per second. On the client I have a progress element and span of status text that updates for each item processed. Right now it "chugs&...
John's user avatar
  • 133
0 votes
1 answer
2k views

Nginx upstream timed out (110: Unknown error)

I own a game server (counter strike 2) in the middle east . I'm trying to set up a web panel for it which is hosted in Europe on an ubuntu 22 VPS . This website has a tool that allows remote commands ...
lostsoul6's user avatar
-1 votes
2 answers
541 views

Nginx "File not found." error

I have already read all similar topics but wasn't able to fix the issue so I posted here : I can run a PHP file on SSH Terminal successfully : root@skins:~/public1# php8.3 /root/public1/public/index....
lostsoul6's user avatar
0 votes
3 answers
123 views

The meaning of "Security fixes only" support in older branches of PHP and whether follow such branches is wise in a normal webhosting scenario

I'm a little confused by the meaning of "security fixes only" releases in PHP. According to its official website: After this two year period of active support, each branch is then supported ...
xuhdev's user avatar
  • 1,012
0 votes
1 answer
78 views

Determine maildir file accessed by PHP's IMAP extension

I'm nearing the completion of refining my mail import function. There are a small number of email messages that throw off PHP's IMAP extension functions. My server uses maildir (contrasting Dovecot) ...
John's user avatar
  • 133
0 votes
1 answer
89 views

Re-enabling static HTML in a PHP tree

We have an (almost) entirely PHP tree where the top level .htaccess does this: RemoveHandler .html AddType application/x-httpd-php .html Then in a single subdirectory, we just want static pages. I ...
thomasafine's user avatar
0 votes
1 answer
177 views

Opcache.php return an empty page

We are using PHP + FPM 8.2 + OPCache. In the past, we use https://www.repairrar.com/opcache.php to check its status. But today it returns an empty page. Although it shows an empty page, I view the ...
alancc's user avatar
  • 135
0 votes
0 answers
122 views

nginx configuration that permits removing index.php from urls and passing pathinfo to index.php scripts but not other php scripts

I don't have much experience with nginx (though I have a lot with apache and web services in general.) My requirements are below. I have not yet managed to cobble together a config that meets them all....
J Bones's user avatar
  • 101
0 votes
0 answers
25 views

Apache: Serving "core" files between different domains AND unique files to each domain

Server: Ubuntu/Apache Scenario I have a system that is used by different domains I would like the "core" files to be used for all domains (to make maintenance easier) However, each ...
Marco M's user avatar
0 votes
0 answers
172 views

issues with proxy_fcgi timeoutissue

We have a front end backend web app that I do not understand and the developers are no longer contactable. the error message I get in ssl_error_log [proxy_fcgi:error] [pid 1695:tid 139887973996288] (...
robm's user avatar
  • 101
0 votes
0 answers
104 views

Litespeed Enterprise issue with PHP83

As described in this Litespeed forum We are trying to switch from Nginx + Varnish to litespeed so we can test litespeed cache with a magento 2.4.7 store. No panels. Just OS ubuntu 20. Web server is ...
G. G.'s user avatar
  • 155
0 votes
0 answers
258 views

php value errors in Zabbix setup

I've installed Zabbix 7 on Debian Bookworm. PHP 8.2 Getting the following errors during config Minimum required size of PHP post is 16M (configuration option "post_max_size"). Minimum ...
Martin Moore's user avatar
0 votes
0 answers
239 views

PHP error log vanished (Windows Server 2019)

I have two Windows Server 2019 servers (in AWS) running Apache httpd 2.4.62, PHP 8.3.11 and SQL Server. One is Dev/Test, the other Production. I typically leave remote-desktop session open on both ...
Jeremy's user avatar
  • 1
0 votes
0 answers
55 views

How to enable OpenSSL legacy in Google App Engine

In the latest version of Google App Engine, the legacy version of OpenSSL is disabled. I would like to understand if there is any way to enable it. I'm using Google App Engine standard with PHP 8.3. ...
Bob Dylan's user avatar
0 votes
1 answer
116 views

Intermittent file_get_contents errors on VMs connected via NAT

I run a number of Windows VM's (on a Windows host using Hyper-V), the VM's connect to the Internet via a NAT set up on the host (to avoid having public IP addresses on each VM) I've started to get ...
omega1's user avatar
  • 445
0 votes
1 answer
1k views

phpmyadmin showing 500 error in Ubuntu 24.04 lts after upgrade

i had updated ubuntu 22.04 -- >> 24.04 now getting this error while phpmyadmin getting not loaded into browser Mon Sep 23 18:30:18.060029 2024] [php:error] [pid 11672] [client 192.168.1.150:...
Atul Modi's user avatar
0 votes
1 answer
243 views

PHP Fatel Error: Timezone database is corrupt

I have a install Apache/2.4.58 and php 7.4.33 I have chrooted the Apache with mod_env and ChrootDir /var/www in /etc/apache2/apache2.conf and far as I know is here the problem.
Manthan Gajjar's user avatar
0 votes
0 answers
99 views

www-data can't write in dir, even if write permissions are set

Debian 12 php-fpm 8.2 Apache 2.4 I have permission denied on /home/website/public_html/var/cache when website try to write or rename The cache dir is owned by www-data and group www-data with chmod ...
Recif's user avatar
  • 153

1
2 3 4 5
160