Viewing website without domain?

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Jun 26, 2011 8:03 am

Viewing website without domain?

Post by .=QUACK=.Major.Pain »

I was wondering if there is a way to view a site without a domain?

I have a VDS hosting account with Hostgator that I am using.

I can create an account and access cPanel.
I could upload and setup the files and database I am sure.

But can I view the index.php or index.html by using an ip url instead of a domain url?

eg:

http://1.1.1.1/accountname/home/public_ ... /index.php

The above gives me error 404 not found.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Viewing website without domain?

Post by soja »

Yes, with cpanel the site needs a dedicated IP address. The forum software should also be configured to know it is being access like http://123.123.123.123/forum/index.php

Also, public_html is your public folder. your example URL should only be http://1.1.1.1/forum/index.php

We use a VDS here with cpanel, with an extra IP(I host some small personal sites off it as well).
http://70.42.74.65/forum/4-community-announcements/
Not a NFO employee
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Viewing website without domain?

Post by .=QUACK=.Major.Pain »

Thanks for the guidance.
Got it all working now.

But on another issue, with this script, I had to upgrade from php 5.3 to 5.4.
Now I am finding that commands have been dropped or changed.

With googling my issues, I found the fix.

Error coming up was:

Code: Select all

Warning: Illegal string offset 'id' in /home/findaden/public_html/classes/class_EventCategory.php on line 72
Line 72:

Code: Select all

			$this->id            = ($row["id"])            ? $row["id"]            : ($this->id            ? $this->id            : 0);
Fix:

Code: Select all

			$this->id            =(isset($row["id"])            ? $row["id"]            : ($this->id            ? $this->id            : 0));
Have to add "(isset" and an extra ")" at end of the line.


My issue is for lines like:

Code: Select all

        function makeFromRow($row='') {
            if ($row['id']) $this->id = $row['id'];
            else if (!$this->id) $this->id = 0;
            if ($row['value']) $this->value = $row['value'];
            else if (!$this->value) $this->value = 0;
        }
Error comes up as:

Code: Select all

Warning: Illegal string offset 'id' in /home/findaden/public_html/classes/class_RobotsFilter.php on line 38
which would be the second line.

I can't seem to get the syntax correct.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Post Reply