apache日志 默认在/var/log/apache2/,主要关注error.log WordPress日志 需要打开WordPress的debug开关,在wp-config.php中将define( 'WP_DEBUG', False );修改为define( 'WP_DEBUG', true );,并在之后添加define( 'WP_DEBUG_LOG', true);。日志在网站目录的wp-content文件夹下的debug.log中。
kinsta-cache-perf.log 对于较旧的日志存档,会自动创建Gzip(.gz) 备份。有关WordPress 的其他调试信息,请参阅代码集。 选项3 –在 wp-config.php 文件中启用错误日志 查看WordPress 错误日志的最后一个方法是在wp-config.php文件中启用它们。首先,你需要通过 SFTP 连接到你的网站。然后下载你的wp-config.php,这...
WordPress文件的文件权限 不要忘记最后的一个步骤,手动调整wp-config.php文件的权限,将权限设置为数字值440或400: wp-config.php文件的权限设置 如果文件权限问题导致403 Forbidden Error,现在您的站点应该已经恢复正常。否则,继续往下看。 #4: .htaccess文件 如果你的WordPress使用NGINX Web服务器,则此不存在此潜在问...
log_errors=on Step 5. For WordPress, update wp-config.php Save the file: Q & A 1. There are errors in my application, where do I find the error logs? First, ensure that logging is enabled for PHP in .user.ini as mentioned above in (1). Second, if you are searching for WordPres...
步骤一:打开wp-config.php文件 打开wp-config.php文件,假设Wordpress安装的根目录为“wordpress”: # 如果操作目录需要root权限,则在命令开始处添加sudo vim /wordpress/wp-config.php 步骤二:编辑文件 在文件中的第一个 <?php 后添加如下语句: $_SERVER['HTTPS'] = 'on'; ...
在wpconfig.php文件中添加以下代码来增加内存限制: “`php define(‘WP_MEMORY_LIMIT’, ’64M’); “` 尝试刷新WordPress页面,看是否解决了问题。 8. 查看错误日志 WordPress的错误日志可以提供更多关于问题的详细信息。 通过FTP或文件管理器找到wpcontent/error_log.txt文件。
WP 后台首页(仪表盘),【Wordpress 新闻】下工具显示如下类似的报错信息: RSS 错误:WP HTTP Error: ...
WordPress 提供了WP_DEBUGWP_DEBUG_DISPLAY和WP_DEBUG_LOG这三个常量让你应对各种情况,下面讲经常经常使用到的方法: 1.如果是前台和后台空白,并且没有显示任何错误。 打开wp-config.php 文件,将原来的 WP_Debug 设置改成如下设置: 代码语言:javascript
Database connection issues– If you receive a “Error establishing a database connection” message, double-check your database connection settings in the wp-config.php file. Ensure that the database name, username, and password are correct, and that the database user has the necessary permission...
Access your website using SFTP as you did previously. Then, locate and open the wp-config.php file in a text editor. Next, you’re going to paste thefollowing codeinto the file: define( 'WP_HOME', 'http://example.com' );