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.
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).
@Jack, I do not see .htaccess.txt in the /traq/ folder.
[cornbread@ursula 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
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.
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.
Try "this one":https://github.com/nirix/traq/blob/master/.htaccess, should work.
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.
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?
apache module. I have a few virtual hosts on this box, including a couple joomla installs that use rewrites like traq.
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.
Try adding print_r($_SERVER);
to the index page and pasting the URI/URL related parts.
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.
Hmm, try with print_r($_SERVER); exit;
.
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);
Make sure the
.htaccess
file exists, most likely have to rename thehtaccess.txt
file.