admin email wordpress

Change WordPress admin email

Do you face trouble changing WordPress email id from the WordPress dashboard? In this article, we will show you how to easily change the WordPress admin email.

When you update the email ID from the WordPress admin dashboard, WordPress gives you a message that says “There is a pending change of your email and you never receive the confirmation email in your mailbox.

Why changing the WordPress admin email is important?

WordPress uses the default user@example.com as the admin email. (Note this is only for WordPress Bitnami hosted on Google Cloud Platform).

The admin email address is used by WordPress as the website’s email address and this is used to send important email notifications related to your WordPress account.

You may also need to update this default email address to configure mail setting in WordPress.

The admin user’s email address is used to recover the lost password. So, take this as a priority when you install WordPress in Google Cloud.

The first step is to enable PHPmyadmin and then update the email address in the database.

If you try to access PHPMyAdmin followed by your URL (http://example.com/phpmyadmin) you will get the following note.

For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname.

To enable PHPMyAdmin follow the below steps.

Step 1 . Login in to Cloud Console through SSH.

Wordpress admin email

Step 2 Edit the httpd-app conf file

Type the below command and press enter

sudo nano /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf

Search for the below line of text as highlighted in the below image.

Wordpress admin email

Now, you need to replace these lines with the below lines of code.

<IfVersion < 2.3 >
Order allow,deny
#Allow from 127.0.0.1
 Allow from all
Satisfy all
</IfVersion>
<IfVersion >= 2.3>
#Require local
 Require all granted
</IfVersion>

The final result should look like this.

Wordpress admin email

Press ^X to save and exit from the console.

Restart apache server by typing the below command.

sudo /opt/bitnami/ctlscript.sh restart

Step 3 Update the user email and admin email in PHPMyadmin

To update the email admin email ID login to PHPMyAdmin from the browser. To login in type your domain name followed by a ‘/’ and phpmyadmin.

For example, if your domain name is www.example.com then type www.example.com/phpmyadmin.

The default username is “root” and the default password is the one with which you have initially logged into the WordPress dashboard. You can also find the password. in the Google Cloud Deployment Settings.

Wordpress admin email

Step 4 Update User login details in wp_users table.

Once logged in, click on bitnami_wordpress to expand the tables.

Then, click on wp_users.

Update, user_login with a username with which you want to login to WordPress, user_nickname and user_email with your email id.

phpmyadmin1 1

You will also need to update the password in the MD5 format.

To update your password, select the row and click on the EDIT icon.

Enter your password in plain text in the password field, then select MD5 option from the dropdown menu under function.

Wordpress admin email

Click on Go to save the changes.

Step 5: Update admin email ID in the wp_options table

The last and final step is to update your email ID as the admin email ID. To do this, follow the below steps.

Click on Wp_options table and replace the default admin email to your email id.

Wordpress admin email

Now, login to your WordPress dashboard with the user id and password entered in the wp_users table. You will be able to see your email id and username.

Wordpress admin email

You may change back the code created in step 2 to default and disable Phpmydamin login for security.


Posted

in

by

Comments

4 responses to “Change WordPress admin email”

  1. SONGSTER2998 Avatar
    SONGSTER2998

    Thank you!!1

  2. Marcelo Miguel Bazan Avatar

    Hi Subhro:
    I tried to follow your tutorial, but I get these lines when I try to restart CTLSCRIPT (it also happens without editing the HTTPD file), and I can’t access PHPMyAdmin
    Syntax OK
    /opt/bitnami/apache2/scripts/ctl.sh : apache not running
    /opt/bitnami/php/scripts/ctl.sh : php-fpm stopped
    /opt/bitnami/mysql/scripts/ctl.sh : mysql stopped
    /opt/bitnami/mysql/scripts/ctl.sh : mysql started at port 3306
    /opt/bitnami/php/scripts/ctl.sh : php-fpm started
    Syntax OK
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    AH00015: Unable to open logs
    /opt/bitnami/apache2/scripts/ctl.sh : httpd could not be started

    I don’t know if it’s useful, but I’m hosting my WP website on Google Cloud.

    Thanks & greets from Argentina
    Marcelo.

  3. Marcelo Miguel Bazan Avatar

    Update. My site is not longer available!!. I tried reediting the httd-app.conf to its defaults, but nothing happens, and, when I try to access PHP MyAdmin, I get this:

    Not Found
    The requested URL was not found on this server.
    Apache/2.4.38 (Debian) Server at mmbhobbies.tk Port 80

    I think I’ll give up. It’s too messy.

    Thanks & greets from Argentina.
    Marcelo.

  4. Marcelo Miguel Bazan Avatar

    Sorry I write 3 messages, but I can’t edit the original one.
    Things are worse than I thought.
    I can access to my website using the IP supplied by Google Cloud, but what I see is not the WP site I uploaded, what I see is the Apache2 Debian Default Page.
    Now it’s official: I’M COMPLETELY LOST.

    Thanks & greets from Argentina.
    Marcelo.

Leave a Reply

Your email address will not be published. Required fields are marked *