FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon5.gif  Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33409] Thu, 31 August 2006 04:42 Go to next message
digimer is currently offline  digimer   Canada
Messages: 6
Registered: August 2006
Karma: 0
Junior Member
Hi all,

I am having a problem installing FUDforum... On step 2 of the installer where it asks for the paths and URL I am getting the error:

Quote:

Your WWW_ROOT does not correspond with the SERVER_ROOT path you have specified. (unable to retrive: http://forum.mizu-bu.org/bbs/WWW_ROOT_CHECK, on disk as: /clients/websites/forum.mizu-bu.org/html/bbs/WWW_ROOT_CHECK, received data: w/error: failed to open stream: Connection timed out


The part that confuses me is that while the script is waiting (before timing out) I can see the file: [/clients/websites/forum.mizu-bu.org/html/bbs/WWW_ROOT_CHECK] file and if I manually go to the URL in question: [http://forum.mizu-bu.org/bbs/] I can see the file: [WWW_ROOT_CHECK] listed, so I know the URL and the server paths are okay.

For reference:

Server Root: /clients/websites/forum.mizu-bu.org/html/bbs/
-=-=-
tomoe:/clients/websites/forum.mizu-bu.org/html/bbs# ls -lah .
total 1.5M
drwxrwxrwx  2 www-data www-data 4.0K 2006-08-31 01:32 .
drwxr-xr-x  3 root     root     4.0K 2006-08-31 00:22 ..
-rw-r--r--  1 www-data www-data  18K 2006-08-31 00:22 COPYING
-rw-r--r--  1 www-data www-data 2.5K 2006-08-31 00:22 CREDITS
-rw-r--r--  1 www-data www-data 1.4M 2006-08-31 00:22 fudforum_archive
-rw-rw-rw-  1 www-data www-data  46K 2006-08-31 00:22 install.php
-rw-r--r--  1 www-data www-data 2.2K 2006-08-31 00:22 README
-rw-------  1 www-data www-data 5.3K 2006-08-31 00:22 uninstall.php


Forum Data Root: /clients/websites/forum.mizu-bu.org/cgi-bin/bbs/
-=-=-
tomoe:/clients/websites/forum.mizu-bu.org/html/bbs# ls -lah ../../cgi-bin/bbs
total 8.0K
drwxrwxrwx  2 www-data www-data 4.0K 2006-08-31 00:25 .
drwxr-xr-x  4 root     root     4.0K 2006-08-31 00:19 ..


Forum WWW Root: http://forum.mizu-bu.org/bbs/
-=-=-
url: [http://forum.mizu-bu.org/bbs/]
Index of /bbs

Icon  Name                    Last modified      Size  Description[DIR] Parent Directory                             -   
[   ] COPYING                 31-Aug-2006 00:22   18K  
[   ] CREDITS                 31-Aug-2006 00:22  2.5K  
[   ] README                  31-Aug-2006 00:22  2.1K  
[   ] WWW_ROOT_CHECK          31-Aug-2006 01:39   10   
[   ] fudforum_archive        31-Aug-2006 00:22  1.4M  
[   ] install.php             31-Aug-2006 00:22   45K  
[   ] uninstall.php           31-Aug-2006 00:22  5.3K  

Apache/2.0.54 (Debian GNU/Linux) DAV/2 SVN/1.1.4 PHP/4.3.10-16 mod_perl/1.999.21 Perl/v5.8.7 Server at forum.mizu-bu.org Port 80


One thing I find odd is that when the script runs step 2 it changes the directory mask on the two server directories to 711. I am not sure if this has anythig to do with it but I tried chmod'ing them back to 777 while the script was waiting without success.

I noticed that the contents of: [WWW_ROOT_CHECK] is a simple unix timestamp and when the install script times out it appeads a similar timestamp to the end of the script name. Is this also normal behaviour?

Thanks in advance!

Digimer

PS - In case anyone tries, I have disabled this URL until I fix the problem. Very Happy
Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33413 is a reply to message #33409] Thu, 31 August 2006 13:23 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Some ISPs make it so that the server cannot send requests to itself. In those cases the simplest solution is to temporarily disable allow_url_fopen, which will allow you to bypass this check in the installer.

FUDforum Core Developer
Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33416 is a reply to message #33413] Thu, 31 August 2006 13:38 Go to previous messageGo to next message
digimer is currently offline  digimer   Canada
Messages: 6
Registered: August 2006
Karma: 0
Junior Member
Heh, so the request isn't sent from my client PC? The server is NAT'ed so if it was trying to call itself it would indeed fail. Though given that the installer is being run from my machine here at home I would be surprised. How exactly is this test run?

I'd look at the code but my background is perl... PHP is new to me. Very Happy

Thanks! I'll try that work-around now (once I find where to change that).

Digimer
Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33417 is a reply to message #33416] Thu, 31 August 2006 13:58 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The request for that file is sent from the installer, not your PC.

FUDforum Core Developer
Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33419 is a reply to message #33417] Thu, 31 August 2006 14:00 Go to previous messageGo to next message
digimer is currently offline  digimer   Canada
Messages: 6
Registered: August 2006
Karma: 0
Junior Member
Does the request go to localhost/127.0.0.1 or to the URL given? I'm going to go out on a limb now and guess the later, in which case yeah, that would be the problem. Razz

Thaks!!

Digimer (<- running off now to try that work-around!)

Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33420 is a reply to message #33419] Thu, 31 August 2006 14:00 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The request goes to whatever URL you specified as the forum's WWW path.


FUDforum Core Developer
Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33422 is a reply to message #33420] Thu, 31 August 2006 14:45 Go to previous messageGo to next message
digimer is currently offline  digimer   Canada
Messages: 6
Registered: August 2006
Karma: 0
Junior Member
That worked, but can I ask another question?

I am trying to install using PostgreSQL and I can't seem to get the syntax right for the 'Host' field.

Postgres is set:
postgresql.conf:unix_socket_directory = '/var/run/postgresql'


inside which is (I assume) the socket:
tomoe:/etc/postgresql/8.1/main# ls -lah /var/run/postgresql/
total 12K
drwxrwsr-x   2 postgres postgres 4.0K 2006-07-26 13:19 .
drwxr-xr-x  16 root     root     4.0K 2006-08-27 06:47 ..
srwxrwxrwx   1 postgres postgres    0 2006-08-31 11:25 .s.PGSQL.5432
-rw-------   1 postgres postgres   34 2006-08-31 11:25 .s.PGSQL.5432.lock


I have tried: [:/var/run/postgresql/.s.PGSQL.5432], which according to the example in the manual seems to be right. Of course I could be completely daft and missing the obvious... Razz

'5432' is the port it's set to listen on, and for testing I also tried: [http://localhost:5432] with no more luck.

Sorry for the hassles and thanks again!

Digimer

Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33423 is a reply to message #33422] Thu, 31 August 2006 15:19 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
When specifying unix socket for postgresql you just need the path to directory where the socket is located. As far as localhost, there is no need for the port.

FUDforum Core Developer
Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33425 is a reply to message #33423] Thu, 31 August 2006 15:29 Go to previous messageGo to next message
digimer is currently offline  digimer   Canada
Messages: 6
Registered: August 2006
Karma: 0
Junior Member
So I should enter: [:/var/run/postgresql/] then, right? If so, any ideas why that wouldn't work? From the shell as the user specified I can connect to psql and create/drop the DB. I've also tried adding the user that Apache runs as and specifying that as the user but still no luck.

I've tried entering with and without the colon in the hosts section but again, no luck. In case it matters, there is no password for the user in question so I leave that field blank. Maybe there is something else I should mention that might be part of the problem?

Digimer
Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33426 is a reply to message #33409] Thu, 31 August 2006 15:33 Go to previous messageGo to next message
digimer is currently offline  digimer   Canada
Messages: 6
Registered: August 2006
Karma: 0
Junior Member
Meant to mention: here is the errors I am getting:

Warning: pg_connect(): Cannot create new link. Too many open links (0) in /clients/websites/forum.mizu-bu.org/html/bbs/install.php on line 118

Warning: pg_query(): supplied argument is not a valid PostgreSQL link resource in /clients/websites/forum.mizu-bu.org/html/bbs/install.php on line 170


Above the text field for host I am getting this error:

Failed to establish database connection to /var/run/postgresql


Also, in 'pg_hba.conf', I've set connections for the 'www-data' user (Apache's user and the user I tell the installer to use) I've set connections to the database I want created to 'trust', to simplify things. Of course I reloaded PgSQL after to make sure it was loaded.

Digimer
Re: Trouble installing (WWW_ROOT does not correspond with the SERVER_ROOT) [message #33450 is a reply to message #33426] Fri, 01 September 2006 20:10 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
"Too many open links" seems fairly self explanatory error. Can you connect from a small PHP script just by using pg_connect() ?

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: upgrade
Next Topic: Trouble Deleting User from eGroupware
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 20:44:00 GMT 2024

Total time taken to generate the page: 0.03828 seconds