Suggested site development configuration

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
lupin
Posts: 2
Joined: Thu 15. Jul 2004, 12:12

Suggested site development configuration

Post by lupin »

Hello,

I'm just spending my first hours on phpwcms, and it seems that I'll spend a lot more since it looks very promising. Now I want to start creating my first phpwcms site, and I ask for a suggestion to avoid a problem I'm afraid of.

I want to create the sites on my pc, then upload them on the server and make subsequent changes there. I suppose this is a common practice, isn't it?

My question is: what happens when I copy the site to another server? Paths will probably be different: something like going from http://mylinuxpc/mydomain to http://www.mydomain.com. I know I will need to edit conf.inc.php: I just wanted to know if there are things I must take care of. An example: all WYSIWYG editors (htmlarea, fckeditor and others) have big problems with links & paths, especially when running on ie.

Thanks in advance for any suggestion or warning.
Luciano
Pappnase

Re: Suggested site development configuration

Post by Pappnase »

lupin wrote:Hello,

I'm just spending my first hours on phpwcms, and it seems that I'll spend a lot more since it looks very promising. Now I want to start creating my first phpwcms site, and I ask for a suggestion to avoid a problem I'm afraid of.

I want to create the sites on my pc, then upload them on the server and make subsequent changes there. I suppose this is a common practice, isn't it?

My question is: what happens when I copy the site to another server? Paths will probably be different: something like going from http://mylinuxpc/mydomain to http://www.mydomain.com. I know I will need to edit conf.inc.php: I just wanted to know if there are things I must take care of. An example: all WYSIWYG editors (htmlarea, fckeditor and others) have big problems with links & paths, especially when running on ie.

Thanks in advance for any suggestion or warning.
Luciano
hello

normally you can create a site local and upload it later to the web. i do this sometimes without any problems! execpt the think that not all browser liek the wysiwyg editors. and some css settings.
pixelpeter
Posts: 45
Joined: Fri 27. Feb 2004, 16:00

Post by pixelpeter »

I changed following lines at the start of conf.inc.php. This gives me great flexibility

Code: Select all

$home = "192.168.0.1:97";

// these are the setting for local development
if ( $_SERVER['SERVER_NAME'] == $home )
{
	// database values
	$phpwcms["db_host"]           = "localhost";
	$phpwcms["db_user"]           = "localdbuser";
	$phpwcms["db_pass"]           = "localpw";
	$phpwcms["db_table"]          = "localdb";
	$phpwcms["db_prepend"]        = "";
	$phpwcms["db_pers"]           = 1;
	
	// site values
	$phpwcms["site"]              = "http://{$home}/";
	$phpwcms["admin_email"]       = "info@example.com";
}
// these are the settings for the live server
else
{
	$phpwcms["db_host"]           = "localhost";
	$phpwcms["db_user"]           = "livedbuser";
	$phpwcms["db_pass"]           = "livepw";
	$phpwcms["db_table"]          = "livedb";
	$phpwcms["db_prepend"]        = "";
	$phpwcms["db_pers"]           = 0;
	
	// site values
	$phpwcms["site"]              = "http://www.example.com/";
	$phpwcms["admin_email"]       = "info@example.com";	
}
Post Reply