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

Title: trying to get htaceess to work for WP and Gallery
Post 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:

Code: [Select]
# /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?
Title: trying to get htaceess to work for WP and Gallery
Post by: arnoldob on May 13, 2006, 11:38:50 PM
OK I figured out that:

Code: [Select]
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.
Title: trying to get htaceess to work for WP and Gallery
Post by: pkn on May 14, 2006, 12:26:17 AM
Quote from: "arnoldob"
OK I figured out that:

Code: [Select]
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
Title: trying to get htaceess to work for WP and Gallery
Post by: arnoldob on May 14, 2006, 01:54:28 AM
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?
Title: trying to get htaceess to work for WP and Gallery
Post by: duncan on May 14, 2006, 05:34:27 AM
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.
Title: trying to get htaceess to work for WP and Gallery
Post by: arnoldob on May 14, 2006, 04:56:36 PM
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?