[VPS] Railo not working with new Plesk sites

I just bought your new Railo VPS Package from Kickass VPS.

However when I add a site in plesk and test it, Railo is not configured for the new site.

I tried restarting railo.

I looked at the tomcart server.xml config.

It looks like you are using mod_cfml to manage the new sites.

You can look at my site at http://agentloft.com - it says:
HTTP Status 500 - path [/var/www/vhosts/agentloft.com/httpdocs/WEB-INF/railo] is invalid

Then I noticed that there is no web-inf folder in the site directory. Railo is not generating it.

Is there something I am missing? There where no additional instructions on the sales page or on the welcome email.

Please advise.

Thanks!

I just looked and the error message I see is saying you need to change a read/write permission.

Hi Tim

We have a dedicated group for these questions.
https://groups.google.com/a/ortussolutions.com/forum/#!forum/kavps

But indeed creating sites is part of it. The template should add write permissions to the site. I will verify the vps template again but this is the same setup we use for all our clients.

Anyways to fix this is really easy.

Log in to plesk and go to your site confit. Then click on Dhheheheheheuru

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Sorry, My daughter clicked send.

Anyways, go to file manager, click on the file permissions for the HTTPDOCS. Make sure, group write is turned on. Then it will work as normal. Sometimes, you might need to restart railo for mod_cfml to pickup permission changes

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

“Then click on Dhheheheheheuru”

haha, I have 2 boys, I can empathize :slight_smile:

Yep, was definitely a permissions issue. Fixed.

When/if you update the template, can you give me instructions for updating mine?

Thanks!

One more thing. When trying to run:

It returns an empty query. Does the ubuntu user railo-cf need more permissions to list a directory?

Also, I checked case sensitivity and everything, the directory is there and has directories within it.

Please advise.

Thanks!

I am not in my computer so will look later for the Path of the template.

It should be in /var/www/vhosts

As for the listing I am not sure. I would have to check with you. However remember you gave group permissions so the user does have acces. Else it would fail with a permission error.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

There is an index.cfm in the root with the following code:

Of course there are several files but none are getting listed.

You can see the result at:
http://agentloft.com/index.cfm

I think I’ve tried everything that I know of. Many deadend searches, tests, etc.

It’s probably really simple but I’m lost on this.

Let me know if you can take a look.

Thanks!

What are the permissions on the actual container directory? Even if you have read permissions for the files in the directory, you need execute permissions on the container directory to list its contents.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

How are you uploading the files?

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

@Brad the httpdocs, plugins and all plugin sub dirs have full permissions:
rwx rwx rwx

@Luis - initially I extracted the git repo zip and now I am uploading via ftp.

If you do things as root, then the owner is different and will not appear. The owner and group used must be the one setup for ftp. Linux is all about security and ownerships for security purposes.

You can manually change this via the chown commands, just look at what the user and group are for the site. Each site has a different user

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

All of the files have "agentloft" set as the user/owner. This was setup and
assigned by plesk.

I even tried setting the owner to "cf-railo", didn't work so I switched it
back.

Can you guys have KA-VPS spin up one of your vps so you can figure out why
cfdirectory isn't working with your setup, or I can email you my login
info. I'm about to give up but I really want use your vps.

Btw, this isn't my first vps, I manage a few others that don't have this
issue.

Thanks!

I can take a look for you Tim. Send me your credentials to lmajano@ortussolutions.com

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Thanks to Luis, it has been figured out. I will go ahead and repost the solution for others.

Luis:

I found several problems:

  1. The vhosts folder must be root:root, I am guess ion you changed that one
  2. Your group was wrong, did you change it to psasb?
    I have no idea what that is? I changed it back to the default psaserv for the the domain (agent loft.com) directory, and all the files within it must be psacln
    However, after changing that, I was still getting nothing. Then I opened the Application.cfc and commented out the cfwheels functions:
Then everything went to normal and directories displaying. So I am not sure what in the world wheels is doing to mess-up the “/“ mapping.

Me:

“Then click on Dhheheheheheuru”

Just made my Monday morning so great :slight_smile:

+1

That was hilarious.

Jason Durham