login and register links - "Not Found"

281
Defect
cornbread
Jack
3.0
3.0
Install/Upgrade
Closed
Normal
Normal
5 years ago
4 years ago
0

Description

What did you do to cause this? Installed traq-3.0a2 by coping the folder contents to a /traq/ folder off the document root. Ran the installer. After entering database and admin account details, Traq prompted me to copy and paste the database.php file and save on the server in the /traq/system/config/ folder. This was done, and read/write permissions were given to the apache account on this newly created file.

There were no further instructions, so after saving the file on the server I pointed my browser back to http://my.site.com/traq/.

What page were you on? http://my.site.com/traq/

What PHP and MySQL versions do you run? PHP 5.3.3 MySQL 5.0.95 Apache 2.2.3 RHEL 5.5

Describe the defect:

Clicking either the Login or Register links results in an apache Not Found error.

Attachments

Ticket History

5 years and 11 months ago by cornbread

  • Added attachment Screenshot-Traq - Mozilla Firefox.png

5 years and 11 months ago by Jack

Make sure the .htaccess file exists, most likely have to rename the htaccess.txt file.

5 years and 11 months ago by cornbread

I dropped the traq database, removed the database.php file, recursively changed /traq folder/file permissions to apache:apache and went through installation again. This time I got to the end without needing to manually create a file, and was asked to login. Clicking this login link results in a Not Found error (same as before).

5 years and 11 months ago by cornbread

@Jack, I do not see .htaccess.txt in the /traq/ folder.

[[email protected] traq]# ls -la total 124 drwxrwxr-x 5 apache apache 4096 Oct 9 13:34 . drwxr-xr-x 35 cornbread apache 12288 Oct 9 13:34 .. drwxrwxr-x 5 apache apache 4096 Oct 9 13:34 assets -rw-rw-r-- 1 apache apache 35821 Oct 9 13:34 COPYING -rw-rw-r-- 1 apache apache 343 Oct 9 13:34 CREDITS -rw-rw-r-- 1 apache apache 1691 Oct 9 13:34 css.php -rw-rw-r-- 1 apache apache 828 Oct 9 13:34 index.php drwxrwxr-x 3 apache apache 4096 Oct 9 13:34 install -rw-rw-r-- 1 apache apache 1531 Oct 9 13:34 js.php -rw-rw-r-- 1 apache apache 886 Oct 9 13:34 README.md drwxrwxr-x 11 apache apache 4096 Oct 9 13:34 system

5 years and 11 months ago by cornbread

Should this be the .htaccess file?

RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.$ - [NC,L] RewriteRule ^.$ index.php [NC,L]

I pulled that out of an earlier release. It is not currently included in the traq-3.0a2 bundle.

5 years and 11 months ago by cornbread

Went ahead and tested with that .htaccess:

Still getting a not found, but this time handled by the Traq application:

He's dead, Jim! The requested page '/login' couldn't be found.

5 years and 11 months ago by Jack

Try "this one":https://github.com/nirix/traq/blob/master/.htaccess, should work.

5 years and 11 months ago by cornbread

No dice, same error as before:

He's dead, Jim! The requested page '/login' couldn't be found.

Making sure you see that this installation is not in the root folder, it is in a /serverroot/traq folder.

5 years and 11 months ago by Jack

Weird. "Working for me":http://cl.ly/image/2y3m112A2F0E so not quite sure what's going on.

How does the server execute PHP files? PHP-FPM or the classic apache module way?

5 years and 11 months ago by cornbread

apache module. I have a few virtual hosts on this box, including a couple joomla installs that use rewrites like traq.

5 years and 11 months ago by Jack

Here's a perfect example of PHP doing what it does best.

Going to take care of somethings then run some tests, I have a feeling it may have something to do with how it gets the requested URI path.

5 years and 11 months ago by Jack

Try adding print_r($_SERVER); to the index page and pasting the URI/URL related parts.

5 years and 11 months ago by cornbread

Here's the new traq/index.php:

<?php print_r($_SERVER); ?>

Here's the .htaccess:

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L]

I've accessed /trac/index.php from multiple systems including one that hasn't previously accessed this install.

All systems show the same thing: which is the Traq / Projects page. The $_SERVER array is not being printed to screen.

5 years and 11 months ago by Jack

Hmm, try with print_r($_SERVER); exit;.

5 years and 11 months ago by cornbread

I moved the existing index.php to index.php.old. I then created a new index.php with the sole line being print_r($_SERVER);

5 years and 9 months ago by Jack

  • Closed ticket as Closed