Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
Rewrite errors and SSL support ??
 
Smith Boswell
Posted: 06 June 2009 07:36 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  5
Joined  2009-06-06

I stumbled upon this tracks installation guide for tracks and became determined to run it on my test server.  Now, I do have tracks up and running.  Usually, I enjoy solving configuration and programming issues without assistance but would now like forum input since tracks is about effective time management to begin with.  Specifically, I think I am experiencing errors with URI rewrites within tracks.  This is my primary question.

Errors Encountered:

deleting contexts or actions fails
dragging contexts fails

Received this error once ...

“Template is missing Missing layout layouts/standard.erb in view path */tracks/app/views:”

# and the file is in the specified directory

My answers to Posting Guidelines questions:

1. Tracks Version:  Tracks 1.7 - Current Stable Version

2. Operating System (OS) Platform: Gnu/Linux - Debian

3. Browser:  Konqueror 3.5.9 (Using KDE 3.5.10)

4. Other relevant information:

Apache Server Version: Apache/2.2.9 (Debian) mod_python/3.3.1 Python/2.5.2 PHP/
  5.2.6-1+lenny3 with Suhosin-Patch Phusion_Passenger/2.2.2

default && default apache sites-enabled / sites-available configuration files disabled

ruby1.8 && passenger && mod_fcgid enabled

Tracks specific:

tracks .htaccess file disabled
# site: “” directive commented out in tracks/config/site.yml

####################### Current httpd-vhosts.conf file ######################

NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>
  ServerAdmin webmaster@localhost
  ServerName http://*.*.com:80 # edited dnsname for post
  DocumentRoot */tracks/public # edited directory info * for post
  ServerSignature On

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.

  LogLevel debug

  ErrorLog “*/tracks_error_log”      # edited directory info * for post
  CustomLog “*/tracks_access_log” common   # edited directory info * for post

#  LoadModule fcgid_module modules/mod_fcgid.so ## Commented Out ## Module Loaded in */mods-enabled ##
#  SocketPath /tmp/fcgidsock
#  SharememPath /tmp/fcgidshm
      DefaultInitEnv RAILS_ENV production
      AddHandler fcgid-script .fcgi

      <Files *.fcgi>
          SetHandler fcgid-script
          Options ExecCGI +FollowSymLinks
      </Files>
#

      <Directory /var/www/tracks/public>
      Options Indexes FollowSymLinks MultiViews
        PassengerEnabled on
        AllowOverride None    
# AllowOverride All ## <—Makes Tracks’s .htaccess file work.
# Other Options are: AuthConfig Indexes Limit, None

      Order allow,deny
      Allow from all
        AddHandler fcgid-script .fcgi

      # You need mod_fcgid version >= 2.1 to support arguments “xxx/dispatch.fcgi” in FCGIWrapper
      FCGIWrapper “/usr/bin/ruby1.8 /var/www/tracks/public/dispatch.fcgi” .fcgi

          RewriteEngine on

      # For better performance replace the dispatcher with the fastcgi one

      RewriteCond %{REQUEST_FILENAME} !-f
#      RewriteRule ^$ index.html [QSA]
#      RewriteRule ^([^.]+)$ $1.html [QSA]
#      RewriteRule ^/?(.*)$ dispatch.fcgi [QSA,L] # Testing
      RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

#      RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
#      RewriteRule ^$ index.html [QSA]
#      RewriteRule ^([^.]+)$ $1.html [QSA]

      </Directory>

</VirtualHost>

#################### End httpd-vhosts.conf #########################


Secondarily, ... I would like to run tracks through https://*:443 but ...

“# SSL name based virtual hosts are not yet supported,” - comment from Apache ports.conf file.

and I am not certain how to configure tracks as an ip based virtual hosts in order to implement ssl.  All of my virtual hosts are name based on my local loopback interface 127.0.0.1.  127.0.1.1 points to debian in the host file (a Gnome requirement) and I use my server for web development.  I am in a home office and my router uses class C addressing 192.168.*.*.

Profile
 
Reinier Balt
Posted: 08 June 2009 07:28 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

why are you trying to use fcgi when you also have passenger installed? Passenger is much easier to configure…

I don’t know about the ssl, I’m not using it myself…

Profile
 
Smith Boswell
Posted: 08 June 2009 11:39 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-06-06

Simply, I do not know whether passenger and fcgi are mutually exclusive for the rewrites.  The first 3 lines of the .htaccess file are suggesting enabling fcgi on Debian if you have it? yes/no?

1 # General Apache options
2 # If you’re on Debian try the following instead of the fastcgi-script line:
3 # AddHandler fcgid-script .fcgi

Either way, if I disable the fcgid module, I still have the same issues with and without the rewrite statements.

Dragging contexts and projects fails.
Deleting projects and actions fails.
The browser also wants to open up the *.js files instead of executing them.

Profile
 
Reinier Balt
Posted: 10 June 2009 07:28 AM   [ Ignore ]   [ # 3 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

if you try running tracks with the build-in webserver, is everything working then? (running script/server -e production from the command line)

Profile
 
Smith Boswell
Posted: 12 June 2009 09:23 PM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-06-06

Using WEBricks, I can log in and that is about it.  CSS currently fails using this server, so I do not have a true front-end user interface to work with to know if other actions (add/delete contexts, etc.) work or not.  Right now, I do not have time to continue troubleshooting tracks but will keep the forum posted on my progress.

Profile
 
Smith Boswell
Posted: 06 July 2009 01:29 AM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-06-06

Update:

I have taken the time to troubleshoot the tracks installation.  I performed a full uninstall of apache and tracks and started from scratch.  Using just the Webricks/Mongrel server, I am able to achieve full tracks functionality under Epiphany & Galeon web browsers.  Using Konqueror, I still receive errors in the handling of the javascript files.  Using Iceweasel, I am not able to login at all and receive this error message: “ActionController::InvalidAuthenticityToken in LoginController#login”

These errors suggest possible browser compatibility/setting & support issues.  I am going to reload Apache now and test functionality using Epiphany and Galeon.

Profile
 
Reinier Balt
Posted: 07 July 2009 07:28 AM   [ Ignore ]   [ # 6 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

I think you should try a clean install of tracks too. I’m using firefox (~iceweasel) and have no problems. Try deleting all tracks related cookies too. I’ve testes myself on Opera, Chrome/Safari (webkit), firefox3 and IE7

Profile
 
   
 
 
‹‹ HOW TO: Install Tracks on Ubuntu with Apache + MySQL      Startup script voor Ubuntu/Debian ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1188 seconds

Atom Feed
RSS 2.0