Results for “PHP”

High-Load LAMP Architecture

I remember it was October 2005, shortly after my open-source site had launched. Back then, I still equated high availability and handling large loads and high traffic solely with “throwing more hardware at the problem.” Even a later article didn’t seem to break out of that mindset. After that, as my work shifted towards…

How to Implement 301 Permanent Redirects in Apache

How to 301 Redirect 123.com to www.123.com (Server-Side). Following Google’s recommendation, use a server-side 301 redirect to ensure users and search engines are directed to the correct page. The 301 status code indicates that a page has been permanently moved to a new location. Below is …

Yum Command Deep Dive (Self, Update)

1. A yum repository can have multiple configurations. Under the directory /etc/yum.repos.d/, there are multiple files ending with *.repo. They can also be integrated into a single file (but I think keeping them separate is better, as you can choose which file to use for updates, and the source of the software packages can be seen from the yum update command). 2. yum repositor …

How to Install Memcached and Set Up Web Monitoring

Memcached is a high-performance distributed memory object caching system designed for dynamic web applications to reduce database load. It minimizes the number of database reads by caching data and objects in memory, thereby speeding up dynamic, database-driven websites. Before installation, you’ll need a few software packages, such as libevent…

Top 15 Responsive Web Design Testing Tools

Responsive web design, also known as adaptive web design (commonly abbreviated as RWD), enables websites to be read and navigated across a wide range of browsing devices (from desktop computer monitors to mobile phones or other mobile product devices) while minimizing the need for zooming, panning, and scrolling. In other words, a responsive website can automatically …

How to Handle Session Sharing in Nginx Load Balancer

1) Use cookies instead of sessions

Switching from sessions to cookies can help you avoid some of the drawbacks of sessions. A J2EE book I read long ago also pointed out that you should not use sessions in a clustered system, or it could cause serious trouble. If your system is not complex, consider whether you can eliminate sessions first…

How to Handle Session Sharing with Nginx Load Balancer

1) Replace Sessions with Cookies

By replacing sessions with cookies, you can avoid some of the downsides of sessions. A J2EE book I once read also indicated that sessions should not be used in clustered systems, or else they can cause serious problems. If your system is not complex, first consider whether you can drop sessions …

How to Open a Large Text File in Linux

In the “big data” era, we often encounter large text files (GB-sized or larger). Suppose we need to manually search and edit these massive files, or manually analyze multiple GB-sized log files to troubleshoot specific issues. Traditional text editing software for …

Guide to the MySQL SHOW PROCESSLIST Command

The output of the processlist command shows which threads are running, which can help identify problematic query statements. There are two ways to use this command.
1. Enter the mysql/bin directory and type mysqladmin processlist;
2. Start mysq …

12 Linux Terminal Emulators You Should Try

1.Tilda

Tilda is a Quake-style terminal emulator that supports hotkey activation — summon it to the foreground when you need it, and hide it away when you don’t. Additionally, Tilda supports background transparency, making it easy to see the content behind the window.

Shell code
sudo apt-get install tild …