Categories
Web-Hosting www

FLUSH DNS in Windows Linux Mac OS

FLUSH DNS in different platforms

In Microsoft Windows, you can use the command flushdns to flush the DNS resolver cache.
Open the command prompt and type the following:
C:>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.

In Mac OSX Leopard, you can use the command dscacheutil -flushcache to flush the DNS resolver cache:
bash-2.05a$ dscacheutil -flushcache

In Mac OSX versions 10.5.1 and before, the command lookupd -flushcache performed the same task:
bash-2.05a$ lookupd -flushcache

In Linux, the nscd daemon manages the DNS cache. To flush the DNS cache, restart the nscd daemon.
To restart the nscd daemon, use the command
#/etc/init.d/nscd restart

Related: DNS Server, Linux Server, Windows Server

Categories
Dedicated Server PHP Scripts Setup www

phpinfo.php file on server

How to check php settings by using phpinfo on server?

Each server is setup differently whether it is a dedicated server or a virtual server, phpinfo() is commonly used to check configuration settings and for available predefined variables on a given web server.

phpinfo() is a valuable debugging tool as it contains all the data, information related to environment, GET, POST, Cookie, Server etc.

To create the file simply add the following lines of code to a blank document.
<?php
phpinfo();
?>

Save the file as phpinfo.php and place it in the desired directory. Lastly, call the script from a browser.

http://www.your-own-website-example.com/folder/phpinfo.php

This php file will output detail information about the current state of PHP: PHP compilation options and extensions, the PHP version, server information and environment, the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License as well.

Related: PHP Hosting, LAMP Server, cPanel Hosting

Categories
Ftp Server Transfer Web-Hosting www

how to use ftp client with your web hosting account

Tutorial to use FTP Client, CoreFTP with your web hosting account.

In this ftp tutorial we will assume that you own the domain ‘yourdomain.com’ and your FTP username is ‘ftpusername@yourdomain.com’.

Follow these steps to complete the ftp tutorial:

1. Get ftp client from CoreFTP website: http://www.coreftp.com/download/coreftplite.exe
2. Once you install CoreFTP, open it up. You should now see the ‘Site Manager’. Your screen should look like this:

FTP Site Manager

This is the screen where you enter your web hosting account information.

[Note: This is just an example, not your actual username and password.]

  • Site Name: yourdomain
  • Host / IP: ftp.yourdomain.com
  • User Name: ftpusername@yourdomain.com
  • Password: yourftppassword
  • If you are behind a firewall, enable Passvie Mode, by checking the ‘PASV Transfers’ checkbox.

To connect to the server, click on the ‘Connect’ button. And you are done.

Once the FTP program makes a successful connection, the left pane will show files/folders on your computer, the right pane will shows files/folders on the FTP site / remote web server.

Where, in which folder to upload your website files?

On Linux server /cPanel Hosting account, you will be able to see ‘public_html’ or ‘www’ folder in the right view.
On Windows server /DotNetPanel Hosting account, it will be ‘wwwroot’ folder.

Please note that index.html or index.htm or default.html or index.php or index.asp [windows only] file acts as your homepage. Whenever a visitor types in http://yourdomain.com UnicHost Web Server will look for one of the file first and will load homepage of your website.

Facing FTP connection problems?

1. If you just obtained your web hosting account at UnicHost then your domain may not be ready to start using our service. So, in this case, instead of using your domain in the ‘Host or URL’ box you should use the IP address given to you in your welcome e-mail.
2. It may be that you are behind a firewall and/or router and need to use passive FTP. Check step 2 to see how to enable passive FTP.

Once the FTP program makes a connection, you will be able to see/browse files and folders in the right view.

Any further help, we are there for you. Call us or open a support ticket at support [at] unichost.com

Categories
Domain Name Web-Hosting www

How to point multiple domain names to my existing website?

Do you allow to point multiple domain names to my existing website?

Yes, this is also called as domain parking. We can point multiple domains for you to your existing website. For this you will need to submit your request through support help desk. These domains must point to your main website.

If you are looking to host another website under the same hosting package, please get in touch with our sales team. We do offer generous multiple domain hosting discounts to host multiple websites under single account. (Usually you won’t get this facility with other hosts.)

[Note: You will be sharing existing resources for all the websites you add under the existing hosting account. There won’t be a separate control panel for each website.]

Categories
Web-Hosting www

What is the difference between www and public_html ?

Is there any technical difference between www and public_html?

Actually, there is no difference between www and public_html. Technically, the default directory created to upload your web files is public_html. To make it more user friendly and understandable – www, the symbolic link is created (it is like a desktop shortcut) that points to the same folder. Upload your website related content to one of these folders, it doesn’t matter at all.