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



  • Temprary URL
  • 57 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

Copy Entire Database or Rename Database

Is there a way for me to copy an entire database? You will need to export the original database,...

How to Connect to the MySQL Database

Note: If connecting from your home computer, you need a MySQL client like Navicat, phpMyAdmin,...

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...

Accessing Web Disk and WebDav

Web disc (also known as WebDAV) is a drag-and-drop interface which allows you to access your...