HEX
Server: Apache/2.4.66 (Debian)
System: Linux 3e214bd180d4 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //tmp/fix_wp_config.py
content = open("/var/www/html/wp-config.php").read()
content = content.replace("define( 'SAVEQUERIES', true );", "define( 'SAVEQUERIES', false );")
marker = "/* That's all, stop editing! Happy publishing. */"
insert = "define( 'WP_CACHE', true );\ndefine( 'WPCACHEHOME', WP_CONTENT_DIR . '/plugins/wp-super-cache/' );\n"
content = content.replace(marker, insert + marker)
open("/var/www/html/wp-config.php", 'w').write(content)
print("DONE")