install WITHOUT a domain name that resolves

Having trouble installing serendipity?
Post Reply
aregularjoe

install WITHOUT a domain name that resolves

Post by aregularjoe »

Hi,

It seems that the install will not work unless the domain name resolves. In this case I need to have serendipity in place and working before I point the domain name to the server where the serendipity installation resides.

Any idea's?

Thankyou!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: install WITHOUT a domain name that resolves

Post by garvinhicking »

You can enable the "autodetect HTTP host" feature in the configuration. This will then always point to the host you are using to access your install (like 127.0.0.1).

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
aregularjoe

How to do that?

Post by aregularjoe »

Garvin,

Would that be found in serendipity_config.inc.php? the closest thing i can find to that there is this, and it appears to be on:

Code: Select all

if ( (isset($serendipity['autodetect_baseURL']) && serendipity_db_bool($serendipity['autodetect_baseURL'])) ||
     (isset($serendipity['embed']) && serendipity_db_bool($serendipity['embed'])) ) {
    $serendipity['baseURL'] = 'http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] . (!strstr($_SERVER['HTTP_HOST'], ':') && !empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80' ? ':' . $_SERVER['SERVER_PORT'] : '') . $serendipity['serendipityHTTPPath'];
}
[/code]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to do that?

Post by garvinhicking »

No, you don't need to patch the code. Just enter the Serendipity Configuration screen in your admin panel, there you can set the autodetection parameter. It's in "general options", I think. :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
aregularjoe

Post by aregularjoe »

I mean that the install itself fails. I am using Plesk to manage virtual hosting. I can install serendipity successfully in a host that has a domain name that resolves properly.

But I have a site I am developing a site for a client that has a domain name that is resolving to annother server with their current site. When my development is done we will point the name at my server and there will be their new site with a serendipity blog.

I am accesing the site and blog I am developing via a URL that is direct to the server, not using DNS.

Any thoughts are appreciated.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Can you specify an IP address during the install?

In particular, can you start the expert install, then change the URL to your blog to use an IP address instead of a domain name?
Judebert
---
Website | Wishlist | PayPal
Post Reply