How To Change Email Sender Name on WordPress Site

If your WordPress on Linux site is setup to send emails when users register, forget their passwords, or to send notifications when a new post is published, you may notice the senders email looks a little something like this:
Wordpress <wordpress@yourhostname.yourdomain.name>

This can easily be customized to reflect a different sender name.

From the Linux shell, navigate to /var/www/html/wp-includes and open pluggable.php in your favorite editor. I use vim so my command looks like this:

vim /var/www/html/wp-includes/pluggable.php

Search for the string ‘from_name’. This is done by entering

/from_name

It should take you to a section that looks like this:

$from_name = 'WordPress';

Change ‘WordPress’ to MyBlog, admin, your name or whatever sender name you’d like to use.

Next, search for the string ‘wordpress@’. This is done entering

/wordpress@

There are two areas this needs to be changed. The line of code displays ‘wordpress@yourdomain.com.’ Change ‘wordpress’ to admin, your name or whatever username you’d like to use. Possibly one of your domain email accounts. Keep in mind, this only changes the username@, not the domain name itself.

When finished, emails will be coming from:

YourNameofChoice <usernameofchoice@yourhostname.yourdomain.name>

redhat

Rename Root Volume Group (VG) on Linux Server

This walk-through worked on a virtual server running RHEL 6.7 in a VMware environment.

As I rebuilt an existing VMware guest that was being scheduled to go into production, I realized I did not rename the default volume group from vg_hostname to rootvg.

You must be root user and it is extremely important to backup the files below. It’s also important to know how to boot up in rescue mode with other boot media in the event there was a typo or other unforeseen issue.

Backup fstab file

cp /etc/fstab /etc/fstab.orig

Backup grub.conf file

cp /boot/grub/grub.conf /boot/grub/grub.conf.orig

Rename volume group

vgrename /dev/vg_OLDname /dev/rootvg

Change all instances of the old volume group in the following files:
Edit /etc/grub.conf (which is a symbolic link to /boot/grub/grub.conf)

vim /etc/grub.conf

Search and replace

:%s/vg_OLDname/rootvg/g

Edit fstab file

vim /etc/fstab

Search and replace

:%s/vg_OLDname/rootvg/g

Move boot image

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.backup
dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

Verify your work
Reboot

If your system comes back up, you are golden. If it does not…

The Relationship Between a Domain Name and a Web Host

A domain name represents a physical location on the Internet; an IP address. The Internet Corporation for Assigned Names and Numbers (ICANN) governs coordination of the links between IP addresses and domain names across the Internet. With this standardized coordination, you can find websites on the Internet by entering domain names instead of IP addresses into your Web browser.

Web hosting is a service that allocates space on a computer server to a customer’s web site. It’s that physical location on the Internet as mentioned above that is assigned an IP address. This is where your domain name points to.

What is a domain name?

A domain name represents a physical point on the Internet — an IP address. The Internet Corporation for Assigned Names and Numbers (ICANN) governs coordination of the links between IP addresses and domain names across the Internet. With this standardized coordination, you can find websites on the Internet by entering domain names instead of IP addresses into your Web browser.

In layman’s terms, you can type 74.125.224.72 (IP address of the host) into your browser to search the Internet or you can type in Google.com. Google.com is a domain name that points to the physical location or point on the Internet. In this case, 74.125.224.72.