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.
Viewing website without domain?
-
- This is my homepage
- Posts: 1573
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sun Jun 26, 2011 8:03 am
Viewing website without domain?
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Find Your GSP Coupons at gspreviews.com/coupons/
Re: Viewing website without domain?
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/
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
-
- This is my homepage
- Posts: 1573
- Joined: Sun Jun 26, 2011 8:03 am
Re: Viewing website without domain?
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:
Line 72:
Fix:
Have to add "(isset" and an extra ")" at end of the line.
My issue is for lines like:
Error comes up as:
which would be the second line.
I can't seem to get the syntax correct.
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
Code: Select all
$this->id = ($row["id"]) ? $row["id"] : ($this->id ? $this->id : 0);
Code: Select all
$this->id =(isset($row["id"]) ? $row["id"] : ($this->id ? $this->id : 0));
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;
}
Code: Select all
Warning: Illegal string offset 'id' in /home/findaden/public_html/classes/class_RobotsFilter.php on line 38
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/
Find Your GSP Coupons at gspreviews.com/coupons/