New answers tagged

0 votes

Apache logs HTTP 408 error, client seems to lose PHP session

opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/myproject/htdocs/sessionReload.php Clearly there is a permissions issue somewhere. You didn't tell us anything about the ...
  • 19.9k
-1 votes

Apache logs HTTP 408 error, client seems to lose PHP session

I had the same issue. I resolved it configuring Apache with a high timeout, an infinite MaxKeepAliveRequests and a KeepAliveTimeout higher than the Timeout.
1 vote
Accepted

Nginx - fastcgi cache not working for rewrite enabled php page

Your location = /inc/special.php passes requests directly to fastcgi server, therefore there is no caching. Furthermore, you need to check the HTTP caching headers set by special.php. If the HTTP ...
0 votes

Issues with Imagick / PHP / Windows

I found a PowerShell module which helps install the PHP extension on Windows A PowerShell module that will let you install the PHP imagick extension simply with Install-PhpExtension imagick
  • 417
0 votes

Apache2 stuck after 8-12 days uptime. No errors. Stuck in null loop and Recv-Q

This is a classic symptom of worker exhaustion in a PHP stack. It usually means that apache workers running php via a module are blocking while waiting for something, for instance (most usual, but not ...
  • 8,051
0 votes

Ubuntu 22.04 php8.1-fpm wifth Apache - 403 Forbidden You don't have permission to access this resource

Add the user to the www-data group: usermod -g www-data username Source: http://www.anoneh.com/208.php
0 votes

What might cause a PDO MySQL connection to be terminated?

From MySQL Command Prompt, use SHOW GLOBAL STATUS LIKE 'aborted%' to monitor aborted_connections count. If count goes up about the same time, in your my.cnf [mysqld] section, change or add a line for ...
0 votes

How can I update php 8 on a linux server without internet access?

Even without internet, you still need to get updates. Mirror the software repos onto a host this server can access. Red Hat's product they want to you use for this is Satellite aka Katello, although ...
0 votes

Unable to install xdebug - undefined symbol: zend_post_startup_cb

I have same issue. I was address it with replace xdebug.ini file zend_extension=xdebug.so xdebug.start_with_request="yes" xdebug.mode="debug" xdebug.log="/var/www/html/logs/...
  • 101
0 votes

Very slow mysql on Azure App Service w/ PHP (Wordpress)

Ran into this researching a different problem, but you can dramatically improve App Service to MySQL latency for PHP by ensuring: Both services are connected to the same vnet The App Service is using ...
  • 101
0 votes

Wordpress Website is Broken When Migrating to NGINX

server { ... #add_header Content-Security-Policy "default-src 'self'; script-src 'self';"; ... } Is this what you were talking about? I was having a similar problem. Not all of the ...
  • 1
1 vote
Accepted

MySQL + php due to high CPU usage app crashing

Rate Per Second = RPS; Suggestions to consider for your my.cnf [mysqld] section to reduce CPU busy innodb_buffer_pool_size=2G # from 128M to reduce innodb_buffer_pool_reads RPS of 3,142 ...
0 votes

How to force SSL on Nginx & Varnish

Try this. These are my configs from an Ubuntu LEMP Digital Ocean Droplet running Nginx, Varnish and PHP-fpm. It also has the redirects to forward all traffic to https://wwww The files are: default....
  • 101
0 votes
Accepted

Simple and secure way to display error page with IP address of visitor? With python?

Found the solution here https://pythonbasics.org/webserver/ So basically you only need to add one line self.wfile.write(bytes("<p>IP-Address: " + self.client_address[0] + "</p&...
  • 157
0 votes

How can I be sure that running background process is working without problems?

As @larsks already commented: from the perspective of a sysadmin you run your process from a suitable supervisor such as systemd or one of the others listed on https://en.wikipedia.org/wiki/...
  • 72.6k
0 votes
Accepted

Is include() cached with fastcgi?

nginx caches the full response of a URL. If you request https://www.example.com/script.php, nginx will pass the request to PHP-FPM which executes the script first time when accessing the URL. nginx ...

Top 50 recent answers are included