


After turning on opcache, WordPress becomes completely unresponsive?
After using WordPress for a while, I developed a theme. After installing several plug-ins, the website performance dropped, so I planned to turn on opcache, but after turning it on, the website became completely unresponsive (no response immediately after making a request) ), the apache server did not record any error logs.
Server software versions: centos, php5.4, wordpress4.5, apache2.2
Web server operating environment: apache uses the modfcgi module to run php
Tried methods:
<code>在没有完全重装wp的情况下,停用或删除所有插件,使用wp自带的主题,删除整个数据库,重新安装wp数据库,更新wp到最新版本。都无效果。 完全重装(即是重新下载安装包安装)后,就没问题。所以这也可以得出此问题跟操作系统和apache应该是无关的。 </code>
The following is a screenshot of the response when chrome accesses the problematic wp:
The configuration of opcache in php.ini is as follows (I originally wanted to send the entire ini file, but it exceeded the allowed length of the article):
<code>zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/opcache.so" ;opcache.blacklist_filename="/etc/php/opcache/blacklists" opcache.memory_consumption=256 opcache.interned_strings_buffer=16 </code>
Reply content:
After using WordPress for a while, I developed a theme. After installing several plug-ins, the website performance dropped, so I planned to turn on opcache, but after turning it on, the website became completely unresponsive (no response immediately after making a request) ), the apache server did not record any error logs.
Server software versions: centos, php5.4, wordpress4.5, apache2.2
Web server operating environment: apache uses the modfcgi module to run php
Tried methods:
<code>在没有完全重装wp的情况下,停用或删除所有插件,使用wp自带的主题,删除整个数据库,重新安装wp数据库,更新wp到最新版本。都无效果。 完全重装(即是重新下载安装包安装)后,就没问题。所以这也可以得出此问题跟操作系统和apache应该是无关的。 </code>
The following is a screenshot of the response when chrome accesses the problematic wp:
The configuration of opcache in php.ini is as follows (I originally wanted to send the entire ini file, but it exceeded the allowed length of the article):
<code>zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/opcache.so" ;opcache.blacklist_filename="/etc/php/opcache/blacklists" opcache.memory_consumption=256 opcache.interned_strings_buffer=16 </code>
The cause of the problem has been found. It is not the fault of wp, but because the two PHP code encryption extensions zend guard and ioncube are enabled in php.ini.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











There are four ways to adjust the WordPress article list: use theme options, use plugins (such as Post Types Order, WP Post List, Boxy Stuff), use code (add settings in the functions.php file), or modify the WordPress database directly.

To build a website using WordPress hosting, you need to: select a reliable hosting provider. Buy a domain name. Set up a WordPress hosting account. Select a topic. Add pages and articles. Install the plug-in. Customize your website. Publish your website.

Importing WordPress source code requires the following steps: Create a sub-theme for theme modification. Import the source code and overwrite the files in the sub-topic. Activate the sub-theme to make it effective. Test the changes to make sure everything works.

IIS and PHP are compatible and are implemented through FastCGI. 1.IIS forwards the .php file request to the FastCGI module through the configuration file. 2. The FastCGI module starts the PHP process to process requests to improve performance and stability. 3. In actual applications, you need to pay attention to configuration details, error debugging and performance optimization.

Multiple calls to session_start() will result in warning messages and possible data overwrites. 1) PHP will issue a warning, prompting that the session has been started. 2) It may cause unexpected overwriting of session data. 3) Use session_status() to check the session status to avoid repeated calls.

To create an account on WordPress, simply visit its website, select the registration option, fill in the registration form, and verify your email address. Other ways to register include using a Google account or Apple ID. The benefits of signing up include creating a website, gaining features, joining the community, and gaining support.

AI can help optimize the use of Composer. Specific methods include: 1. Dependency management optimization: AI analyzes dependencies, recommends the best version combination, and reduces conflicts. 2. Automated code generation: AI generates composer.json files that conform to best practices. 3. Improve code quality: AI detects potential problems, provides optimization suggestions, and improves code quality. These methods are implemented through machine learning and natural language processing technologies to help developers improve efficiency and code quality.

The steps to create a custom header in WordPress are as follows: Edit the theme file "header.php". Add your website name and description. Create a navigation menu. Add a search bar. Save changes and view your custom header.
