ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Passenger + apache : Error is coming in browser
I installed chiliproject in centos 6.3.
bundle exec script/server -e production
command, chiliproject loads in the browser properly.
But, when I connect through apache, Error page is seen in the browser. I have attached the error page.
Pls support me to overcome this issue. Ruby on rails, passenger are unknown to me.
Pls ask me in case of any clarification
chili-issue.zip - html file showing the error when chili is connected through apache (7.4 kB)
bundle install in the ChiliProject directory as the user that will run ChiliProject. Depending on your configuration, that might be the owner of the files in the chiliproject directory or another user if specified otherwise in your passenger config.
Thanks for your reply.
root is the user.
Pls find the outputs
[root@fileserver chiliproject]# pwd /home/chiliproject/chiliproject [root@fileserver chiliproject]# ls -l total 580 drwxr-xr-x 7 apache apache 4096 Aug 31 11:05 app drwxr-xr-x 5 apache apache 4096 Sep 14 17:12 config -rwxr-xr-x 1 apache apache 1887 Mar 20 03:24 CONTRIBUTING.md drwxr-xr-x 3 apache apache 4096 Sep 13 04:50 db drwxr-xr-x 2 apache apache 4096 Aug 31 11:05 doc drwxr-xr-x 5 apache apache 4096 Aug 31 11:05 extra drwxr-xr-x 2 apache apache 4096 Aug 31 11:05 files -rwxr-xr-x 1 apache apache 3220 Mar 20 03:24 Gemfile -rwxr-xr-x 1 apache apache 2359 Sep 13 04:26 Gemfile.lock drwxr-xr-x 7 apache apache 4096 Aug 31 11:05 lib drwxr-xr-x 2 apache apache 4096 Sep 13 04:36 log -rw------- 1 root root 514092 Sep 18 10:00 nohup.out drwxr-xr-x 7 apache apache 4096 Aug 31 18:11 public -rwxr-xr-x 1 apache apache 458 Mar 20 03:24 Rakefile -rwxr-xr-x 1 apache apache 1920 Mar 20 03:24 README.rdoc drwxr-xr-x 4 apache apache 4096 Aug 31 11:05 script drwxr-xr-x 8 apache apache 4096 Aug 31 11:05 test drwxr-xr-x 7 apache apache 4096 Sep 13 04:52 tmp drwxr-xr-x 4 apache apache 4096 Mar 20 03:24 vendor [root@fileserver chiliproject]# bundle install Using rake (10.1.0) Using activesupport (2.3.18) Using rack (1.1.6) Using actionpack (2.3.18) Using actionmailer (2.3.18) Using activerecord (2.3.18) Using activeresource (2.3.18) Using rails (2.3.18) Using acts-as-taggable-on (2.1.0) Using coderay (1.0.9) Using fastercsv (1.5.5) Using gravatarify (3.0.0) Using i18n (0.4.2) Using json (1.7.7) Using liquid (2.3.0) Using mysql (2.9.1) Using mysql2 (0.2.20) Using net-ldap (0.3.1) Using pg (0.16.0) Using rdoc (4.0.1) Using rmagick (2.13.2) Using ruby-openid (2.1.8) Using rubytree (0.5.3) Using sqlite3-ruby (1.2.5) Using tzinfo (0.3.37) Using bundler (1.3.5) Your bundle is complete! Gems in the groups test and development were not installed. Use `bundle show [gemname]` to see where a bundled gem is installed. [root@fileserver chiliproject]#
Can I expect any feedback to resolve this issue?
Because, currently I have launched this system in my office with
bundle exec script/server -e production as the webserver. But, It has been mentioned in the documentation that this should not be used for production systems.
Expecting a positive feedback at the earliest
running the system as root is not recommended and causes some problems...
Apache2 NEVER runs as root and NEVER must be run as root.
So when your ChiliProject environment is only installed as root user, your directory and file permissions are probably mixed up and maybe broken, so you'll fail to get passenger running as user "chiliproject".
1. Install CP and assign all it's dirs + files to a separate user and grou, e.g. user "chiliproject" and group "chiliproject"
2. Test your installation (after running "bundle install" etc.) by executing the so called "Webrick" as user "chiliproject" (bundle exec script/server -e production)
3. Install+configure the Apache2 and the Passenger module for user "chiliproject" and group "chiliproject", as described in the Install Wiki
4. Start Apache2 with default rights/user (on Debian it runs as user "www-data") and test the ChiliProject
Following the installation instructions inside the Wiki step by step prevents doing serious errors, like running security sensitive services like CP as full-priviliged user "root".
Please: Don't run any servers/services as root!
PS: Please be kind to others - we are no paid service employees - we do this free of charge in our sparetime. Thanks.
Thanks for your response.
I am sorry if I was not kind in my earlier communications. My intention and objective is to make the great tool work with apache. Nothing else.
Thanks for the support.