Page 1 of 1
Install on IP domain
Posted: Mon 10. Sep 2007, 23:09
by daniel.grant
is it possible to install phpwcms on an ip domain i.e.
http://00.000.000.00/domain.com
I have tried this but with no success, just get 'FALSE' for all the folders at the end of the installation.
Posted: Tue 11. Sep 2007, 04:42
by StudioZ
I guess you would simply need to edit your
DNS Zone Files on your server or your hosting account.
Where I am hosted I have this "Domain Pointers" feature
which allows me to host as any domain name besides/under my main account.
This way, my DNS Zone Files are automaticly edited
as needed, and on the fly.
Hope this helps a bit ... ?
Cheers,
Yves
Posted: Tue 11. Sep 2007, 11:27
by daniel.grant
well I have the option for 'domain reference' with my hosting account which I use when I have to develop a clients site first and then point their domain nameservers to my account. So what I end up with is a temporary address that looks like
http://00.000.000.00/clientsdomain.com.
It would obviously be preferable to have the phpwcms installation here so that all I have to do is point the domain over to the hosting rather than move the whole installation.
on step 7 of the installation I have set the site basis to
http://00.000.000.00/clientsdomain.com/ and root path to /var/www/html.
This doesn't work though... ha!
Hey its not the end of the world if its not possible, would just be nice

Posted: Tue 11. Sep 2007, 11:29
by juergen
Why not ?
Just another document root ...
Beware of some dutys mostly running as 1.2.3.4.5/phpmyadmin and so on
Just look around in the vhost.conf for route of IP
Posted: Tue 11. Sep 2007, 12:00
by DeXXus
Hmm, that DOES ~look~ right...as long as you CAN browse to there.
Code: Select all
// site values
$phpwcms["site"] = "http://00.000.000.00/clientsdomain.com/";
// paths
$phpwcms["DOC_ROOT"] = "/var/www/html";
$phpwcms["root"] = ""; //default: ""
Posted: Tue 11. Sep 2007, 16:27
by daniel.grant
Yes, you can browse there okay.
I've checked my conf.inc to those settings. when I load
http://00.000.000.00/clientsdomain.com/index.php I get this wonderful message...
Warning: main(/var/www/html/include/inc_lib/dbcon.inc.php) [function.main]: failed to open stream: No such file or directory in /home/sites/waterfrontchurch.org/public_html/index.php on line 36
Fatal error: main() [function.require]: Failed opening required '/var/www/html/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/share/pear') in /home/sites/waterfrontchurch.org/public_html/index.php on line 36
Posted: Tue 11. Sep 2007, 18:25
by update
Do you really have a waterfrontchurch.org/public_html/index.php ?
Posted: Tue 11. Sep 2007, 21:30
by DeXXus
daniel.grant wrote:I get this wonderful message...
Warning: main(/var/www/html/include/inc_lib/dbcon.inc.php) [function.main]: failed to open stream: No such file or directory in /home/sites/waterfrontchurch.org/public_html/index.php on line 36
Fatal error: main() [function.require]: Failed opening required '/var/www/html/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/share/pear') in /home/sites/waterfrontchurch.org/public_html/index.php on line 36
Then you CAN'T browse there (without error). Most often when you get that PHP error reference to
(include_path=...) it means the path does not exist -or- file permissions prevent it from being "seen" by the user.
Since your two error messages shows you "executing" PHP from
/home/sites/waterfrontchurch.org/public_html you should be setting
$phpwcms["DOC_ROOT"] to THAT instead. The two possibilities for you would seem to be:
Code: Select all
// site values
$phpwcms["site"] = "http://00.000.000.00/waterfrontchurch.org/";
// paths
$phpwcms["DOC_ROOT"] = "/home/sites/waterfrontchurch.org/public_html";
$phpwcms["root"] = ""; //default: ""
OR
Code: Select all
// site values
$phpwcms["site"] = "http://00.000.000.00/";
// paths
$phpwcms["DOC_ROOT"] = "/home/sites/waterfrontchurch.org/public_html";
$phpwcms["root"] = "waterfrontchurch.org"; //default: ""
Posted: Thu 13. Sep 2007, 11:28
by daniel.grant
thanks DeXXus for your advice, is all working great now. This is really useful to me so I am rather happy
