Hi, I have removed public_html from my server. As I guess this is the catalogue in which I need to set up my website. However, I can see public_html folder listed, but when I want to open it, it says there's no such file. What can I do?
Login to your cpanel> click on file manager> select home directory > click on new folder on the left top > type public_html in the folder name > type folder path i.e. /home/your-cpanel-username > click on ok button > change the permission of public_html to 750 > double click on public_html folder > in side your public_html folder create new folder with the name cgi-bin and path i.e. /home/your-cpanel-username/public_html/ then click on ok
But as I said. I CAN SEE public_html folder, both in my ftp manager and even browser. However, when I want to enter it, it says there's no such file. If I want to create public_html folder in my ftp manager, it says there's already such catalogue.
Please post the specific error message that you get when you "try to enter" your /public_html folder.
It is quite possible that the error message is telling you (indirectly) that there is no directory index file in that directory, and that the server is not configured to automatically generate one.
This can be "fixed" by uploading an HTML file -- typically named "index.html" to the public_html directory, or by enabling directory-index generation using the directive "Options +Indexes" in a .htaccess file uploaded to /public_html/.htaccess
For initial testing, the first method is simplest -- just upload a simple file: