Author Topic: Domain points to /usr/local/apache/htdocs instead of home/user/public_html  (Read 1112 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
I think I messed up, I'm about to delete this thing for the last time, I set user permissions then lost access to the public_html
My site loads the default page from /usr/local/apache/htdocs instead of the index.html in home/user/public_html
Eve if I delete that index file in home/user/public_html it will show Index of /webftp_simple/

I added an index.html to my home/user/public_html directory which was working fine, but not now, I'm stressed big time.

Offline
****
1) I hope server hostname and domain name is not same

2) hope you havent installed additional apache. (yum remove httpd)

3) reinstall cwp apache (yum reinstall cwp-httpd)

4) rebuild apache vhost.

Offline
*
Any hostname I put in gives an error (ERROR: You don't have a valid hostname set!)
It doesn't matter if it's the same as or different to it still throws that error, anyway I got completely lost with this http/https puzzle.

Think rebuilding apache vhost screwed it up.

I'm using a subdomain which was working fine, I had it behind auto ssl etc etc now it's mixed up again.

My hostname is clients.domain.com on the vps
I set the hostname in the cwp panel to scr1.clients.domain,com still errors.
Jesus shoulda just bought cpanel or something.
Sorry a bit stressed been at it for at least 12 hours.
The whole point was to get blesta installed,
Had it all working then one click and it's gone wonky.
« Last Edit: March 13, 2018, 07:19:19 PM by emar »

Offline
*
Re: Domain points to /usr/local/apache/htdocs instead of home/user/public_html
« Reply #3 on: November 20, 2018, 08:17:08 PM »
1) I hope server hostname and domain name is not same

2) hope you havent installed additional apache. (yum remove httpd)

3) reinstall cwp apache (yum reinstall cwp-httpd)

4) rebuild apache vhost.
Hello Mate,
Tried everything you said above but still cant make my domain test.com connect to the /home/test/public_html/ folder
I am using cloudflare DNS maybe I have done some thing wrong.

But what is weird for me is that the domain cant't be pointed to the folder I have created the user.
any tutorial or step bu step guide will be helpful.
I have the domain registered and the account of the user setup I can reach the folder of my domain by going http://IP/~test[username of the account]/
This is the weird thing.

can anyone point out this issue/miss information bug call it whatever you want :)