Skip to main content
February 22, 2011
Question

stuck in vhost setup. have setup and working up to connection.

  • February 22, 2011
  • 2 replies
  • 486 views

Hello,

Hope you maybe can help me.

I have started the vhost setup. I have cpanel on the server and I added the domain and it resolves to

the hosting account just fine pull up www.domain.com and goes to server.

I added the www.domain.com vhost. I pointed the application dir to /home/domain/public_html/applications/

I copied live over to applications dir. I setup user and pass for the virtual host login.

I can login to that server admin area. Now where I am stuck is how do I get www.domain.com to actuall point to

that virtual host.

When I use www.domain.com to try to make a connection it connects to the default virtual host and not its own.

Do I need to change something in the dns or in server or adapter file. I am confused at this point.

Any help would be greatly appreciated I have been working on gettng this all setup for days.

    This topic has been closed for replies.

    2 replies

    February 22, 2011

    ok this part is fixed. but still having permissions issue.

    February 22, 2011

    Ok I think this has to be a dns issue as I created another vhost with a different domain this time I didn't add an account

    in cpanel. I just used cpanel to create a dns zone for the second domain and just has a entry for secondomain.com to ip.

    And that one works. I would like to get it working with cpanel so I can have all the services of that with the streaming also.

    Is there a way to accomplish this?

    In the first domain that is fully setup in cpanel there is an a entry for domain.com to the ip so its the same as the working

    one so I am not quite sure why it wont work.

    February 22, 2011

    Ok I got more figured out its a permissions issue. If I move the application directory out of the public_html

    and make sure the chown is set root:root it works. If I move it into the public_html folder then chown needs

    to be user:user so that they can access the files by ftp and from their account.

    If you leave the files as root:root they are not visible in the ftp when you login as the user. So now I am stuck

    as to what to do here any suggestions?