How to Change the Domain Name for your phpFox Website

This article will focus on how to change the domain name associated with your phpFox website.

There may be a time when you realize that the current domain you are using for your phpFox website just isn’t the right one for the site anymore.  There are many reasons for this, you may have started out on a .net and now have the .com, or the content that you and your members are posting just doesn’t match well with the old domain.

As always, before making any changes to your phpFox website, I suggest you make a full backup of all files and the database.

The first thing you will need to do is log into your phpFox account at http://www.phpfox.com/account/

On your dashboard, select the arrow to the left of the license you are editing, and select Edit.

The following screen is where you will edit the domain name for your site.  Replace the current website url with the new domain, then select Submit.

After you have changed your domain at the phpFox website, it is time to change the domain in your server.sett.php file.  Login to your filemanager in cPanel or via FTP.  Navigate to include/settings/ and edit server.sett.php.

Look for the following lines and edit them with your new domain and installation folder (if you do not have phpFox installed in the root of your site):

$_CONF['core.host'] = ‘yoursite.com';
$_CONF['core.folder'] = ‘/';

If the information for your database connection has changed, you will need to modify this in the server.sett.php file as well.  The most likely fields in this case that you would have to edit are as follows:

$_CONF['db']['host'] = ‘localhost';
$_CONF['db']['user'] = ‘db_username';
$_CONF['db']['pass'] = ‘dbpass123′;
$_CONF['db']['name'] = ‘db_name';

If you enabled short urls and had your domain in a subfolder of your site, you will need to edit the RewriteBase in the .htaccess file.

After you have made all the necessary changes for your site, you will need to clear the cache via the filemanager or via FTP.  Remember to clear all files from the file/cache folder EXCEPT index.html.

Congratulations!  You should now be able to change your domain for your phpFox website!

Looking for quality phpFox Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , | Posted under phpfox | RSS 2.0

Author Spotlight

Stephanie Brown

Stephanie Brown

I am a web and graphic designer with 10+ years experience in website design and development, as well as website hosting. I have been working with the phpFox networking script for 3+ years. In those 3 years I have assisted clients with template/style customization and design, addon development, and general phpFox site maintenance. Outside of the internet, I am a mother of 2 young children, caretaker of 1 old english bulldog, 4 persian cats, and 1 baby black rat snake that decided to slither into our kitchen one day.

Leave a Reply

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


+ 6 = 13

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>