wordpress_issues
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wordpress_issues [2016/03/03 17:13] – created luke7858 | wordpress_issues [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | === Quick Wordpress Files Download === | ||
+ | Change / | ||
+ | <sxh bash> | ||
+ | wget -O - https:// | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
=== Wordpress Permissions === | === Wordpress Permissions === | ||
Replace ${WP_ROOT} with the directory location of wordpress. If you are already in the wp document root, replace with a dot . | Replace ${WP_ROOT} with the directory location of wordpress. If you are already in the wp document root, replace with a dot . | ||
Line 30: | Line 37: | ||
\\ | \\ | ||
\\ | \\ | ||
+ | === WP Memory Limit === | ||
+ | To increase the memory limit for wordpress you should first change the php.ini file. | ||
+ | \\ | ||
+ | \\ | ||
+ | If that does not work you should add the following to your wp-config.php file | ||
+ | <sxh bash> | ||
+ | define( ' | ||
+ | </ | ||
+ | Change the memory limit value as required | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
=== Changing Site URL === | === Changing Site URL === | ||
Check the current URL, first select the database with the ' | Check the current URL, first select the database with the ' | ||
Line 37: | Line 56: | ||
Now we can update the URL: | Now we can update the URL: | ||
<sxh bash> | <sxh bash> | ||
- | UPDATE wp_options SET option_value = ' | + | UPDATE wp_options SET option_value = ' |
</ | </ | ||
\\ | \\ | ||
+ | === Deterring wp-login attacks === | ||
+ | Add the following to your htaccess. | ||
+ | \\ | ||
+ | The following code stops any ip address posting to your wp-admin page that does not have a referrer or user-agent set. | ||
+ | \\ | ||
+ | An example log entry is: | ||
+ | <sxh bash> | ||
+ | x.x.x.x - - [23/ | ||
+ | </ | ||
+ | Code: | ||
+ | <sxh bash> | ||
+ | < | ||
+ | RewriteEngine on | ||
+ | RewriteCond %{REQUEST_METHOD} POST | ||
+ | RewriteCond %{HTTP_REFERER} !^https:// | ||
+ | RewriteCond %{REQUEST_URI} ^(.*)? | ||
+ | RewriteCond %{REQUEST_URI} ^(.*)? | ||
+ | RewriteRule ^(.*)$ - [F,L] | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ |
wordpress_issues.1457025188.txt.gz · Last modified: 2024/05/23 07:26 (external edit)