Install script detecting domain that is not yet avaible

Installation issues with WoWRoster

Install script detecting domain that is not yet avaible

Postby PHandels » Tue Oct 13, 2009 12:16 am

Hi i tried to install wowroster 3 times now.
The install script auto detects my domain www.lessqqmorepewpew.eu (that i can not use yet)
I still need to send registration form and copy of my ID card.. i just hired this webhost and domain name today.
I have to use a temporary url (http://lessqqmorepewpew.eu.server4.starthosting.nl/) untill my domain name is ready for use.
So i delete the detected domain and insert the temporary one the host given me.
Install finished so i wanna continue.. but then i see no images.. all links are using the lessqqmorepewpew.eu domain instead what i did choose so i cant config or anything :bash:

Is there a way i can use http://lessqqmorepewpew.eu.server4.starthosting.nl ?
Install script auto detects www.lessqqmorepewpew.eu why? because the temporary url is too long? Or how does it know my domain that isnt ready yet...
I installed dragonfly CMS without any problems... but wowrosterDF beta gave me too much problems (no images, links not working.. i guess it was the same problem but i didnt notice the urls for links/images where wrong) so i wanted to setup standalone wowroster.. but now i cant do that either? :(
PHandels
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Mon Oct 12, 2009 11:57 pm
Location: Netherlands

Re: Install script detecting domain that is not yet avaible

Postby zanix » Tue Oct 13, 2009 12:43 am

WoWRoster uses the domain that is configured in the server setup for the path info
This was meant to make it easier when users install or move WoWRoster to another folder or server


You can override this by editing lib/cmslink.lib.php
Find this section, it's near the top
Code: Select all
/**
 * Get the full URL to roster's root directory
 * You can modify the defines 'ROSTER_URL' and 'ROSTER_PATH' to suit your needs
 * and bypass the url checks if needed
 */
$url = explode('/','http://' . $_SERVER['SERVER_NAME']  . (( $_SERVER['SERVER_PORT'] != 80 ) ? ':' . $_SERVER['SERVER_PORT'] : '' ) . $_SERVER['PHP_SELF']);
array_pop($url);
$url = implode('/',$url) . '/';

define('ROSTER_URL',$url);
unset(
$url);


/**
 * Get the url path to roster's directory
 */
$urlpath = explode('/',$_SERVER['PHP_SELF']);
array_pop($urlpath);
$urlpath = implode('/',$urlpath) . '/';

define('ROSTER_PATH',$urlpath);
unset(
$urlpath); 


Replace
Code: Select all
define('ROSTER_URL',$url); 

With
Code: Select all
//define('ROSTER_URL',$url);
define('ROSTER_URL','http://lessqqmorepewpew.eu.server4.starthosting.nl/path_to_roster/'); 


And Replace
Code: Select all
define('ROSTER_PATH',$urlpath); 

With
Code: Select all
//define('ROSTER_PATH',$urlpath);
define('ROSTER_PATH','path_to_roster/'); 



Make sure you change 'path_to_roster' to the folder where Roster is installed
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Install script detecting domain that is not yet avaible

Postby PHandels » Tue Oct 13, 2009 1:03 am

WoW thanx for the fast reply and it works fine now :)
So when i finished the registration of the domain (send forum and idcard copy) and its ready for use all i have to do is change these 2 lines again?

I wonder if the port of DFwowroster 2.0.2 beta would have worked also on my dragonfly site if i had changed this... but i deleted the entire site i installed because i couldnt get roster to work in it lol...
Maybe i install it again tommorow and give it another try.

Thanx again :)
PHandels
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Mon Oct 12, 2009 11:57 pm
Location: Netherlands

Re: Install script detecting domain that is not yet avaible

Postby zanix » Tue Oct 13, 2009 2:13 am

PHandels wrote:WoW thanx for the fast reply and it works fine now :)

Glad it works now!

PHandels wrote:So when i finished the registration of the domain (send forum and idcard copy) and its ready for use all i have to do is change these 2 lines again?

Yes, just revert the lines back and you will be good to go

PHandels wrote:I wonder if the port of DFwowroster 2.0.2 beta would have worked also on my dragonfly site if i had changed this... but i deleted the entire site i installed because i couldnt get roster to work in it lol...

Maybe i install it again tommorow and give it another try.

It shouldn't have made a difference because WoWRosterDF should have used DF's path info. Strange.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron