Koozali.org: home of the SME Server

SiteX access problem

Offline Paperguides

  • ****
  • 118
  • +0/-0
SiteX access problem
« on: November 21, 2009, 10:43:40 AM »
I have been trying to build a SiteX based system for a service club I belong to for some time now. Having got my spare server back from a customer, changed ISP and finally finished all the DIY, I rebuild the system SME server from the CD and applied all the outstanding patches.  I then loaded SiteX as per the contrib and I have hit problems with access.

The domain name is registered at 123-reg and I initially had a problem because I used the 123-reg web site redirection. i.e.  www.westforest41club.org.uk was redirected to http://217.xxx.xxx.173/sitex. This does not work!  When the DNS was set to the IP address using  www.westforest41club.org.uk displays the SME site "under construction" page and  www.westforest41club.org.uk/sitex  gives the SiteX front page.  I can now login.  However when I try access the site I get a 404 error "The requested URL /page.php was not found on this server."

Where do I go from here?

Thanks

Tony

...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SiteX access problem
« Reply #1 on: November 21, 2009, 12:39:34 PM »
However when I try access the site I get a 404 error "The requested URL /page.php was not found on this server."

Where do I go from here?
Try to find out what is happening behind the scenes in your webserver by analysing the error_log and access_log files in /var/log/httpd/ or view then through the server-manager View Logfiles panel. A clue to what must be going wrong at the time of access should be in there. If you do not understand it you can post the relevant fragment here (not the whole logfile please, you can select by using the time entry) and perhaps we can help you.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Paperguides

  • ****
  • 118
  • +0/-0
Re: SiteX access problem
« Reply #2 on: November 21, 2009, 09:41:09 PM »
Hi Having looked at the  the error_log and access_log files I'm not much wiser.  It would appear to me that SiteX is expecting the pages to be off the root directory. Hence the 404 error.

The logs are:
[Sat Nov 21 12:36:37 2009] [warn] RSA server certificate CommonName (CN) `westforest.westforest41club.org.uk' does NOT match server name!?
[Sat Nov 21 12:36:37 2009] [notice] Digest: generating secret for digest authentication ...
[Sat Nov 21 12:36:37 2009] [notice] Digest: done
[Sat Nov 21 12:36:38 2009] [warn] RSA server certificate CommonName (CN) `westforest.westforest41club.org.uk' does NOT match server name!?
[Sat Nov 21 12:36:38 2009] [notice] Apache configured -- resuming normal operations
[Sat Nov 21 14:17:44 2009] [error] [client 192.168.200.14] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Sat Nov 21 14:18:55 2009] [error] [client 192.168.200.14] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Sat Nov 21 14:19:47 2009] [error] [client 192.168.200.14] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Sat Nov 21 14:22:14 2009] [error] [client 192.168.200.14] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Sat Nov 21 14:22:22 2009] [error] [client 192.168.200.14] File does not exist: /home/e-smith/files/ibays/Primary/html/includes, referer: http://www.westforest41club.org.uk/sitex/
[client 192.168.200.14] script '/home/e-smith/files/ibays/Primary/html/page.php' not found or unable to stat, referer: http://www.westforest41club.org.uk/sitex/
[Sat Nov 21 14:22:40 2009] [error] [client 192.168.200.14] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico

And:

westforest41club.org.uk 192.168.200.14 - - [21/Nov/2009:20:37:13 +0000] "GET /sitex/ HTTP/1.1" 200 17432 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"
westforest41club.org.uk 192.168.200.14 - - [21/Nov/2009:20:37:17 +0000] "GET /page.php?pageid=1 HTTP/1.1" 404 206 "http://www.westforest41club.org.uk/sitex/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"
westforest41club.org.uk 192.168.200.14 - - [21/Nov/2009:20:37:20 +0000] "GET /sitex/ HTTP/1.1" 200 17432 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"
westforest41club.org.uk 192.168.200.14 - - [21/Nov/2009:20:37:24 +0000] "GET /guestbook.php HTTP/1.1" 404 211 "http://www.westforest41club.org.uk/sitex/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"
westforest41club.org.uk 192.168.200.14 - - [21/Nov/2009:20:37:27 +0000] "GET /sitex/ HTTP/1.1" 200 17432 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"
westforest41club.org.uk 192.168.200.14 - - [21/Nov/2009:20:37:36 +0000] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"

I am access this locally but get the same results accessing remotely.

Tony
...

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: SiteX access problem
« Reply #3 on: November 22, 2009, 03:19:01 AM »
Paperguides

Quote
When the DNS was set to the IP address using  www.westforest41club.org.uk displays the SME site "under construction" page

You should remove the default index.html file from the ibay html folder. This gets used in preference to other "index" files when the ibays is accessed from web.

Quote
However when I try access the site I get a 404 error "The requested URL /page.php was not found on this server."

Perhaps you have isues with apache PHPBaseDir setting
See
http://wiki.contribs.org/DB_Variables_Configuration#Apache_server_ibay_specific_.28httpd-e-smith.29

Did you do these steps in the Wiki article (and for that matter all the other setup steps) ?

Finally, you must go to the Site Preferences administration panel and set the FQDN from which your site will be accessed, e.g. http://www.mysmedomain.com/sitex. By default, SiteX enters your unqualified servername as the URL, e.g. http://server/sitex, making external resolution by visitors impossible.

Once SiteX is fully configured, run the following command from the SME Server shell to delete the setup files:

signal-event sitex-post-upgrade
« Last Edit: November 22, 2009, 03:23:26 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: SiteX access problem
« Reply #4 on: November 22, 2009, 03:33:39 AM »
Paperguides

I see from the wiki the site installs to /opt so forget my comments about ibays.
My guess is you have not configured sitex correctly ie to know where to find it's files eg /opt/.... ??

Re-run the setup
http://www.westforest41club.org.uk/sitex/login.php
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.