Wordpress: Difference between revisions
| (4 intermediate revisions by the same user not shown) | |||
| Line 82: | Line 82: | ||
Bing Webmaster URL Submission | Bing Webmaster URL Submission | ||
CompressX.io - convert images to webp and avif automatically. Logs in <code>wp-content/compressx/log/ Can stall during bulk conversion. Don't close or refresh the page, just systemctl restart apache2</code> | |||
XML Sitemap Generator for Google | XML Sitemap Generator for Google | ||
If Menu - Visibility control for menu items | If Menu - Visibility control for menu items | ||
| Line 93: | Line 93: | ||
in wp-config.php | in wp-config.php | ||
</syntaxhighlight>Polylang | </syntaxhighlight>It will also give some error about cron usage, but you can either create a cron.daily file with<syntaxhighlight lang="bash"> | ||
*/10 * * * * wget -q -O – https://linkielist.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1 | |||
</syntaxhighlight>in it, or you can enable the WP Crontrol plugin | |||
Polylang | |||
Site Kit by Google | Site Kit by Google | ||
| Line 102: | Line 106: | ||
Shortcodes Ultimate | Shortcodes Ultimate | ||
WP Crontrol | |||
WP STAGING – Backup Duplicator & Migration | WP STAGING – Backup Duplicator & Migration | ||
WPvivid Backup Plugin | |||
WP Total Cache - comes with an extension to convert images to WebP. You can disable this under Media -> Total Cache WebP Converter (or Performance -> Extensions) as it does this all on some server somewhere and is rate limited. We can use the CompressX plugin for free | |||
Flexible upload | Flexible upload | ||
Latest revision as of 07:52, 5 September 2025
Installation
chown -R wp-user:www-data /var/www/example.com/
cmhod 775 /var/www/example.com/wp-content/ -R
su wp-user
cd ~
mkdir ~/.ssh; cd ~/.ssh
ssh-keygen -t rsa -b 4096
echo 'from="127.0.0.1"' `cat ~/.ssh/id_rsa.pub` > authorized_keys
exit
cp wp-config-sample.php wp-config.php
chown 775 wp-config.php
vi wp-config.php
----- add to end ----
define('FTP_PUBKEY','/home/wp-user/id_rsa.pub');
define('FTP_PRIVKEY','/home/wp-user/id_rsa');
define('FTP_USER','wp-user');
define('FTP_PASS','');
define('FTP_HOST','localhost');
------
Also, set DB_NAME, DB_USER and DB_PASSWORD
Visit https://api.wordpress.org/secret-key/1.1/salt/
And replace the AUTH_KEY etc with this
Now visit the site
To enable ssh2 updating
apt-get install php-ssh2
Permissions
site/ + subdirs
chown www-data:group site/ -R
in site/
find . -type f -exec chmod 664 {} +
find . -type d -exec chmod 775 {} +
chmod 660 wp-config.php
Settings » Permalinks page and click on ‘Save Changes’ button without changing anything. WordPress will now try to generate the .htaccess file for you.
On some rare occasion, WordPress may not be able to generate the .htaccess file due to file permissions issue.
In that case, it will show you a message at the bottom of the Settings » Permalinks page, saying that the ‘.htaccess file is not writeable’.
You will need need to manually create the .htaccess file and add the required code inside it.
automated updates
in wp-config.php
define( 'WP_AUTO_UPDATE_CORE', true ); add_filter( 'allow_dev_auto_core_updates', '__return_false' );
robots.txt
User-Agent: MJ12bot
Crawl-Delay: 5
User-Agent: SemRushBot
Crawl-Delay: 5
Disallow: /*/feed/
Plugins
Setup
Wordfence Security
Limit Login Attempts Reloaded
GA Google Analytics
Ivory Search
Bing Webmaster URL Submission
CompressX.io - convert images to webp and avif automatically. Logs in wp-content/compressx/log/ Can stall during bulk conversion. Don't close or refresh the page, just systemctl restart apache2
XML Sitemap Generator for Google
If Menu - Visibility control for menu items
Matomo - Statistics. NB you will have to set
define ('FS_METHOD', 'direct');
in wp-config.php
It will also give some error about cron usage, but you can either create a cron.daily file with
*/10 * * * * wget -q -O – https://linkielist.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
in it, or you can enable the WP Crontrol plugin
Polylang
Site Kit by Google
Wordfence Security
XML Sitemaps
Shortcodes Ultimate
WP Crontrol
WP STAGING – Backup Duplicator & Migration
WPvivid Backup Plugin
WP Total Cache - comes with an extension to convert images to WebP. You can disable this under Media -> Total Cache WebP Converter (or Performance -> Extensions) as it does this all on some server somewhere and is rate limited. We can use the CompressX plugin for free
Flexible upload
Visuals
Quick Featured Images
Tabs Wordpress
Visual Portfolio https://visualportfolio.co/
Portfolio Post Type
Link Library
Ubermenu
Image Sliders
Metaslider https://wordpress.org/plugins/ml-slider/
Smart Post Show https://smartpostshow.com/demo/
Slide Anything – Responsive Content / HTML Slider and Carousel https://wordpress.org/plugins/slide-anything/
Slider by 10Web – Responsive Image Slider https://wordpress.org/plugins/slider-wd/
Layerslider WP
Slider Revolution
Forms
Contact Form 7
Flamingo (to save CF7 to a database)
Smart Grid-Layout Design for Contact Form 7
Contact Form 7 Polylang Module
Blogging
CoolAuthorBox
Captcha
Ivory Search
Press This (NOTE: the featured image does not work here, neither does the scheduled post functionality. To get the featured image to work, use the Quick Featured Images plugin to automatically set the first image as featured image. To schedule a post go to the standard editor)
Press This Extended (gives a few more options)
ShareThis
Social Media Auto Publish
XPoster - Share to Twitter/X from WordPress