Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-03-25 10:04:56

mttw
Member
From: The Netherlands
Registered: 2005-03-12
Posts: 26

(mt)MediaTemple and 1.0rc3

Is there anyone who has Textpattern � 1.0rc3 working with a (mt)MediaTemple ss acount? I can’t get I working. I still get “Forbidden You don’t have permission to access / on this server.” When I delete the .htaccess file everything works fine. The helpdesk told me that I can use the Rewrite Engine and Allowoverride is also working. What could be the problem??

Textpattern version: 1.0rc3
Document root: /xxx/xxx/xxx/xxx/xxx/www/html
$path_to_site: /xxx/xxx/xxx/xxx/xxx/www/html/xxx.xxx.com
Textpattern path: /xxx/xxx/xxx/xxx/xxx/www/html/xxx.xxx.com/textpattern
Permanent link mode: id_title
Temp folder: /xxx/xxx/xxx/xxx/xxx/www/html/xxx.xxx.com/images
Site URL: xxx.xxx.com
PHP version: 4.3.10
Register globals: 1
Magic quotes: 1/0
Locale: en_GB.UTF-8
Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_perl/1.26 PHP/4.3.10 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b
Apache version: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_perl/1.26 PHP/4.3.10 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b

Pre-flight check:
————————————
.htaccess file is missing
————————————

Offline

#2 2005-04-12 08:10:33

mttw
Member
From: The Netherlands
Registered: 2005-03-12
Posts: 26

Re: (mt)MediaTemple and 1.0rc3

Nobody? Please can anyone help me out. When I remove the .htaccess file everything looks fine but is it???

Offline

#3 2005-04-12 16:59:55

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: (mt)MediaTemple and 1.0rc3

Select high detail diagnostics, and look for “Apache modules”. If mod_rewrite is not in the list, your host doesn’t support clean URLs.


Alex

Offline

#4 2005-04-13 08:15:30

mttw
Member
From: The Netherlands
Registered: 2005-03-12
Posts: 26

Re: (mt)MediaTemple and 1.0rc3

This is an article in the Knowledge Base of MediaTemple. Could is be the same problem that I experience? If so, how could I solve this problem and how should my .htaccess file should look

SUMMARY:

Part or all of a web site generates 403 errors after enabling dynamic templates.

DETAILS:

How to recreate:
Log into movable type.
Click on the “Templates” link for any blog that is setup.
Under “Build Options”, select either “Build Only Archive Templates Dynamically” or “Set Each Template’s Build Options Separately” and then click save.

Ramifications:
Every page below the base directory of the blog generates a 403 error page. If the base of the blog is the DocumentRoot of the site, every attempt to view a page on this site results in this error.  This includes attempts to access /movabletype/mt.cgi.

Cause:
When dynamic templates are enabled, Movable Type puts a .htaccess file in the root of the blog.  This .htaccess sets up some mod_rewrite rules that are intended to make the dynamic templates to work.  However, for mod_rewrite to work, the FollowSymlinks option must be enabled.  This option is not enabled by default on (mt) Media Temple’s shared servers and is not explicitly turned on via the .htaccess file.

Short-term Solution:
If dynamic templates are to be used, you can modify the .htaccess file created by Movable Type.  Change “Options -Indexes” to read “Options -Indexes +FollowSymlinks”.

Long-term Solution: Six Apart has been contacted with the details of this bug.  We are waiting for a code update to address this issue.

Offline

#5 2005-04-13 16:46:00

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: (mt)MediaTemple and 1.0rc3

I could be wrong, but I think using Options in .htaccess will cause a 503 error on many hosts. Meaning that we probably can’t put this in the default .htaccess file.


Alex

Offline

#6 2005-04-14 08:12:40

mttw
Member
From: The Netherlands
Registered: 2005-03-12
Posts: 26

Re: (mt)MediaTemple and 1.0rc3

This is what my /var/log/httpd/error_log says…..

[Wed Apr 13 01:39:04 2005] [error] [client ] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:

My host told me that there is no way to turn it. Programming is not my kind of thing, I’m a designer, but know i’m using TXP without the .htacces file and everything works fine. Pre-flight gives no errors back.

- Is it unsafe to use TXP without the .htaccess file?
- And is there an other way to use clean URL’s?

Offline

#7 2005-04-27 07:26:57

mttw
Member
From: The Netherlands
Registered: 2005-03-12
Posts: 26

Re: (mt)MediaTemple and 1.0rc3

Okay after long email contact with the helpdesk of (mt)MediaTemple Clean URL’s are working now. This is the way to do it… add this snip of code to the top of your .htaccess file…Options +FollowSymlinks.

Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php

Now place the .htacces file in the root directory of your site and NOT in a sub-domain.

/var/www/html/ place here the .htaccess file
and NOT
/var/www/html/sub-domain/

Offline

#8 2005-05-25 06:14:46

3rdMARTINI
New Member
Registered: 2005-05-25
Posts: 5

Re: (mt)MediaTemple and 1.0rc3

What if your blog is on a subdomain on a (mt) (ss) site?

I tried adding a RewriteBase to the .htaccess but that didn’t work. My www domain was OK, but then my subdomain that contains my TextPattern site gave an HTTP 500 error with the addition of

RewriteBase /blog.3rdmartini.com

to it.

Does the Rewrite base need to be the full physical location of the directory?

Last edited by 3rdMARTINI (2005-05-25 06:43:59)

Offline

#9 2005-05-25 06:54:12

3rdMARTINI
New Member
Registered: 2005-05-25
Posts: 5

Re: (mt)MediaTemple and 1.0rc3

Actually, here’s what (mt) support said to use:

Options FollowSymlinks
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php

rewrite is on by default on (ss) systems. However, my clean URLs still aren’t working. The rules above give me 404 errors when I try to access them via the clean URL.

Last edited by 3rdMARTINI (2005-05-25 06:57:47)

Offline

#10 2005-05-25 06:59:02

brian.zerangue
Member
Registered: 2005-02-15
Posts: 62

Re: (mt)MediaTemple and 1.0rc3

ACTUALLY, it should be this… I have some accounts on MediaTemple and the following works without error.

Options -Indexes +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php

Offline

#11 2005-05-25 07:13:35

3rdMARTINI
New Member
Registered: 2005-05-25
Posts: 5

Re: (mt)MediaTemple and 1.0rc3

but does it work within a subdomain? I just tried this and still get a 404.

Offline

#12 2005-05-25 17:23:36

brian.zerangue
Member
Registered: 2005-02-15
Posts: 62

Re: (mt)MediaTemple and 1.0rc3

the .htaccess file needs to be in the html directory of the primary domain…

remove the .htaccess file from the subdomain directory….

I hope that makes sense…

Offline

Board footer

Powered by FluxBB