Hi Mr Hassan,
In my dedicated server i've: (obiusly RoR and mongrel already
installed & running fine):
1- gem install passenger
2- passenger-install-apache2-module
here i got 3 errors:
a- "Apache 2 development headers were not detected by the script."
To fixed this i just create a symbolic link as follows: /usr/sbin/
apxs' to '/usr/local/apache/bin/apxs
b- "error: Compiling and installing Apache 2 module...cd /usr/lib/ruby/
gems/1.8/gems/passenger-2.0.3 rake clean apache2................"
I fixed this by: yum install apr-devel
c- "/usr/local/apache/include/apr_file_info.h:200: error: 'apr_ino_t'
does not name a type ..."
i fixed this by: export APR_CONFIG=/usr/local/apache/bin/apr-1-config
After fixing that 3 errors i re-run the installer by:
passenger-install-apache2-module
and installation was successfull.
3- i edited my http.conf file located at: pico /usr/local/apache/conf/
httpd.conf
4- i added the lines and save, so my httpd.conf file look like:
...
...
...
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/
passenger-2.0.3/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3
PassengerRuby /usr/bin/ruby
<VirtualHost 69.73.160.174:80 *>
ServerName www.mydomain.com
DocumentRoot /home/user/public_html/railsapp/public
</VirtualHost>
5-then i restart apeche by using:
/etc/init.d/httpd restart
6- I opened a browser and put the same url a puted in the httpd.conf
file, this is:
http://www.mydomain.com
at this point i should see my "railsapp" rails application, but what i
see is my normal web root.
Do i have any misconfiguration/error/ something???
Regards,
Mohammed
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---