Website not working (public_html) error

zordo

New member
Joined
Mar 28, 2024
Messages
4
Hey, on my domain it says "To change this page, upload your website into the public_html directory"

Nothing works when I upload my files to the public_html as it says, where might be the problem?
 
Check if in the public_html you have a .htaccess file and if yes, post the contents.
I presume your website has an index file like index.php or something.
Hey, yes I have .htacces in public_html -> cgi-bin file.

Content: "
Options -Indexes
"
 
@zordo are you an Admin or just a user of the directadmin panel?
If user, sorry but we are not the correct forum for you.

But i do recommend you to read into htaccess files, php etc so you have a certain understanding of how the stuff works.
 
Hey, yes I have .htacces in public_html -> cgi-bin
As long as it's only in the cgi-bin directory it shouldn't really hurt with that content.
You could temporarily remove it to see if that helps.

However it's better to check your /var/log/httpd/domains/yourdomain.com.log or yourdomain.com.error.log to see if that says more.

Indeed if you are a hosting customer, then you are at the wrong place and should contact your host for support as it could also be some server issue.
 
Check also if you have a symlink from private_html to your public_html. If not create it :)
Depends on your installation. On new installations with normal apache I wouldn't do so as the private_html is not created anymore by default.

I think this was only a solution for litespeed or something?
 
Last edited:
Sometimes the link is missing. I noticed I had some domains with 2 folders because of some old backup I restored a while back.

Still he removed index.html and get's 403. So he removed it from the right folder. But maybe the webserver reads another folder. Or TS also is using wrong folder for removing index. Or there is no other index file at all in the root folder :D
However it's better to check your /var/log/httpd/domains/yourdomain.com.log or yourdomain.com.error.log to see if that says more.

This is the best solution yes :D
 
Yes indeed. I was mistaken and corrected my post. Seen you were talking about the symlink, which is correct.
And I was talking about the directory. Oeps.
 
Last edited:
Back
Top