Wordpress: Difference between revisions
From DWIKI
m →FAQ Tag: wikieditor |
m →FAQ Tag: wikieditor |
||
| Line 24: | Line 24: | ||
=FAQ= | =FAQ= | ||
==Access denied for user 'username_here'@'localhost'== | |||
Someone trying to access config-sample.php | |||
==Stop prompting for credentials on updates== | ==Stop prompting for credentials on updates== | ||
In wp-config.php: | In wp-config.php: | ||
Revision as of 15:27, 9 May 2025
Links
Documentation
- http://codex.wordpress.org/Main_Page
- https://plugins.svn.wordpress.org/wp-fail2ban/trunk/filters.d/wordpress-hard.conf
Howto
Make slugs work
In setttings->permalinks select custom structure /%postname%/ and make sure you have AllowOverride All in apache config
Get wordpress version on CLI
grep wp_version wp-includes/version.php
Show successful logins
grep 'wp-login.* 302 ' accesslog
FAQ
Access denied for user 'username_here'@'localhost'
Someone trying to access config-sample.php
Stop prompting for credentials on updates
In wp-config.php:
define('FS_METHOD', 'direct');
Upload or install keeps giving "Connection Information" dialog
Seems to mean wordpress can't write somewhere, so it prompts for user with write access rights Check at least:
wp-content/plugins wp-content/themes
multiple sidebars
The ssh2 PHP extension is not available
Install https://en-ca.wordpress.org/plugins/ssh-sftp-updater-support/
How to log in?
In /wp-admin/ !
Upload file and add link to it
Posts->Add new, in editor use "add media"
command line management tool
CLI upgrade
wp core update
Could not fully remove the plugin
Check logs :)
user login history
Settings > User Login History
stop backtrack spam
Or just deselect Allow link notifications from other blogs (pingbacks and trackbacks) on new posts and in database update existing entries:
update wp_posts set ping_status = 'closed';
