Hi Mehmet, I'm sorry I was thinking of RailsBaseURI. Even if you have DocumentRoot pointing at public you can set RailsBaseDir to /. It's not just for enterprise. I can upload some config later if it helps. One other problem I came across was setting PassengerDefaultUser. I believe the default is nobody, who may not have access rights to you app files. I set mine to the same user that apache was running under.
Gordon. On Tue, Dec 16, 2008 at 8:59 AM, Mehmet Soysal <[email protected]> wrote: > > Gordon Pike wrote: > > I don't see your RailsBaseDir in the VirtualHost. It should point to > > the public dir of your rails app. I have CE(2.1.2) running on > > apache2.2 + phusion passenger(2.0.4) with ruby-enterprise version and > > rails(2.1.2) > > > Hi, > I followed this simple example: > http://www.modrails.com/documentation/Users > guide.html#_deploying_to_a_virtual_host_s_root_2<http://www.modrails.com/documentation/Usersguide.html#_deploying_to_a_virtual_host_s_root_2> > > <VirtualHost xxx.xxx.xxx.xxx:80> > ServerName xxx.xxx.de <http://xxx.xxx.de> > DocumentRoot /var/www/htdocs/sites/xxx/public > ErrorLog /var/log/apache2/xxx_error.log > CustomLog /var/log/apache2/xxx_access.log combined > </VirtualHost> > > This root dir of my app is /var/www/htdocs/sites/xxx/ > and with this directive "DocumentRoot /var/www/htdocs/sites/xxx/public" > i thought im pointing to the right public folder. > > RailsBaseDir is not a valid option on the "non-"enterprise phusion module. > > Could you send me parts of your virtualhost config, if it differs from > mine. > > Im a little bit confused what im doing wrong. > > MfG > M.Soysal > > > Gordon Pike > > > > On Mon, Dec 15, 2008 at 5:37 PM, Mehmet Soysal <[email protected] > > <mailto:[email protected]>> wrote: > > > > > > Hi, > > im trying to deploy CE on an apache 2.2 + phusion passenger 2.0.6 > > > > I downloaded the CE 2.2 branch (for rails 2.2.2 installed via gem) > and > > installed it like described in the tutorial. > > If i start the built in webrick server (script/server) everything > > is fine. > > But if i try to load CE +apache+passenger with my Browser i get only > > phusion passenger error message. > > > > I tried to increase debugging level, but all i got is this in apache > > error logfile: > > > > [ pid=12489 file=ApplicationPoolServerExecutable.cpp:223 > > time=12/16/08 01:38:59.571 ]: > > Client 0x648350: SpawnException occured (with error page) > > > > > > > > During installation of passenger everthing was fine, without any > > errors. > > > > My Apache config is pretty simple: > > > > <VirtualHost xxx.xxx.xxx.xxx:80> > > ServerName xxx.xxx.de <http://xxx.xxx.de> > > PassengerLogLevel 9 > > DocumentRoot /var/www/htdocs/sites/xxx/public > > ErrorLog /var/log/apache2/xxx_error.log > > CustomLog /var/log/apache2/xxx_access.log combined > > </VirtualHost> > > > > > > > > Can anyone give me a hint, what is wrong here ? > > > > > > MfG > > M.Soysal > > > > > > > > > > > > > > -- > ************************************************** > mroxx GbR > Soysal Mehmet > Geschäftsleitung > > Stephanienstr. 65 > 76133 Karlsruhe > > fon: (+49) 721 1803523-1 > fax: (+49) 721 1803523-9 > mobil: (+49) 176 21699032 > > email: [email protected] > url: www.mroxx.de > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
