Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: arnoldob on May 13, 2006, 11:31:30 PM
-
I was having trouble getting Wordpress to obey .htaccess rules in the primary ibay. I looked about the forums and found this as a method:
# /sbin/e-smith/db accounts setprop Primary AllowOverride All
# /sbin/e-smith/signal-event ibay-modify Primary
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
# service httpd-e-smith sigusr1
That gets me a 403 Forbidden now. What do I need to do to set it back to default?
-
OK I figured out that:
db accounts setprop Primary AllowOverride None
signal-event ibay-modify Primary
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith sigusr1
Reset things so that I could access the Primary ibay once again.
-
OK I figured out that:
db accounts setprop Primary AllowOverride None
signal-event ibay-modify Primary
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith sigusr1
Only the first two lines there are required. httpd.conf is expanded and httpd-e-smith reloaded already in the ibay-modify event:
$ ls /etc/e-smith/events/ibay-modify/templates2expand/etc/httpd/conf/httpd.conf
$ ls /etc/e-smith/events/ibay-modify/services2adjust/httpd-e-smith
Paul
-
It seems to be a problem to get .htaccess to work in the primary ibay. I added
AllowOverride All
to a 85DefaultAccess fragment in the custom-templates tree and expanded it and restarted http-e-smith, and made the primary ibay inacessible again. So what's the secret sauce or is it simply a bad idea?
-
Seems to me you might have a problem with the .htaccess file. Why dont you list it so we can see what its trying to do.
-
The odd thing here is that I have htaccess running in two other ibays, no problem. I was running wordpress 2.02 and gallery 2.1.1 seperately. I was trying out WPG2 2.0 plugin for wordpress that integrates gallery nicely and wraps all the output in the same php headers, footers and css for a nice consistent look.
I noticed that the permalinks in wordpress, which are controlled by htaccess never worked right in the Primary ibay, in other ibays no problem. Is there something different bout the Primay that would make setting up htaccess different?