Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
I am getting the 404 error when trying to call the index page. Like described in the FAQ, I followed the steps, removed the ‘#’ etc. And yet, it won’t work. The weird thing is that I have worked with TXP for quite some time now, have various versions installed on different MySQL databases and this issue did not occur.
Now I have installed version 4.0.2 with a prefix and not in the root dir and get the 404 problem when calling the default page via “view site” but not when typing in the full URL.
The thing I don’t get is why this is not working, but all my other installs (from 4-4.0.1) are working just fine?
The htaccess file is identical in all installations.
Does anyone know what might be wrong?
Thanks,
Maleika
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
Can you please post your diagnostics?
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
Hi Sencer,
thanks for responding. :)
PS: I have now made an installation without prefix. Same problem as before.
Below is my diagnostics file:
Textpattern version: 4.0.2 (r1076)
last_update: 2005-11-01 21:56:16/2005-11-01 20:46:36
Document root: /is/htdocs/xxxxx/www.xxxxxx.net
$path_to_site: /is/htdocs/xxxxx/www.xxxxxx.net/www.mysite.com/txp
Textpattern path: /is/htdocs/xxxxx/www.xxxxxx.net/www.mysite.com/txp/textpattern
Permanent link mode: section_id_title
open_basedir: /tmp/:/bin/:/usr/:/is/htdocs/xxxxx/:/proc
upload_tmp_dir: /tmp
Temp folder: /tmp
Site URL: www.mysite.com/txp
PHP version: 4.4.0
server_time: 2005-11-01 22:57:47
MySQL: 4.0.24_Debian-4.dotdeb.0-log
Locale: C
Server: Apache/1.3.31 (Unix) FrontPage/5.0.2.2635 PHP/4.4.0
Apache version: Apache/1.3.31 (Unix) FrontPage/5.0.2.2635 PHP/4.4.0
.htaccess file contents:
————————————
DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule>#php_value register_globals 0
————————————
Last edited by Maleika E.A. (2005-11-01 22:01:47)
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
and get the 404 problem when calling the default page via “view site” but not when typing in the full URL.
What is the link for “view site” and what is the link you are typing in manually?
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
> Sencer wrote:
> bq. and get the 404 problem when calling the default page via “view site” but not when typing in the full URL.
Hi Sencer,
The manual link that works is this (as described in the FAQ):
http://www.mysite.com/txp/index.php
The [view site] link is:
http://www.mysite.com/txp/
Which outputs the 404 error.
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
Just for a comparison, here is the diagnostics file for a running txp installation that works like a charm on the same server, albeit a different MySQL db and URL and running version 4.0.1. Another difference is that this installation is located in the root dir.
Textpattern version: 4.0.1 (r1064)
last_update: 2005-10-29 22:24:50/2005-10-29 22:24:06
Document root: /is/htdocs/xxxxx/www.xxxxx.net
$path_to_site: /is/htdocs/xxxxx/www.xxxxx.net/www.mysite.com
Textpattern path: /is/htdocs/xxxxx/www.xxxxx.net/www.mysite.com/textpattern
Permanent link mode: section_title
open_basedir: /tmp/:/bin/:/usr/:/is/htdocs/xxxxx/:/proc
upload_tmp_dir: /tmp
Temp folder: /tmp
Site URL: www.mysite.com
PHP version: 4.4.0
server_time: 2005-11-01 22:56:51
MySQL: 4.0.24_Debian-4.dotdeb.0-log
Locale: en_GB
Server: Apache/1.3.31 (Unix) FrontPage/5.0.2.2635 PHP/4.4.0
Apache version: Apache/1.3.31 (Unix) FrontPage/5.0.2.2635 PHP/4.4.0
- DirectoryIndex index.php index.html
- Options +FollowSymLinks
- RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) /index.php </IfModule> ————————————Last edited by Maleika E.A. (2005-11-01 22:30:39)
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
If your server is apache, you have to use the “DirectoryIndey index.php” bit to let the webserver know what he should be displaying when you make a request for a directory.
If this http://textpattern.com/faq/104/404-error-unless-i-use-indexphp doesn’t work for you, it’s possible that .htaccess files are not allowed. You should get in touch with your host. This is not a textpattern issue.
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
> Sencer wrote:
> If your server is apache, you have to use the “DirectoryIndey index.php” bit to let the webserver know what he should be displaying when you make a request for a directory.
If this http://textpattern.com/faq/104/404-error-unless-i-use-indexphp doesn’t work for you, it’s possible that .htaccess files are not allowed. You should get in touch with your host. This is not a textpattern issue.
.htaccess files are and have always been allowed. TXP works for me and has always worked for me with the use of htaccess files. Like I said, I am running various txp sites, all have htaccess files and work perfectly.
This is rather strange …
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
Did you read that link? The diagnostics you posted has the line still commented. Remove the # from the beginning of the line.
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
> Sencer wrote:
> Did you read that link? The diagnostics you posted has the line still commented. Remove the # from the beginning of the line.
Yes, I read the link.
See first post with diagnostics, the installation that does not work. It has the # removed.
The second post is the diagnostics of a perfectly working installation on the same server, same settings etc. and it does not even need the # removed and still works perfectly fine.
These are two different installations. The first post contains the diagnostics of version 4.0.2 with the # removed in the .htaccess file (it did not work with or without it).
The second post contains the diagnostics info of a running 4.0.1 txp installation that works fine and here the htaccess does not have the # removed and does not need to be removed as it works properly.
Last edited by Maleika E.A. (2005-11-01 22:40:10)
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
So… you’re posting the diagnsotics of the page that works, so that I can troubleshoot the page that doesn’t work? I think you lost me somewhere between all those different installations…
Offline
Re: Error 404 with TXP 4.0.2 only [yes, I have read the FAQ]
I found out the solution.
For anyone who is experiencing the same issue when installing textpattern in a sub directory and does not think about paths right away (like I did), the htaccess file needs /subdirectory/index.php in order to work (at least on my server):
The condition: TXP is installed in a subdirectory
The error: 404 error when calling the page via the txp admin panel [view site]
The solution:
.htaccess file contents: <br />
————————————<br />
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
< IfModule mod_rewrite.c > RewriteEngine On<br /> RewriteCond %{REQUEST_FILENAME} -f [OR]<br /> RewriteCond %{REQUEST_FILENAME} -d<br /> RewriteRule ^(.+) – [PT,L]<br /> RewriteRule ^(.) /subdirectory/index.php*
Last edited by Maleika E.A. (2005-11-01 23:13:34)
Offline