Technical Notes
-
AWS Practical Guide – Installing and Configuring PHP+Nginx Servers on EC2, RDS, and S3
Today, a company project required migrating the website server to AWS. I'm documenting this here for my own future reference and to share with others. AWS provides the following solution: Simply put, an EC2 host is used to install PHP and load balancing, an RDS host is used to install the database, and so on…
-
Troubleshooting Linode server backup/restore or cloning issues causing IP connection failures.
Today I encountered an access failure while cloning, which I felt I'd never run into before. I spent ages trying to figure out the cause, but finally solved it using my ingenuity. The reason was actually quite simple: the newly created Linode used its own IP address, which was different from the one used in previous backups or clonings, causing this problem…
-
Clear mysql-bin log files
Today I discovered the server was full. Upon checking, I found that var/lib/mysql was taking up over ten gigabytes, mostly mysql-bin.0000xx files. I suspect this is a legacy issue from when I set up a master-slave server. Here's the solution: Environment: CentOS…
-
Modify the uploaded profile picture in Discuz to a non-Flash version
Discuz! profile pictures are always Flash-based, and you can't modify the language pack and style. Here's how to change it to HTML5: Add the relevant language to the language pack: source/language/home/lang_template.…
-
Detailed Explanation of Nginx Configuration File Optimization
1. Main configuration file optimization: # vi /usr/local/nginx/conf/nginx.conf —————————————– user nginx nginx; worker_processes 8…
-
Nginx multi-core CPU worker_cpu_affinity usage methods and examples
Nginx does not enable multi-core CPU utilization by default. We can fully utilize multi-core CPUs by increasing the `worker_cpu_affinity` configuration parameter. The CPU is the most critical resource for task processing and computation; the more CPU cores, the better the performance. Configuring Nginx multi-core CPUs…
-
Two process management methods and optimizations of php-fpm used by Nginx
php-fpm currently has two main branches, corresponding to php-5.2.x and php-5.3.x versions respectively. In version 5.2.x, php-fpm.conf uses the XML format, while in the newer 5.3.x version, it uses the php…
-
Solve the integration of UCenter's initial registration, synchronized login, and automatic activation.
UCenter integrates with multiple applications. After a new user registers for the first time, they are not automatically logged into other applications. This means the user must log in again using their password in another application before they can log in synchronously. Also, if a user didn't register through the Discuz application, they won't be able to log in through Discuz…
-
iOS In-App Purchase (IAP) Development Steps List
A couple of days ago, I worked with the server-side team to complete the development of in-app purchases (IAP). There were many steps involved, so I've summarized the development steps below. Since this is just a list of steps, it doesn't include detailed instructions or tutorials; please refer to the tutorials for more information…
-
A comprehensive guide to fixing issues encountered when running Ecshop with PHP 5.3 and above.
Operating environment: Linux, Nginx, PHP 5.4.16 1. Ecshop displays the error message: Strict Standards: Only variables should be passed by referent…
-
Anmi Push Certificate Generation Guide
Many users who have used third-party developed websites or apps don't know how to apply for certificates or upload them to the App Store. When I uploaded mine, I also consulted many articles, only to find that some were outdated and the App Store's developer platform had been updated. …
-
Installing and configuring an LNMP server (Nginx + PHP + MySQL) on CentOS 6.5
Setting up an LNMP server on CentOS: Notes after the experiment. Preparation: Configure the firewall, opening ports 80 and 3306. `vi /etc/sysconfig/iptables -A INPUT -m stat…`
-
vsftpd Configuration: Detailed Explanation of chroot_local_user and chroot_list_enable
In many cases, we want to restrict FTP users to their home directory (root directory) and prevent them from browsing other directories on the server. In such situations, I need to use chroot_local_user, chroot_li…
-
Edit the "From: Mobile Client" link on the Discuz post details page.
All we need to do is modify three files, then upload them to the corresponding FTP directory to overwrite the existing files. Please back up your files before modifying them; this is a good habit. First, open the file …/source/class/discuz/discuz_applicati…
-
.pem certificate generation method
Step 1: Login to iOS Provisioning Portal, click “Certificates” on the left navigation ba…