private_html file deleted

mahim

New member
Joined
Dec 16, 2024
Messages
1
hello everyone, today i unfortunently deleted private_html file and .htpasswd . so that when i am uploading my website index .html its saying 403 forbidden , access to this resource on the server is denied . please help me . i have deleted the files from trash also . so i can not restore it . is there any option to reset the file manager or something ?
 
The private_html is a directory, your website should reside in public_html and also private_html is a symlink to public_html.
You can create the private_html manually again. And then symlink it to the public_html also.
I don't know for sure if symlinking can be done via the file manager, I never use the file manager.

Are you an admin, in other words, a Directadmin license holder or just a hosting customer? If you are a hosting customer you should contact your host for support. As it might be things need to be repaired via SSH as admin.
And also (just in case) this forum is not intended for hosting customers, only for DA license holders (so admins).
 
My perl scripts are all returning file cannot be found errors and I discovered, via the logs, that the server is trying to find them in the private_html folder when everything is in the public_html folder.

How do I eliminate the server's desire to look for the cgi file in the private_html folder?
 
How do I eliminate the server's desire to look for the cgi file in the private_html folder?
I have no clue, I think apache is doing that.

So I think the best case is the create a private_html folder again and symlink it to the public_html as it was originally.

afbeelding.png
 
I have no clue, I think apache is doing that.

So I think the best case is the create a private_html folder again and symlink it to the public_html as it was originally.

afbeelding.png
Ok. Well I was hoping this Perl program would work but the server keeps looking for it in the private_html folder so I get “file not found” errors.
 
How do I eliminate the server's desire to look for the cgi file in the private_html folder?
You're in fact topic stealing, you should have created a seperate topic for your question or did you delete your privat_html too?
But oke, cgi files should reside in the public_html/cgi folder.
If the symlink from private_html to public_html is in place, there should not be an issue running things, so if you keep having issues, best is to send in a ticket.
 
Back
Top