Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
Where is my CSS ??? !!
 
jtdintulsa
Posted: 03 June 2009 03:59 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2009-06-01

Just installed Tracks and it works except it does not have any Style sheets ..Just black and white text.

<VirtualHost 10.2.111.1:80>
  DocumentRoot /var/www/tracks/public
  ServerName tracks.dud.net
  ServerSignature On
  LogLevel warn
  ErrorLog /var/log/apache2/error.log
  CustomLog /var/log/apache2/access.log combined
  AddHandler fcgid-script .fcgi
  DefaultInitEnv RAILS_ENV production

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

  <Directory /var/www/tracks/public>
      RewriteEngine on
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^/(.*) dispatch.fcgi [QSA,L]
</Directory>
</VirtualHost>
###
config/environment.rb

config.action_controller.relative_url_root = “tracks.dud.net/tracks/public”

Profile
 
fireferum
Posted: 03 June 2009 10:10 PM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  2
Joined  2009-06-03

You need to access tracks in the form of http://www.example.com/tracks. If you don’t add the tracks.conf to the etc/httpd/conf.d folder you will only see text.

Profile
 
Reinier Balt
Posted: 04 June 2009 06:53 AM   [ Ignore ]   [ # 2 ]  
Sr. Member
RankRankRankRank
Total Posts:  578
Joined  2006-10-05

furthermore, your relative root is wrong. I think it should be just “/tracks”

Profile
 
jtdintulsa
Posted: 04 June 2009 02:19 PM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  2
Joined  2009-06-01

Hmm .. Made the changes you recommended .. Same results.

File : config/environments.rb

config.action_controller.relative_url_root = “/tracks”

File: /etc/apache2/sites-available/tracks

<VirtualHost 10.2.111.238:80>
  DocumentRoot /var/www/tracks/public/
  ServerName tracks.mcld.net
  ServerSignature On
  LogLevel debug
  ErrorLog /var/log/apache2/error.log
  CustomLog /var/log/apache2/access.log combined
  AddHandler fcgid-script .fcgi
  DefaultInitEnv RAILS_ENV production

  <Files *.fcgi>


  SetHandler fcgid-script
  Options ExecCGI +FollowSymLinks
  </Files>

  <Directory /var/www/tracks/public>
      RewriteEngine on
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^/(.*) dispatch.fcgi [QSA,L]
</Directory>
</VirtualHost>

Image Attachments  Screenshot-TRACKS::Login - Mozilla Firefox.png
Click thumbnail to see full-size image
Profile
 
Reinier Balt
Posted: 05 June 2009 06:53 AM   [ Ignore ]   [ # 4 ]  
Sr. Member
RankRankRankRank
Total Posts:  578
Joined  2006-10-05

I’m not using fcgi myself…

IIRC, there was something about a conflict between fcgi and the .htaccess in /public. Perhaps you can rename it to see if this helps…

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

I was able to force css not to work when I was playing around with the tracks config files.
When I changed the setting in time_zone: “your_setting_here” statement in the */tracks/config/site.yml file, css quit functioning. 

The output from rake time:zones:local first output is a GMT (Greenwitch Mean Time) setting, so I attempted to prepend this to the rake output of my local time zone.  CSS stopped working until I reset
this back to my primary local time zone setting.

So, I would suggest rechecking all those *.yml files that tracks first asked you to set up.

Also, the subdir: “your_setting_here” statement in site.yml caused a site parsing error on my system and tracks only worked after I commented this whole statement out.

“I’m not using fcgi myself…
IIRC, there was something about a conflict between fcgi and the .htaccess in /public. Perhaps you can rename it to see if this helps…”

Renier ... As for fcgi & .htaccess together,

I was able to make this work after using the statement: AllowOverride All in my httpd-vhosts.conf file.

Currently, I have AllowOverride None as my statement. This is an Apache Security Tips suggestion.

I am not using the .htaccess file at all and have migrated all of its settings directly into the apache httpd-vhosts.conf file.  I moved quickly away from the use of .htaccess after reading this:

RewriteHtaccessIgnored

May this help tracks implementors.

Profile
 
   
 
 
‹‹ Apache & fcgid problems      Following c00i90wn’s guide, problem with rake db_schema_import ››

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

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

Atom Feed
RSS 2.0