- installation
- after installation of WordPress + firewall settings
- check info.php
- note down these
sudo nano /etc/php/8.1/php.ini
change 2 things
- post_max_size
- upload_max_filesize
To check apache Error logs to debug.
tail -f /var/log/apache2/error.log
/WP-ADMIN too many redirects
WordPress asking for my FTP credentials to install plugins
# Try to add the code in wp-config.php: define('FS_METHOD', 'direct');
WordPress plugin install: Could not create directory
#find root where wp-content is
# normally it is here /var/www/html
sudo chown -R www-data:www-data wp-content/plugins/
sudo chmod 775 wp-content
sudo chown -R www-data:www-data wp-content/
“Too many redirects” when trying to access wp-admin page
## place it at the beginning of the wp-config.php after php tag
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
else
$_SERVER['HTTPS']='off';