Hello,
we have a droplet using ubuntu 22.04, the wordpress website is working fine but we cannot update versions or plugins through the admin panel… Can someone advise us what we might miss in our configuration? Also our mail function is not working neither even after setting up sendmail
Thanks!!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya,
The update of plugins will usually return response, either success or an error, if the message is not providing necessary information, you can examine the logs to extract additional data about the issue.
As for the emails, you can use an SMTP plugin and configure it with SMTP Host of your choice. Have in mind that SMTP restricted by default for new accounts since June 22, 2022.
https://www.digitalocean.com/blog/smtp-restricted-by-default
Regards
Heya @ruthchaostudio,
Setting up WordPress updates on a droplet running Ubuntu 22.04 and configuring email can involve several steps. Here’s a general guide to help you troubleshoot and set up these features:
WordPress Updates Issue
Replace
/var/www/html
with your WordPress installation directory.If even afterwards you can’t update from your Admin Panel: Error Logs: Check the Apache/Nginx and PHP error logs for any relevant errors that might indicate what the problem is.
Email Configuration Issue
Since you mentioned that
sendmail
is not working, you might consider using an SMTP plugin for WordPress or configuringsendmail
properly.Install an SMTP Plugin: Use a plugin like WP Mail SMTP by WPForms. This plugin allows you to configure WordPress to send emails using an SMTP service provider, which can be more reliable than using
sendmail
.Configuring
sendmail
:sendmail
is properly installed:sudo apt-get install sendmail
sudo sendmailconfig
and follow the prompts./var/log/mail.log
for clues.Use External SMTP:
sendmail
is not a requirement, consider using an external SMTP service like Gmail, SendGridphp.ini
file.Hey Ruth,
It sounds like you’re facing two separate issues: updating WordPress and its plugins and configuring email functionality on your Ubuntu 22.04 droplet. Let’s address each issue step by step.
WordPress Updates and Plugin Management
File Permissions: The inability to update WordPress or plugins often stems from incorrect file permissions. Your web server should own the WordPress files and have the correct permissions to modify them.
Set the correct permissions using the following commands. Replace
www-data
with your web server’s user if it’s different (Apache usually runs aswww-data
on Ubuntu).Adjust the path
/var/www/html
to match the directory of your WordPress installation.Configuration Check: Ensure that the
wp-config.php
file doesn’t explicitly defineDISALLOW_FILE_MODS
astrue
. This constant, when set totrue
, will disable the update and installation capability.Email Configuration with SendGrid
Since you’re facing issues with
sendmail
, I recommend using SendGrid for better deliverability and ease of use. Here’s how to integrate SendGrid with your WordPress site:Sign Up for SendGrid: If you haven’t already, create an account on SendGrid and set up a sender identity (this involves verifying your domain or email address).
API Key: Generate an API key in SendGrid. This key will be used to authenticate your email requests from WordPress.
Install a Plugin: Use a plugin like WP Mail SMTP by WPForms, which supports SendGrid. This plugin allows you to configure WordPress to send emails using the SendGrid API.
Configure the Plugin:
DNS Records: Follow SendGrid’s instructions to update your DNS records. This typically involves adding SPF and DKIM records to improve email deliverability and to help prevent your emails from being marked as spam.
If you encounter any specific errors during these processes or need further assistance, feel free to ask!
Best,
Bobby