Page 1 of 1

Root Path Problem..

Posted: Sun 21. Mar 2004, 16:04
by Timu
Hi,

I have been trying to install this very nice cms.

I am trying to install it to my domain's root directory.

When I leave "phpwcms root" empty during the installation, at the end of installation I only get red warning for each folder.

When I use Inetpub/wwwroot/users/phpcms for my root path, I get all green "Ok". But when I want to login to admin panel, I get the following URL after placing my user name and password
http://www.mydomain.com/Inetpub/wwwroot ... hpwcms.php

I use win2003 Server & IIS

If I leave root path empty and ignore the red installation warnings..I am able to login to admin panel and add news...But all pages shows some script warning on the top of the content...

I also tried to use Inetpub/wwwroot/users/phpcms path to get installation "OK" Then leave it empty to have access to admin page.

It works with the following script errors when I publish new article

Warning: main(/include/inc_tmpl/articlecontent.list.tmpl.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\users\phpcms\include\inc_lib\article.editcontent.inc.php on line 150

Warning: main(): Failed opening '/include/inc_tmpl/articlecontent.list.tmpl.php' for inclusion (include_path='.;c:\apache\php\pear') in C:\Inetpub\wwwroot\users\phpcms\include\inc_lib\article.editcontent.inc.php on line 150


To get the empty index page, I need to place Inetpub\wwwroot\users\phpcms in root path....

PS: I gave full right to everyone for all directories..

Thanks

:?:

Posted: Sun 21. Mar 2004, 17:35
by pSouper
have you mistyped the directory name?
i notice you have the directory called 'phpcms' and not the defaut 'phpWcms'

also if you would post your phpinfo() link and your conf.inc.php (without password or username of course) this would help us to help you.

Posted: Sun 21. Mar 2004, 18:02
by frold
pSouper wrote:cinf.inc.php (withou password or username of course) this would help us to help you.
conf.inc.php

Posted: Sun 21. Mar 2004, 18:47
by pSouper
yes, i guess conf.inc.php will be just as good as the lesser known cinf.inc.php ;)

Posted: Sun 21. Mar 2004, 19:20
by eflexer
Add this line in "conf.inc.php" under "site values":

Code: Select all

$_SERVER['DOCUMENT_ROOT'] = 'C:\Inetpub/your_path_2_phpwcms/';
It´s a IIS-Issue, cause the DOCUMENT_ROOT is allways empty.

Cheers, Tom

Posted: Mon 22. Mar 2004, 01:11
by Timu
Hi Tom,

Thank you for your time...


I got empty index page after adding that line to my config.inc.php



<?

// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "user";
$phpwcms["db_pass"] = "password";
$phpwcms["db_table"] = "phpcms";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;

// site values

$_SERVER['DOCUMENT_ROOT'] = 'C:\Inetpub/wwwroot\users\phpcms/';
$phpwcms["site"] = "http://www.airinter.com/";
$phpwcms["admin_email"] = "admin@dominor.com";

// paths
$phpwcms["root"] = ""; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["file_tmp"] = "phpwcms_tmp"; //default: "phpwcms_tmp"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["dir_thlist"] = "thumb_list"; //default: "thumb_list"
$phpwcms["dir_preview"] = "thumb_preview"; //default: "thumb_preview"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column

images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
$phpwcms["img_prev_height"] = 400; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds


Thanks
Timu
eflexer wrote:Add this line in "conf.inc.php" under "site values":

Code: Select all

$_SERVER['DOCUMENT_ROOT'] = 'C:\Inetpub/your_path_2_phpwcms/';
It´s a IIS-Issue, cause the DOCUMENT_ROOT is allways empty.

Cheers, Tom

Posted: Mon 22. Mar 2004, 01:24
by Timu
Thank you for trying to help me .. This application seems very cool...

I created that directory which is root for that domain name...No spelling error...
I posted my config file below....

My PHP is v4.0.3...

I currently run different PHP applications including Geeklog on this server..

Thanks Again...
Timu

pSouper wrote:have you mistyped the directory name?
i notice you have the directory called 'phpcms' and not the defaut 'phpWcms'

also if you would post your phpinfo() link and your conf.inc.php (without password or username of course) this would help us to help you.

Posted: Mon 22. Mar 2004, 01:25
by pSouper
the empty index page what you should be getting - you now need to go in to the admin area after login and create a template and set your layout.

you could search this bb for 'template' there are some examples here somewhere

Posted: Mon 22. Mar 2004, 01:29
by Timu
And admin part works fine...It is not giving me any error when I submit new article...

Index page is empty...

(I guess I saw this problem before...I will search this form for this issue..)

That seems to be the only problem so far...
I got empty index page before while I was trying different root paths...

Thanks...

Timu wrote:Hi Tom,

Thank you for your time...


I got empty index page after adding that line to my config.inc.php



<?

// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "user";
$phpwcms["db_pass"] = "password";
$phpwcms["db_table"] = "phpcms";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;

// site values

$_SERVER['DOCUMENT_ROOT'] = 'C:\Inetpub/wwwroot\users\phpcms/';
$phpwcms["site"] = "http://www.airinter.com/";
$phpwcms["admin_email"] = "admin@dominor.com";

// paths
$phpwcms["root"] = ""; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["file_tmp"] = "phpwcms_tmp"; //default: "phpwcms_tmp"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["dir_thlist"] = "thumb_list"; //default: "thumb_list"
$phpwcms["dir_preview"] = "thumb_preview"; //default: "thumb_preview"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column

images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
$phpwcms["img_prev_height"] = 400; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds


Thanks
Timu
eflexer wrote:Add this line in "conf.inc.php" under "site values":

Code: Select all

$_SERVER['DOCUMENT_ROOT'] = 'C:\Inetpub/your_path_2_phpwcms/';
It´s a IIS-Issue, cause the DOCUMENT_ROOT is allways empty.

Cheers, Tom

Posted: Mon 22. Mar 2004, 01:31
by pSouper
you index will be empty - you need to create a template now :)
there is help here if you search for 'template'

look here too...
http://www.phpwcms.de/forum/viewtopic.php?t=1275

Posted: Mon 22. Mar 2004, 13:58
by Timu
Thanks...
pSouper wrote:you index will be empty - you need to create a template now :)
there is help here if you search for 'template'

look here too...
http://www.phpwcms.de/forum/viewtopic.php?t=1275