Category: Scripting

Using PHP APCu on Plesk: Installation, Tuning, and Pitfalls

APCu is a lightweight in-memory cache for PHP that can dramatically cut database and API load on Plesk-based servers. In this guide we walk through what APCu is, how to install it against Plesk’s PHP builds, how to enable and tune it per domain, and what pitfalls to watch for so you don’t accidentally starve your VPS of memory or end up with a thrashing cache.

Read More »

Making PHP Think It’s on HTTPS (Even When It Isn’t)

When you move PHP sites behind a load balancer, reverse proxy, or CDN, the browser may connect over HTTPS while PHP only ever sees plain HTTP. That’s when URLs, cookies, and “force HTTPS” logic start misbehaving. In this article we explain how PHP actually detects HTTPS, why simply setting $_SERVER[‘HTTPS’] = ‘on’ is risky, and how to correctly configure Apache, nginx, and Plesk so your apps generate secure URLs and behave as if they’re truly running over HTTPS.

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.