In order to setup Drupal to use the temporary URL, there a few changes that you must make to your drupal setup.

Step 1: Login to cPanel


Login to the Account Manager and click the “Login to cPanel” button on the homepage.

Step 2: Open the FIle Manager


Click on the file manager in cPanel under the ‘Files” section

Step 3: Locate the Drupal settings file


Navigate to the Drupal settings.php file. In our case, our drupal installation is in a folder called drupal, and the settings.php file is always in a folder called /sites/default

Step 4: Edit the Settings file.


Select the settings.php file and click edit.

Step 5: Click Edit


A dialogue box will pop up. Click edit.

Step 6: Edit the file to place the temporary URL as the base URL


Navigate to the portion of the file that talks about the base URL. Pictured above is the adjustments that have to be made. Remove the # before the #base_url line and put in your GreenGeeks temporary URL which should be http://IPADDRESS/~cpanelusername

Step 7: Save the file


In the top menu bar hit save changes.

Step 8: Edit the .htaccess file

Navigate to your drupal directory in the file manager, and open up the .htaccess file to edit just as you did for the settings.php. Place the following line in the file and hit save:

RewriteBase /~cpanelusername (replacing your cPanel username with the one we provided you upon signup.

Step 9: You’re Done!

Your Drupal installation will not work perfectly with the temporary URL. Be sure to undo these changes when you point the domain to GreenGeeks.

GreenGeeks is a proud supporter of the Drupal Community and we support the latest installations of Drupal including Drupal 8.

About The Author

Leave a Reply

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