Results for “PHP”

Optimizing Nginx for High Traffic Loads

I’ve already covered some common questions about Nginx, including a few on how to optimize Nginx. Many new Nginx users have migrated from Apache, so they’re accustomed to tweaking configurations and performing magic tricks to keep their servers running efficiently. I have some bad news for you—you don’t …

Apache 301 Redirect

Apache 301 redirects are SEO-friendly, so using Apache’s configuration file to implement 301 redirects is very useful. To modify the Apache configuration file, for example, my website domain on the server is www.mytwo.com, and I also want www.myone.com to open www.mytwo.com. The code is as follows 1 2 3 …

15 Basic MySQL Interview Questions: Are DBAs Ready?

We have previously published three articles on Linux interview basics (Part 1, 2, and 3), which received positive feedback from readers. We also heard that some readers hoped this interactive learning method could be made more flexible. Action speaks louder than words, so we are now presenting you with 15 MySQL interview questionsQuestion 1: How do you …

Top 10 Website Stress Testing Tools

Two days ago, jnj published “How to Test Web Applications in Low-Speed Networks” on this site, which covered testing under poor network conditions. Below are ten free tools you can use to perform load/stress testing on the web, so you can determine how well your server and your web application can handle …

How to Modify MySQL Database Table Field Encoding

Garbled characters appear when loading data with LOAD DATA INFILE. When using LOAD, the encoding of the database, table, and fields must match the file encoding. But if the database already has data and you don’t want to rebuild it, modifying the encoding via commands is a good choice. Below is the fix. I’ve tried modifying the character … in my.ini …

Image Server Overhaul Plan for a Large-Scale Website

1. The current website image server structure is as follows:

2. Existing Structure Description
2.1 Mount Directory Description
All front-end web servers mount the directories exported by the three image servers via NFS to receive images written by the PHP processes on the web servers. Then, image1 mounts the e …