Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: ber on March 28, 2009, 12:37:23 AM
-
Hi all I ran a command relelated to some issues we were having for a website that Ive been hosting and now the website is inaccessible externally- its a sales driven website and is super urgent- backside kicking screwup!! :shock: :shock: :shock:
We had issue with a website which was transferred to our server- got most of it sorted out but cant get the admin side sorted out so that the client can dial in and amend the contents.- that part is not running, I came across a page in the contribs list related to htaccess- I ran the command and now the site is inaccessible.
link to the webpage in http://wiki.contribs.org/Useful_Commands
ran the command related to htaccess:
db accounts setprop IBAYNAME AllowOverride All
signal-event ibay-modify IBAYNAME
can anyone advise how to undo the above command.
Please please!!!!
sorry for the over dramatization - I dripped blood to get this site up and running last week. :P
-
Information on db variables can be found at http://wiki.contribs.org/DB_Variables_Configuration (http://wiki.contribs.org/DB_Variables_Configuration)
I have never head your problem but I think you can delprop that variable and signal-event ibay-modify ibayname, but I would try to reset it to the defaults as shown in the documentation referenced above.
Maybe someone with greater knowledge in the db could help you better.
-
ber
Come on now, if you are going to use db commands, and you do not really understand what you are doing, is that a good idea ?
At the very least, learn how to use db commands and the syntax, rather than just reading commands by rote from a wiki page.
To display the syntax, at a command prompt type
db
Then apply the information, ie which part is a key, which part is a property, which part is a value etc, to the command you are intending to use, so you at least learn what is what.
Then you stand a good chance of knowing how to undo a command, which is very easy to do.
The command syntax needed is:
/sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...
Applying that to your situation just do:
db accounts delprop IBAYNAME AllowOverride
signal-event ibay-modify IBAYNAME
I assume you have replaced IBAYNAME with the actual ibay name.
Before doing the above, confirm the current settings:
db accounts show IBAYNAME
(should display a property for AllowOverride)
Then run the above delprop commands
Then check again to see if the database has changed as required.
db accounts show IBAYNAME
(should no longer display a property for AllowOverride)
When the property is deleted, the system defaults (as per code in templates) will apply, so usually no further default specific setting is required.
-
Mary, i agree with you, in a state of desperation is probably not the best time to make decisions....I take my paddy whacks with gladness and try and make informed decisions later.
Saying that will you continue to advise regarding this problem- without sounding like a real ignoramus...
Thanks :smile:
-
Mary,
your help is greatly appreciated- all sorted as per advise:
login as: root
root@192.168.0.254's password:
Last login: Sat Mar 28 12:49:37 2009 from 192.168.0.153
[root@server ~]# db
usage:
/sbin/e-smith/db dbfile keys
/sbin/e-smith/db dbfile print [key]
/sbin/e-smith/db dbfile show [key]
/sbin/e-smith/db dbfile get key
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
/sbin/e-smith/db dbfile setdefault key type [prop1 val1] [prop2 val2] ...
/sbin/e-smith/db dbfile delete key
/sbin/e-smith/db dbfile printtype [key]
/sbin/e-smith/db dbfile gettype key
/sbin/e-smith/db dbfile settype key type
/sbin/e-smith/db dbfile printprop key [prop1] [prop2] [prop3] ...
/sbin/e-smith/db dbfile getprop key prop
/sbin/e-smith/db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...
/sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...
[root@server ~]# db accounts show hs
hs=ibay
AllowOverride=All
CgiBin=enabled
Gid=5032
Group=health_sport
Name=Health and Sport
PasswordSet=yes
PublicAccess=global
Uid=5032
UserAccess=wr-group-rd-group
[root@server ~]# db accounts delprop hs AllowOverride
[root@server ~]# signal-event ibay-modify hs
[root@server ~]# db accounts show hs
hs=ibay
CgiBin=enabled
Gid=5032
Group=health_sport
Name=Health and Sport
PasswordSet=yes
PublicAccess=global
Uid=5032
UserAccess=wr-group-rd-group
[root@server ~]#
Ill do more research rather than just blindly taking easy uninformed decisions.
Have a great weekend.
Regards John