Path problem in setup

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
maui1
Posts: 4
Joined: Mon 3. Nov 2003, 18:07

Path problem in setup

Post by maui1 »

Hi, This looks absolutely wonderful... Great work.

I have only one problem on setup, I can't seem to get the paths to work.. I tried the default paths and all were false, I then tried variations on the given path and still all were false. Below I have copied some of my attempts and the results. At the top is the path the setup script detects:

path:  /home/interser/public_html/~acunu/phpwcms

Ready to start phpwcms?
filestorage:   phpwcms_filestorage   FALSE (not existing)
temporary:   phpwcms_tmp   FALSE (not existing)
templates:   phpwcms_template   FALSE (not existing)
thumbnail list:   home/interser/public_html/~acunu/wcms/thumb_list   FALSE (not existing)
preview images:   home/interser/public_html/~acunu/wcms/thumb_preview   FALSE (not existing)
frontend content:   home/interser/public_html/~acunu/wcms/content   FALSE (not existing)
frontend images:   home/interser/public_html/~acunu/wcms/images   FALSE (not existing)
ftp takeover:   home/interser/public_html/~acunu/wcms/phpwcms_ftp   FALSE (not existing)
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Which PHP version do you use?

Please send the complete Path and Server info at top of the setup script.

Have you setup the root path - first input field in STEP 3 of the setup process. In your case it should be "phpwcms" I think.

What is your webserver root directory. You can try this if you put this inside a new php file:

Code: Select all

<?php

echo $_SERVER['DOCUMENT_ROOT'];

?>
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
maui1
Posts: 4
Joined: Mon 3. Nov 2003, 18:07

setup paths

Post by maui1 »

>>Please send the complete Path and Server info at top of the setup script.

system:  Linux kottonmouth.trouble-free.net 2.4.22-grsec-tfadmin.net #1 SMP Thu Aug 28 21:28:48 EDT 2003 i686
server:  Apache/1.3.28 (Unix) mod_auth_passthrough/1.8 mod_jk2/2.0.0 mod_log_bytes/1.2 PHP/4.3.2 FrontPage/5.0.2.2634 mod_ssl/2.8.15 OpenSSL/0.9.6b
php:  v4.3.2
path:  /home/interser/public_html/~acunu/phpwcms

>Have you setup the root path - first input field in STEP 3 of the setup process. In your case it should be "phpwcms" I think.

I tried the default blank, and the phpwcms you suggested, with no luck.

>What is your webserver root directory.

I have a shared server with a control panel and it gives my root directory as:

Your Root Directory
/home/acunu/
Your WWW Directory
/home/acunu/public_html/

When I ran the little root directory script you gave in your message I get:

/home/interser/public_html

Hope this helps sort things out.

Frank
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Hmm difficult - This is something I have not seen yet - what providers do every day?

I would say the phpwcms_root dir has to be: "~acunu/phpwcms" but if I use your provider's info it should be "phpwcms"

I don't know how your provider has realized this - maybe with symbolic links or mod_alias/mod_rewrite. You should ask him for a solution or some more info to that.


Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
maui1
Posts: 4
Joined: Mon 3. Nov 2003, 18:07

I think I might have solved it

Post by maui1 »

Hi,

I decided to just edit the conf.inc.php file manually and see what happend. My first try was with phpwcms as root. That didn't work giving a 404 not found error, but was pretty close, as the generated URL was almost right except for a slash missing eg. ~acunuphpwcms/login.php

So I added a slash to the root directory entry in conf.inc.php (against your setup script directions) so it looks like "/phpwcms" and that seems to work so far. Haven't really checked it out extensively yet, but it allows me to login, and explore the menus.

Got my fingers crossed.

Thanks for your suggestions. This looks like a really really cool CMS. If you have a mailing list for new release announcements please put me on it.
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

every path value will be finally build for usage inside "include/inc_lib/default.inc.php" line 32-48.

There is no mailing list at the moment - but it's in preparation.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
maui1
Posts: 4
Joined: Mon 3. Nov 2003, 18:07

bad path in save page layout

Post by maui1 »

Well the path problem has resurfaced. When I try to save page layout I get errors because of bad path generated to conf.pagelayout.inc.php. The script pulls up the server root instead of my accounts root.

Warning: fopen(/home/interser/public_html/phpwcms/include/inc_conf/conf.pagelayout.inc.php): failed to open stream: No such file or directory in /home/acunu/public_html/phpwcms/include/inc_lib/general.inc.php on line 658

Warning: Cannot modify header information - headers already sent by (output started at /home/acunu/public_html/phpwcms/include/inc_lib/general.inc.php:658) in /home/acunu/public_html/phpwcms/include/inc_act/act_pagelayout.php on line 145

The rest of the scripts seem to do well with using /phpwcms as the root but pagelayout somehow comes up with a different root.
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

That is bad - I do not know how to handle this. Please ask your provider what to do? Your problem ist that the $_SERVER["DOCUMENT_ROOT"] gives something other back than needed. I have never thougt about such thing. It seems that your phpwcms root path has to be "~acunu/phpwcms" - but then the frontend and maybe some backend things are not available. Do have access via webbrowser to your webpages http://www.mydomain.com/~acunu or do you have to call it like this: http://www.myprovider.com/~acunu

Let me know please and ask your provider what he has done.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply