Working with temporary URL on cPanel

Our Shared hosting server is running on fcgi php handler with the suEXEC enabled, due to security reason that will prevent the use of temporary URL for the php file.
You can check the website by editing host record in your local machine and check whether everything is working fine. You can add the following in the host file.
198.105.221.60 yourdomain.com www.yourdomain.com

Follow the steps given below to set temporary host record.
---------------------------------------------------------------------------------

Windows
----------------
On most Windows systems you can find the hosts file in C:\Windows\System32\Drivers\etc. It might be set to hidden so make sure you have 'show hidden files' turned on. Save the hosts file and flush the DNS cache on your system. Restart your browser and try accessing your domain.


Linux
----------
On most Linux-based systems, the hosts file can be located in the /etc/ directory. The hosts file is usually called 'hosts' there. The full path is '/etc/hosts'.


Apple Mac OS
---------------------
Launch Terminal , found in /Applications/Utilities/ or launched through Spotlight.
Type the following command at the prompt:

sudo nano /private/etc/hosts

Enter the administrator password when requested. You will not see it typed on screen as usual with the command line.
Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make your modifications.
When finished, hit Control+O followed by ENTER/RETURN to save changes to /private/etc/hosts, then hit Control+X to exit out of nano.
Quit out of Terminal when finished.


- Clear all cookies / history in your browser. 
- Restart your PC and Internet modem. 
- Flush your local DNS cache. 
- For windows, run the command 'ipconfig / flushdns' .
- For Mac OSX (Leopard), run the command ' dscacheutil -flushcache '
- For Mac OSX (<10.5.1), run the command ' lookupd -flushcache



  • 57 Users Found This Useful
Was this answer helpful?

Related Articles

How do I block an IP address using Cpanel?

If there is an IP address you want to block from your website, you can do so inside Cpanel. Here...

Which shared hosting plan is best suitable for my websites?

There are many novice users who are very new to website hosting and don't know exactly which...

Does it cost extra to park domains?

As long as you have a Silver plan or higher, you may park domains to your existing primary...

Apache Handlers, running html as php

Apache handlers allow you to control what Apache will do with certain file types. When Apache...

How to host domain from other registrar to CubeHostIndia by changing Nameserver

Most of the users have a domain from various domain registrars and they are willing to host their...