Koozali.org: home of the SME Server
Obsolete Releases => SME Server 6.x => Topic started by: mjc on June 05, 2006, 02:43:03 PM
-
Hello to all. I'm a newbie to this forum. Could you pardon my probably obvious question, but its driving me crazy.
I have a version 6 SME server that I use as a web server. Intermittently the external access to our home web site goes down, only accessible on the local network.
The problem appears to be in the httpd.conf.
This is what I find:-
#------------------------------------------------------------
# Primary ibay directories (Primary )
#------------------------------------------------------------
<Directory /home/e-smith/files/ibays/Primary/html>
Options Indexes
Options +Includes
AllowOverride None
order deny,allow
deny from all
allow from 127.0.0.1 192.168.100.0/255.255.255.0
</Directory>
If I change the 2nd bottom line to Allow from all.
It all works again.
But with no input at all from me a few days later the server goes back to local access only.
WHY????
Any input gratefully received.
-
How did you edit the file?
If you done this via the correct templating way then I don't know what can be wrong, my guess is you edited the file directly
-
As far as I can tell, the template seemed to to be correct even if the site was down. I admit to correct the problem I editted the httpd.conf file directly as I had done with other Apache servers.
The bit that I can't work out is that I do nothing at all to the server configuration, not even look at the server manager and the website goes from working to not working.
Would you be so kind to, very briefly, tell me how to edit the template for httpd.conf so I can fix this annoying problem?
-
What does the following command output:
db accounts getprop Primary PublicAccess
This should be 'global' so that your Primary site is worldwide accessible like you are trying to do (manually). If you would like it to be wordlwide readable again you should issue the following commands:db accounts setprop Primary PublicAccess global
expand-template /etc/httpd/conf/httpd.conf
signal-event reboot
This way the access level will be modified in the internal SME Server database, the new configuration will be incorporated in the httpd configuration file and a reboot will reload the httpd daemon so it reflects the changes. (You can also restart httpd instead of rebooting the server but unfortunately I don't remember the command for that).
-
(You can also restart httpd instead of rebooting the server but unfortunately I don't remember the command for that).
From somewhere deep in the back of my head:service httpd restart
How simple can it be? :-)
-
db command does not do anything on my system.
This is what came up.
bash: db: command not found
-
service httpd restart[/code]
No don't use "service" command do the full path i.e
/etc/rc7.d/S**http-e-smith restart
and/or
/etc/rc7.d/S**http-admin restart
Where ** is a number.
Also the "db" command is only available as a "system" command where as all over version's of SME you have to type the full path i.e
/sbin/e-smith/db accounts getprop Primary PublicAccess
-
byte & cactus
To correct this for the record:
> /etc/rc7.d/S**http-e-smith restart
> and/or
> /etc/rc7.d/S**http-admin restart
should be
/etc/rc7.d/S**httpd-e-smith restart
and/or
/etc/rc7.d/S**httpd-admin restart
Where ** is a number.
You can also correctly use
/etc/init.d/httpd status
httpd (pid 23233 23232 23231 23230 23229 23228 23227 23226 23225 23224 23223 12576 2559) is running...
/etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
/etc/init.d/httpd-admin status
httpd-admin (pid 23233 2559) is running...
/etc/init.d/httpd-admin restart
Shutting down http-admin: [ OK ]
Starting httpd-admin: [ OK ]
-
mjc
> WHY????
For a better understanding of how the templating system works in sme server, see the Documentation link at the left, and read the Basic dcumentation re Architecture overview & Customising.
Simplistically, the db files are read by the templates, which when expanded write values to the configuration files.
-
byte & cactus
/etc/rc7.d/S**httpd-e-smith restart
and/or
/etc/rc7.d/S**httpd-admin restart
Where ** is a number.
Yes sorry typing to quick here...Thanks Ray
-
Thanks to the correspondents. Looks like I have a fair bit of reading to do!
Regards to all.
-
db command does not do anything on my system.
This is what came up.
bash: db: command not found
Please use:
/sbin/e-smith/db accounts show Primary