Koozali.org: home of the SME Server

htaccess on SME7

djhomeless

htaccess on SME7
« Reply #15 on: April 03, 2006, 04:22:08 PM »
You don't really need that contrib if all you want to do is enable mod_rewrite.

Just create a template of 90e-smithAccess40ibays in your custom path and enable allowoveride. As I said above, be warned that this will enable allowoveride for all ibays.

Not to rant here, but I don't understand why this was disabled in the first place. Maybe its a security risk for some, but the choice should ultimately be down to the individual sysadmin.

</rant>

my 2 cents,

Geoffrey

Offline slords

  • ****
  • 235
  • +3/-0
htaccess on SME7
« Reply #16 on: April 03, 2006, 09:34:46 PM »
why all this talk of a custom template.  Just set the AllowOverride property of the ibay and update it.

# db accounts setprop wordpress AllowOverride All
# signal-event ibay-modify wordpress

That should be all you need to allow htaccess from an ibay named wordpress.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Pacjack

htaccess on SME7
« Reply #17 on: April 04, 2006, 09:13:52 AM »
Quote from: "slords"
why all this talk of a custom template.  Just set the AllowOverride property of the ibay and update it.

Because CharlieBrady once said:
Quote from: "CharlieBrady"
Using .htaccess is definitely less secure. httpd.conf templates are definitely under admin's control. .htaccess files are not, and could have insecure permissions.

thyeum

htaccess on SME7
« Reply #18 on: October 15, 2006, 12:56:41 AM »
Hi djhomeless,

I've just installed a SME-server box with WordPress, Gallery, and WPG2 and I would like to enable mod_rewrite because all three require it for permalinks.
According to your post it seems easy to do it since you just need to
Quote from: "djhomeless"
create a template of 90e-smithAccess40ibays in your custom path and enable allowoveride.

Unfortunately, I am pretty new at all this, and I have no idea how to do that.
A little help would be greatly appreciated.

Both installations of Wordpress and Gallery are in the Primary ibay.

Thanks,

Mathieu

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
htaccess on SME7
« Reply #19 on: February 25, 2007, 07:51:11 PM »
Hi all im having the same difficulty i need to enable mod_rewrite for wordpress but when i do

Quote
# db accounts setprop wordpress AllowOverride All
# signal-event ibay-modify wordpress


i get 403 errors, i dont understnd what to alter in the template to affect only one ibay but to be honest it would be more use on them all so id like to enable it globally

Offline raem

  • *
  • 3,972
  • +4/-0
htaccess on SME7
« Reply #20 on: February 26, 2007, 05:31:37 AM »
jameswilson

> i get 403 errors

Do you need to use https://....
...

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
htaccess on SME7
« Reply #21 on: February 26, 2007, 12:41:40 PM »
Hi ray no i dont.

Im trying to use .htaccess with mod_rewrite and permalinks with wordpress, i have found with a few rebuilds that if i dont enable the permalinks all is fine, if i enable the permalinks then the urls are requested in the correct way but no content, ie page not found. I assume this is because mod_rewrite isnt rewriting? so i did the above and then things go bad. I get 403 errors all over the ibay. Im assuming its something daft and my limited ability as i have yet to find something sme cant do. Any pointers or help will be great

Thanks Ray

James

Offline russs

  • ***
  • 77
  • +0/-0
htaccess on SME7
« Reply #22 on: March 06, 2007, 05:38:51 PM »
Don't know if anybody is still interested in this but I am trying to get SSL on my KnowledgeTree install on SME 7.
I found this document about making a template for this;

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/htaccess%20configuration%20with%20custom%20templates%20HOWTO%20for%20sme%20server.htm
 
Might be a bit iof an old document now but have a look.
Unfortunately for me, the KnowledgeTree RPM sets it up in the /opt directory so I'm still stuck but though it might help you Guys.

Russ
...

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
htaccess on SME7
« Reply #23 on: March 07, 2007, 11:44:53 AM »
Quote from: "RayMitchell"
jameswilson

> i get 403 errors

Do you need to use https://....


just double checking and with https i still get 'forbidden errors'

im not trying to get ermissions working etc, and i may be well up the wrong tree then, im just trying to gwt wordpress to work with permalinks ie seo url's. Id like to get seo urls accross a few of my ibays but this one is critical for me.

cheers lads

james

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
htaccess on SME7
« Reply #24 on: March 07, 2007, 11:57:06 AM »
Quote from: "russs"
Don't know if anybody is still interested in this but I am trying to get SSL on my KnowledgeTree install on SME 7.
I found this document about making a template for this;

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/htaccess%20configuration%20with%20custom%20templates%20HOWTO%20for%20sme%20server.htm
 
Might be a bit iof an old document now but have a look.
Unfortunately for me, the KnowledgeTree RPM sets it up in the /opt directory so I'm still stuck but though it might help you Guys.

Russ


I have KT3 on SSL

My template..
Code: [Select]

# knowledgetree3
Alias /dms /opt/knowledgetree3
<Directory /opt/knowledgetree3>
    SSLRequireSSL on
    Options -Indexes
    AllowOverride all
    order deny,allow
    deny from all
    allow from all
    Satisfy all
    AddType application/x-httpd-php .php .php3
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
</Directory>




which lives in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf and is called 86dms

If you did a rpm install yours will probably be in /etc/e-smith/templates/etc/httpd/conf/httpd.conf What it will be called I don't know.
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
htaccess on SME7
« Reply #25 on: March 07, 2007, 12:11:07 PM »
Quote from: "jameswilson"
Quote from: "RayMitchell"
jameswilson

> i get 403 errors

Do you need to use https://....


just double checking and with https i still get 'forbidden errors'

im not trying to get ermissions working etc, and i may be well up the wrong tree then, im just trying to gwt wordpress to work with permalinks ie seo url's. Id like to get seo urls accross a few of my ibays but this one is critical for me.

cheers lads

james



Remove any custom template YOU created.
Remove any .htaccess file in the wordpress ibay.

Then..
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
db accounts setprop wordpress AllowOverride All
signal-event ibay-modify wordpress


Does wordpress work ? Naturally it will not have SEO.

I have wordpress hosted elsewhere so don't ask me about server details but my .htaccess contains..
Code: [Select]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


My permalinks look like..
Code: [Select]
http://www.magicwilly.webhostingpal.com/2006/10/04/folly/
Regards,
William

IF I give advise.. It's only if it was me....

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
htaccess on SME7
« Reply #26 on: March 07, 2007, 12:35:09 PM »
william
Thankyou for helping

Wordpress works untill rewrite engine is turned on then i get forbidden errors

Code: [Select]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


if i turn rewrite engine off, wordpress works again

I removed as you said .htaccess files and i have no templates i have added to this server. I assume then something else is mising but alas i have no idea what

Many thanks

James

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
htaccess on SME7
« Reply #27 on: March 07, 2007, 01:15:52 PM »
What I was getting at is with no .htaccess and no custom templates then setting Allowoveride All should not stop wordpress working.

If the above is true than any errors are generated by the syntax of your .htaccess file.

I was not suggesting that you use mine verbatim but to compare it with what you were trying previously. I'm sure RewriteBase / should be more like RewriteBase /ibayname
Regards,
William

IF I give advise.. It's only if it was me....

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
htaccess on SME7
« Reply #28 on: March 07, 2007, 01:20:57 PM »
william you are correct if i remove the .htaccess file then it works, or if i edit and turn rewrite off it works

The htaccess file is automatically generated by wordpress and as it happens is the same as the one my wordpress generated, i didnt copy and paste yours.

But as an excersise, i installed wordpress onto another server (managed isp server ) as a test and it worked first time using the generated htaccess file.
Maybe its not mod-rewrite thats the problem, maybe i need soemthing else

lol but what god only knows!

Thanks again

James

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
htaccess on SME7
« Reply #29 on: March 07, 2007, 01:24:05 PM »
I did a late edit but try RewriteBase /ibayname in your .htaccess

Does the url for your wordpress contain the ibayname at the end ?
Regards,
William

IF I give advise.. It's only if it was me....