red folders on installation... again

Please post all install related problems here. Visit this forum first for troubleshooting.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

red folders on installation... again

Post by pSouper »

hi guys, I'm pretty sure i'm getting closer to the problem now but need a little more advice and help
I am trying to setup a fresh install of phpwcms and i think my problems are with the phpwcms_root and the complex way my web hosting works
the web address is...
www.tinytots.tv however this gets redirected to www.tinytots.dyndns.tv/tinytots_remote/index.html then on to my IP address.
my IIS home directory is d:/wwwroot/websites/
now while installin phpwcms: if use the dafualt value of phpwcms_root as ("") i get all red folders; If I use ..\\ as my phpwcms_root I get mostly green folders, all except those nested folders such as images and thumbs
but my problem is that if i go with the default values i loose functionality but if i go with the ..\\ value i loose the database as well as some funcionallity.

i know there are workarounds to this seamingly pathing problem, and that I should look harder to find them but as I am not alone with this issue and would love to get advice on a good solution to this. maybe even an amendment ot the setup.php?

thanking you all in advance pSouper
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

closer

Post by pSouper »

In adendum to the post above...
I think this issue may be caused by phpwcsm using $phpwcms["site"] sometimes and then getting the website address by some other means at other times.
the reason I think this is because phpwcms seams that in some cases phpwcms is not including the tinytots_remote/index.html that is passed on to dyndns to get to the correct folder on my server.

is this causing the problem? anyone?
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

I don not understand what you exactly want but maybe you can use this tip`?

http://www.phpwcms.de/forum/viewtopic.php?t=352
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

thanks for the tip Frold, but it didn't fix my prob.
I have a feeling I need 2 phpwcms_root to work with a dyndns redirection as i am redirecting to a subfolder of my IIS root folder.
I think that the sql stuff is using my IIS root...

Code: Select all

d:\wwwroot\websites\
BUT all the folders need to use the real root...

Code: Select all

d:\wwwroot\websites\tinytots_remote\
I think my problem lies with the $phpwcms["root"] value.
to get the sql working i need it to be...

Code: Select all

$phpwcms["root"]         		= "/tinytots_remote";         //default: ""
and to get the folders working I need the $phpwcms["root"] value to be...

Code: Select all

$phpwcms["root"]         		= "";         //default: 
""
or possibly.. value to be...

Code: Select all

$phpwcms["root"]         		= "";         //default: "../"
(not sure, bit confused now ) :oops:
Last edited by pSouper on Fri 12. Dec 2003, 13:49, edited 1 time in total.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

How about you post your current 'config.inc.php' without user/pass?
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

sorry to mess you guys about like this.
fyi: dyndns will parse subdirs to get to the first page of your site as a way of allowing you to have multiple sites on one IP.
I think these subdir's are confusing phpwcms a little.

I have now setup an account if you need to see phpinfo() and session stuff too... http://www.tinytots.tv helper/letmiin

Code: Select all

<?

// database values
$phpwcms["db_host"]           = "localhost";
$phpwcms["db_user"]           = "**hidden**";
$phpwcms["db_pass"]           = "**hidden**";
$phpwcms["db_table"]          = "tinytots";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 1;

// site values
//redir
$domhere = getenv("HTTP_HOST"); // tip from frold with no noticable affect to my naked eye
$phpwcms["site"]              = "http://".$domhere."/";
//$phpwcms["site"]              = "http://www.tinytots.tv";
$phpwcms["admin_email"]       = "webmaster@tinytots.tv";

// paths
$phpwcms["root"]         		= "/tinytots_remote";         //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

// other stuff
$phpwcms["compress_page"]     = 0; //if 1 = page compression, 0 = no compression

// debugging timer
$phpwcms["timer"]             = 0; //is for displaying a how long it needs to create

$phpwcms["imagick"]           = 0; //0 = GD,  1 = ImageMagick convert
$phpwcms["imagick_path"]      = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"]           = 1; //0 = GD1, 1 = GD2


?>
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Sorry... got called away!

Where did you actually install phpWCMS on your server in relation to:

Code: Select all

d:/wwwroot/websites/ 
because I would assume

Code: Select all

"http://www.tinytots.dyndns.tv/tinytots_remote/"
equates to

Code: Select all

"d:/wwwroot/websites/"
Is this correct? did you install phpWCMS directly into:

Code: Select all

d:/wwwroot/websites/ 
and is that where the "index.html" is to which you refer?
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

np D - a guys got to work :) or should that be :(

Code: Select all

"http://www.tinytots.dyndns.tv/tinytots_remote/"
equates to

Code: Select all

"d:/wwwroot/websites/tinytots_remote/"
http://www.tv forwards http://www.tinytots.tv/tinytots_remote/index.html to dyndns whom in turn are told to redirect it to http://81.99.233.98.
dyndns append the subdir /tinytots_remote/index.html once inside my IP
to locate the actual site's front page. this is where phpwcms is [or I am] getting confused.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

okay.... and where did you "physically" install phpWCMS ??

edit: sorry that would be:

d:/wwwroot/websites/tinytots_remote/ :roll:
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

hehe yup. d:\wwwroot/websites/tinytots_remote/all the phpwcms stuff from here on in.

as it stands, with the config file posted above the site logs in [includes and sql is ok] it forwards you to phpwcms.php [local files ok] it has the correct articles in the corect stucture and with correct content [no templates]
but can't see the thumbs, upload stuff etc so I'm assuming this is a folder issue.
this folder issue should be resolved if the phpwcms_root was "" instead of "/tinytots_remote"
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

What does this produce?:
config.inc.php

Code: Select all

<?

// database values 
$phpwcms["db_host"]           = "localhost"; 
$phpwcms["db_user"]           = "**hidden**"; 
$phpwcms["db_pass"]           = "**hidden**"; 
$phpwcms["db_table"]          = "tinytots"; 
$phpwcms["db_prepend"]        = ""; 
$phpwcms["db_pers"]           = 1; 

// site values
$phpwcms["site"]              = "http://www.tinytots.dyndns.tv/tinytots_remote/";
$phpwcms["admin_email"]       = "webmaster@tinytots.tv";

// 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

// other stuff
$phpwcms["compress_page"]     = 0; //if 1 = page compression, 0 = no compression
$phpwcms["imagick"]           = 0; //0 = GD,  1 = ImageMagick convert
$phpwcms["imagick_path"]      = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"]           = 0; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"]       = 1;  //whether URL should be rewritable

// debugging timer
$phpwcms["timer"]             = 0; //is for displaying a how long it needs to create

?>
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

no noticalbe difference.

I can login just fine, it still cant find the images or thumbs. nor let me upload etc

within the file tab i get the php error...

Code: Select all

Warning: main(include/inc_lib/files.private-filelist.inc.php): failed to open stream: No such file or directory in D:\wwwroot\websites\tinytots_remote\include\inc_lib\files.private.additions.inc.php on line 62
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

pSouper wrote:no noticalbe difference.

I can login just fine, it still cant find the images or thumbs. nor let me upload etc

within the file tab i get the php error...

Code: Select all

Warning: main(include/inc_lib/files.private-filelist.inc.php): failed to open stream: No such file or directory in D:\wwwroot\websites\tinytots_remote\include\inc_lib\files.private.additions.inc.php on line 62
line 62 is this:

Code: Select all

include_once "include/inc_lib/files.private-filelist.inc.php";
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

yup, excactly
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Okay, research shows that the Windows version of PHP currently does not support remote file accessing for include_once() function. So using an fully-qualified "http://" style value for $phpwcms["site"]... may be the problem. How about changing these values:

If localhost is http://www.tinytots.dyndns.tv/tinytots_remote/

Code: Select all

$phpwcms["site"] = "http://localhost/"; 
$phpwcms["root"] = "";
If localhost is http://www.tinytots.dyndns.tv/

Code: Select all

$phpwcms["site"] = "http://localhost/"; 
$phpwcms["root"] = "tinytots_remote";
Post Reply