Re: [gitorious] Newbie configuration question

108 views
Skip to first unread message

Federico Don

unread,
Jul 12, 2012, 1:46:15 PM7/12/12
to gito...@googlegroups.com
Hello,

you could try view on /var/log/httpd/error_log

I configured my gitorious followed this howto, could you check Apache?

/etc/init.d/httpd configtest

Regards,

2012/7/12 Benjamin Lieb <ben...@gmail.com>
This should be easy, I followed all the steps from  http://famousphil.com/blog/2011/06/installing-gitorious-on-centos-5-6-x64/

but when I go to the website, it displays the apache welcome page.  I can view the 500.html error pages in the browser, so I know I have the apache directory configured correctly.  Where do I go to see a log to tell me what's wrong?

--
To post to this group, send email to gito...@googlegroups.com
To unsubscribe from this group, send email to
gitorious+...@googlegroups.com

Benjamin Lieb

unread,
Jul 12, 2012, 1:56:34 PM7/12/12
to gito...@googlegroups.com
the configtest returns ok... error log shows missing resources like

gitorious/public/stylesheets/gts-common.css

and

gitorious/public/javascripts/lib/all.js

I'm guessing this is something with the Passenger module.  I configured it in apache with these lines:

   LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/passenger-3.0.13/ext/apache2/mod_passenger.so
   PassengerRoot /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/passenger-3.0.13
   PassengerRuby /opt/ruby-enterprise-1.8.7-2011.03/bin/ruby

I noticed that the version was higher on Passenger than in the demo... could that be something?
Regards,

2012/7/12 Benjamin Lieb <ben...@gmail.com>

Federico Don

unread,
Jul 12, 2012, 2:02:37 PM7/12/12
to gito...@googlegroups.com
You need this config on /etc/httpd/conf/httpd.conf if you have Passenger 3.0.12:

LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/passenger-3.0.12/ext/apache2/mod_passenger.so
   PassengerRoot /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/passenger-3.0.12
   PassengerRuby /opt/ruby-enterprise-1.8.7-2011.03/bin/ruby

You can try check this with: 

#passenger --version
Phusion Passenger version 3.0.12

"Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.

and you need check the path:

ls /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/*

2012/7/12 Benjamin Lieb <ben...@gmail.com>

Benjamin Lieb

unread,
Jul 12, 2012, 2:10:03 PM7/12/12
to gito...@googlegroups.com
I checked, it works fine with passenger 3.0.13

so, my /about and /contact links both give 404 errors... I assume this is still some kind of config issue.
2012/7/12 Benjamin Lieb <ben...@gmail.com>

Federico Don

unread,
Jul 12, 2012, 2:23:16 PM7/12/12
to gito...@googlegroups.com
Could you paste /etc/httpd/conf/host.conf please?

regards,

2012/7/12 Benjamin Lieb <ben...@gmail.com>

Benjamin Lieb

unread,
Jul 12, 2012, 2:37:42 PM7/12/12
to gito...@googlegroups.com
#enable ~user home directories.
<Directory /home/*/public_html>
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
 
NameVirtualHost *:80
 
<VirtualHost *:80>
        ServerName kmcrheldev.unx.mycompany.com 
        ServerAdmin ben....@mycompany.com
        DocumentRoot /var/www
        ErrorLog  /var/www/error.log
        CustomLog /var/www/access.log combined
</VirtualHost>
 
<VirtualHost *:80>
        ServerName oriongit.na.mycompany.com 
        ServerAdmin ben....@mycompany.com
        DocumentRoot /home/git/gitorious/public
        XSendFile on  
        XSendFileAllowAbove on 
        ErrorLog  /var/www/errorgit.log
        CustomLog /var/www/accessgit.log combined
#customlog is good for awstats software
        <Directory /home/git/gitorious/public>
          AllowOverride all
          Options -MultiViews
        </Directory>
</VirtualHost>
2012/7/12 Benjamin Lieb <ben...@gmail.com>

Federico Don

unread,
Jul 12, 2012, 2:44:15 PM7/12/12
to gito...@googlegroups.com
Try with this=

#enable ~user home directories.
<Directory /home/*/public_html>
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
 
NameVirtualHost *:80
 
#<VirtualHost *:80>
#       ServerName kmcrheldev.unx.mycompany.com 
#        ServerAdmin ben....@mycompany.com
#        DocumentRoot /var/www
#        ErrorLog  /var/www/error.log
#        CustomLog /var/www/access.log combined
#</VirtualHost>
 
<VirtualHost *:80>
        ServerName oriongit.na.mycompany.com 
        ServerAdmin ben....@mycompany.com
        DocumentRoot /home/git/gitorious/public
        XSendFile on  
        XSendFileAllowAbove on 
        ErrorLog  /var/www/errorgit.log
        CustomLog /var/www/accessgit.log combined
#customlog is good for awstats software
        <Directory /home/git/gitorious/public>
          AllowOverride all
          Options -MultiViews
        </Directory>
</VirtualHost>

2012/7/12 Benjamin Lieb <ben...@gmail.com>

Benjamin Lieb

unread,
Jul 12, 2012, 2:48:29 PM7/12/12
to gito...@googlegroups.com
Thanks for all the help.

I did try that, but the same thing occurs...
2012/7/12 Benjamin Lieb <ben...@gmail.com>

Benjamin Lieb

unread,
Jul 13, 2012, 8:57:41 AM7/13/12
to gito...@googlegroups.com
it looks like the public/ directory is not setup correctly.  I dont seem to have a config/ directory in there that should have the ruby configuration?
Reply all
Reply to author
Forward
0 new messages