Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Support for Traq 3.x
User avatar
jeronimo
Newbie
Posts: 9
Joined: Sun Feb 09, 2014 11:06 am
Location: Japan

Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by jeronimo » Sun Feb 09, 2014 11:30 am

After clean install of 3.4.2, I get the "He's dead, Jim!" error.
 
 
Can't figure this one out.
mod-rewrite is enabled, htaccess.txt is now .htaccess
when I click on 'login' or 'register' I get 'He's dead, Jim' error.
 
I get 'He's dead, Jim' error also when I try to login at '/username/traq/admin'
error: "He's dead, Jim The requested page '/username/traq/login' couldn't be found."
 
I expect this is a mod-rewrite issue. But, I can't be sure.
I've been tweaking the .htaccess
 
any advice?
Last edited by jeronimo on Sun Feb 09, 2014 11:59 am, edited 1 time in total.

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by Jack » Sun Feb 09, 2014 12:27 pm

What software, including the version, is the server running?

User avatar
jeronimo
Newbie
Posts: 9
Joined: Sun Feb 09, 2014 11:06 am
Location: Japan

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by jeronimo » Sun Feb 09, 2014 1:10 pm

Hi Jack,
Thanks for the reply. 
 
Apache/2.2.3 (Red Hat)
PHP 5.3.
MySQL 5.0.95

User avatar
jeronimo
Newbie
Posts: 9
Joined: Sun Feb 09, 2014 11:06 am
Location: Japan

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by jeronimo » Sun Feb 09, 2014 1:44 pm

all running on Red Hat Enterprise Linux Server release 5.8 (Tikanga)

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by Jack » Sun Feb 09, 2014 3:11 pm

Would you mind running this in the same directory as Traq's "index.php" with the original ".htaccess" and either posting or private messaging me the output?

Code: Select all

<pre>
<?php
foreach ($_SERVER as $key => $value) {
    if (!preg_match("/^(HTTP_|SERVER_|REQUEST_TIME|REMOTE_PORT|REMOTE_ADDR|PATH)/", $key))    {
        echo "{$key} => {$value}" . PHP_EOL;
    }
}
What this code will do is output some information about the request such as the request path, script path, query string and a few other things.
Last edited by Jack on Sun Feb 09, 2014 3:33 pm, edited 1 time in total.

User avatar
jeronimo
Newbie
Posts: 9
Joined: Sun Feb 09, 2014 11:06 am
Location: Japan

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by jeronimo » Sun Feb 09, 2014 7:46 pm

Code: Select all

Here's the output

DOCUMENT_ROOT => /var/www/html
SCRIPT_FILENAME => /var/www/html/username/traq/test_traq.php
GATEWAY_INTERFACE => CGI/1.1
REQUEST_METHOD => GET
QUERY_STRING => 
REQUEST_URI => /username/traq/test_traq.php
SCRIPT_NAME => /username/traq/test_traq.php
PHP_SELF => /username/traq/test_traq.php

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by Jack » Sun Feb 09, 2014 8:08 pm

Looks good. Does Apache's "httpd.conf" have "AllowOverride" set to "All" or "None" for the document root?

User avatar
jeronimo
Newbie
Posts: 9
Joined: Sun Feb 09, 2014 11:06 am
Location: Japan

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by jeronimo » Sun Feb 09, 2014 8:30 pm

It appears to be set to "All"
 
DOCUMENT_ROOT => /var/www/html
Here's a snippet from httpd.conf

Code: Select all

<Directory "/var/www/html">

                     .   .   .
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride All

                     .   .   .

</Directory>

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by Jack » Mon Feb 10, 2014 3:52 pm

What variants of the ".htaccess" file have you tried so far?

User avatar
jeronimo
Newbie
Posts: 9
Joined: Sun Feb 09, 2014 11:06 am
Location: Japan

Re: Post-Install Error: He's dead, Jim! The requested page '/username/traq/register' couldn't be found.

Post by jeronimo » Mon Feb 10, 2014 7:15 pm

I don't recall what I tried.  I'm not really familiar with apache mod_rewrite scripts.  I'm reading up about it, using this as a possible learning experience, a trial and error approach.  I've also been manually changing the paths in bootstrap.php
 
again, just a trial and error... I could be bark up the wrong tree here.

Code: Select all

// Define the paths needed

define("SYSPATH", dirname(__FILE__) . '/avalon');

define("APPPATH", dirname(__FILE__) . '/traq');

define("DOCROOT", dirname(dirname(__FILE__)));
I've double checked to see that mod_rewrite is actually working correctly on the server.  A simple example worked as expected.  So, it's functioning...
At this point all I can think of is a clean install of Traq.  In the next few days I'll be installing a PHP framework "CakePHP".  Cake also uses mod_rewrite for 'routes' etc.  I'll see how that goes. 
 
Thanks again Jack, for the assistance.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest