Koozali.org: home of the SME Server

Webserver Issue

Offline devtay

  • *
  • 145
  • +0/-0
Webserver Issue
« on: July 12, 2007, 11:39:07 PM »
I don't think this is a bug, I think I screwed up something.

First, my webserver is up and running. I have SME 7.1.3 configured as a server only. Everything talks to the internet and I can serve the site. My issue is updating content.

I have two different ibays for the same site. One is the live site in Primary ibay and the other is the development site in websitetest ibay. My plan was to use the domains panel to switch back and forth as needed between the two ibays for my primary site. For example, test the development version by switching the source ibay for the primary domain and vice versa.

I read through a lot of the issues with creating domains, checking status of httpd-admin and httpd-e-smith, etc, but none of the issues seem to apply to me. My issue is on either of the ibays/sites, when I make a change, it doesn't happen. For example, I have a set of pdf files that are stored under /html/pdf/. When I update one, the old item is still served. I can delete the file and the file is still served. The same thing happens with updating html content.

I have tried to start/stop/restart the httpd-admin and httpd-e-smith services by using the svc -, -d, -u switches as well as the /etc/init.d/.. route. I have even been playing around with the dnscache and tinydns services with no joy on either one. I have also been trying the signal-event ibay-modify ibayname command as well as the signal-event domain-modify ibayname command. Nothing seems to be working. I also looked at the error and admin logs for httpd. On the client side, I cleared the cache and restarted using both IE and Firefox. I have looked at the files with chmod and chown and verified read/write for each group and owner being www.

I recall reading that creating a domain can take some time and to be patient, but I am not creating, just modifying content. Does content fall under the same thing or am I just missing something very easy?
You can't stop what's coming. It ain't all waiting on you.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Webserver Issue
« Reply #1 on: July 13, 2007, 01:30:47 AM »
devtay

Clicking Refresh button is not enough, use Ctrl Refresh (F5) and similar for Firefox.

The server also has a cache, search for commands to clear it or install the squid cache manager panel which has a function to clear the servers cache.
...

Offline devtay

  • *
  • 145
  • +0/-0
Re: Webserver Issue
« Reply #2 on: July 13, 2007, 03:23:27 AM »
Quote from: "RayMitchell"
devtay

Clicking Refresh button is not enough, use Ctrl Refresh (F5) and similar for Firefox.


Ok, but I cleared the cache through Tools>Options>Advanced>Network>Cache>Clear Now. I don't remember now if I hit refresh or CTRL+F5. I'll give it a shot next time.

Quote from: "RayMitchell"

The server also has a cache, search for commands to clear it or install the squid cache manager panel which has a function to clear the servers cache.


I have disabled squid so I didn't think of checking that. Does the fact that I disabled it have any bearing on this option? I will look up information on squid to see what I can find. It makes sense that the pages are still cached somewhere though (as I can delete the file and it's stills served). Thanks for the pointers.
You can't stop what's coming. It ain't all waiting on you.

pkn

Re: Webserver Issue
« Reply #3 on: July 13, 2007, 03:53:58 PM »
Quote from: "devtay"

[...]
First, my webserver is up and running. I have SME 7.1.3 configured as a server only. Everything talks to the internet and I can serve the site.
[...]


This sounds like you have your SME Server connected directly to the internet in server-only mode.  That's to be avoided.  See the admin docs for more on server-only mode.
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter5#Option_3:_Server-only_mode

  Paul

Offline devtay

  • *
  • 145
  • +0/-0
Webserver Issue - Update - Resolved
« Reply #4 on: July 13, 2007, 03:58:24 PM »
Ray,

Let me update on my prior post. I thought squid was disabled, but it wasn't. Just like you said, squid was caching the website keeping me from seeing my updates. Just in case someone else has this issue (it is found on the forums, I just didn't look for the right thing) I am pasting a link to the one I used for SME Server 7.

http://forums.contribs.org/index.php?topic=11077.0

Short Version:

# squid service stop
# echo "" > /var/spool/squid/swap.state
# squid service start

Thanks for the help with pulling my head of of my....
You can't stop what's coming. It ain't all waiting on you.

Offline devtay

  • *
  • 145
  • +0/-0
Re: Webserver Issue
« Reply #5 on: July 13, 2007, 07:56:48 PM »
Quote from: "pkn"
Quote from: "devtay"

[...]
First, my webserver is up and running. I have SME 7.1.3 configured as a server only. Everything talks to the internet and I can serve the site.
[...]


This sounds like you have your SME Server connected directly to the internet in server-only mode.  That's to be avoided.  See the admin docs for more on server-only mode.
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter5#Option_3:_Server-only_mode

  Paul


Paul,

You are right. I originally had the server behind our firewall but was having too much trouble with getting email to the box reliably. After looking at the options, I didn't see one that would technically fit. If I configured it for server/gateway, I would have trouble with the clients connecting to the server because they would be on a different network. I did not read this section you sent to me and I'm starting to get worried about it now. What would you recommend I do in this instance? (not to hijack this thread)

Devlin
You can't stop what's coming. It ain't all waiting on you.

Offline mmccarn

  • *
  • 2,657
  • +10/-0
Webserver Issue
« Reply #6 on: July 14, 2007, 02:00:33 PM »
Quote from: "devtay"
What would you recommend I do in this instance? (not to hijack this thread)
We'd need to know more about what problems you had with the firewall...

If you can't fix those problems, you could set up your SME as server/gateway with the WAN connected to the internet and the LAN connected to your local network:
Code: [Select]
   Internet
    |      |
firewall  SME
    |      |
  Switch   |
    | |    |
    | +----+
    |
Workstations
Since I presume your local workstations already work, you will need to turn off the DHCP server on the SME box, and make sure that the DNS server used by your workstations returns the local IP address of your SME (or configure all workstations to access the SME box using its internal IP address)

Since your SME is not the default gateway for your workstations you will not be using the built-in squid proxy or smtp proxy.

Offline devtay

  • *
  • 145
  • +0/-0
Webserver Issue
« Reply #7 on: July 15, 2007, 07:38:21 PM »
Quote from: "mmccarn"
Quote from: "devtay"
What would you recommend I do in this instance? (not to hijack this thread)
We'd need to know more about what problems you had with the firewall...

If you can't fix those problems, you could set up your SME as server/gateway with the WAN connected to the internet and the LAN connected to your local network:
Code: [Select]
   Internet
    |      |
firewall  SME
    |      |
  Switch   |
    | |    |
    | +----+
    |
Workstations
Since I presume your local workstations already work, you will need to turn off the DHCP server on the SME box, and make sure that the DNS server used by your workstations returns the local IP address of your SME (or configure all workstations to access the SME box using its internal IP address)

Since your SME is not the default gateway for your workstations you will not be using the built-in squid proxy or smtp proxy.


Thanks mmccarn. The firewall issue is more of a problem with the guy that maintains it. We have a Firebox and a consultant who put it in. He will not give me the password to get into it, so I am about ready to unplug it and send it back to him.

I can see where things got screwed up. Instead of reconfiguring the server, I just left it and changed the local ip from a private addy to my public one. I do have two nic's in this server, so I should have no problem doing what you suggested. I used to have this server in my DNS with a local address, now it shows the public one. All I need to do is reconfigure the server and update my local DNS. I do use Dansguardian in my network, but it is on a different server. We thought it would be too much of a load on one server to be the webserver, mail server and proxy server. So, we split it up between two servers. Thanks for the help.
You can't stop what's coming. It ain't all waiting on you.