Emery Hosting
Please Login or Register

Knowledgebase

How do I use 1-click installer to setup Dolphin directly in www folder?

When you use 1-click installer, you must install Dolphin in a subdirectory like /public_html/dolphin/ , but you cannot install it directly under www root folder of /public_html/ (that's the limitation of 1-click installer). So, here are two tricks to overcome this limitation (choose one).


Trick #1
This is the easiest & quickest trick of all. You simply need to auto-redirect http://www.your-domain.com to http://www.your-domain.com/dolphin/. Here's how to do this...

Step-1: Using Notepad, create a new file on your local computer with name index.php
Step-2: Enter the following one line (highlighted in Yellow) in your new index.php file. Remember to change the URL in the following line, so that it matches with your Dolphin URL:


<?php header('Location: http://www.my-domain.com/dolphin/') ;?>


Step-3: Save the file index.php and close your Notepad.
Step-4: Upload index.php to your hosting account, so that it is located directly under /public_html/ folder.
Step-5: You are done! Now try browsing http://www.your-domain.com and you will be automatically re-directed to your Dolphin folder!


Trick #2
This method moves the entire file-content of your Dolphin setup from a sub-folder to the main public_html folder. Apart from moving the files, you also need to do some re-configuration. Here are the steps to do so...

2) After the installation fully completes, go to CPanel's File Manager **OR** launch your own FTP Client to connect to your hosting account.

3) Go to folder /public_html/dolphin/.

4) Move ALL the files & folders from /public_html/dolphin/ to /public_html/. For example, the file /public_html/dolphin/index.php will be moved to /public_html/index.php.

5) Open this file for editing: /public_html/ray/modules/global/inc/header.inc.php. Modify the following line...
FROM >>>> include("/home/your_username/public_html/dolphin/inc/header.inc.php");
TO >>>>>>> include("/home/your_username/public_html/inc/header.inc.php");
Save the file.

6) Now, open this file for editing: /public_html/inc/header.inc.php. Modify the following lines...
FROM >>>> $site['url'] = "http://www.your-domain.com/dolphin/";
TO >>>>>>> $site['url'] = "http://www.your-domain.com/";
IMPORTANT: Make sure that you put "www" before your domain name.

FROM >>>> $dir['root'] = "/home/user_name/public_html/dolphin/";
TO >>>>>>> $dir['root'] = "/home/user_name/public_html/";

Save the file.

7) You are done! Just navigate to your main domain name (like http://www.my-domain.com) and enjoy the Dolphin!



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter