Step 1: Login to your cPanel account.
Step 2: Navigate to the section Files > File Manager menu.
Step 3: Navigate to the root folder of your Joomla installation, right-click on configuration.php and use ‘Code Edit’ option.
Step 4: Open the file and adjust its source code online. You will need to locate and edit the following line.
public $live_site = ”;
Step 5: Enter a new website URL in this line.
Step 6: In case the root folder of the installation was changed, you need to edit these lines as well:
public $log_path = ‘/home/user/public_html/joomla/administrator/logs’;
public $tmp_path = ‘/home/user/public_html/joomla/tmp’;
Step 7: Instead of the old path, enter the new one and hit Save button.