View Full Version : Problems with Ruby Web Applications
macuna
21st August 2007, 02:51 PM
Hi guys, Im recently updated my Plesk version to 8.2 because this version suport Ruby on Rails, fcgid,etc, etc.
I followed step by step the SWSoft documentation in the next link http://download1.swsoft.com/Plesk/Plesk8.2/Doc/plesk-8.2-unix-administrators-guide/37435.htm.
But no working for me, in my web application I see next 404 error message.
Not Found
The requested URL /public/ was not found on this server.
Apache/2.0.54 (Fedora) Server at domain.com Port 80
And in my log the same error
File does not exist: /var/www/vhosts/domain.com/httpdocs/public
Can anybody tell me what is the problem ?
Thanks!
HostingGuy
23rd August 2007, 05:32 AM
First step would be to verify that /var/www/vhosts/domain.com/httpdocs/public exists and has the proper permissions and ownership.
macuna
23rd August 2007, 10:51 AM
Hi HostingGuy, thanks for you answer.
About the httpdocs/public folder, that don't exists the directory is in httpdocs/your_application/public.
The problem is that I followed step by step the SWSoft documentation http://download1.swsoft.com/Plesk/Plesk8.2/Doc/plesk-8.2-unix-administrators-guide/37435.htm.
And didn't working and I tried a lot of times.
Thanks again.
HostingGuy
23rd August 2007, 04:02 PM
Wow, those are horrible instructions. I especially like this part.
Upload the application files to the htdocs/your_application directory.
Create a file with name .htaccess in this directory[...]
Save the file.
Remove the file your_application/public/.htaccess
lol so why create the file at all if you are only going to delete it? Did I miss something there?
RevMagi
31st October 2007, 12:03 AM
Hello guys,
First off, I am still having issues myself as well. But lets clarify the create/delete .htaccess issue. They want you to ceate the .htaccess file they specified in the instructions and place that in your Applications folder, the your_application. The .htaccess file they are wanting you to remove is the .htaccess fine in the public folder of your application. I hope this clears this up.
As for what I am doing myself since I have admin access to ssh, I am actually adjusing my web dir from httpdocs to httpdocs/public in a vhost.conf and vhost_ssl.conf file. I am also not putting in an application folder. This is not getting me the
Application error
Rails application failed to start properly
Error.
From what I am reading this means the path is incorrect in the settings. The instructions tell us to change the shebang to #!/usr/bin/ruby
Half the battle is checking to see it is actually there. I am using Plesk in a VPS, have not checked a dedicated server but I found all of Ruby files to be in /opt/ruby/bin.
I have since created sym links but I am unfortunately still getting the same error message.
I will try to post more as I get further.
eugenevdm
29th May 2008, 07:21 AM
Have you got an update on this? We are also trying to follow the instructions on Parallel's web site but not getting anywhere.
jahsh420
8th July 2008, 04:35 PM
Fix is in this thread per their support:
http://forum.swsoft.com/showthread.php?t=53746&highlight=ruby
vBulletin® v3.6.12, Copyright ©2000-2008, Jelsoft Enterprises Ltd.