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!
install WITHOUT a domain name that resolves
-
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
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
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/
# 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?
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]
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'];
}
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: How to do that?
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
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/
# 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
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.
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.