Search code examples
htmlcpanelwebsite-hosting

I am having trouble uploading and publishing my site on cpanel Namecheap


I have changed all the html and css files to 0755 permissions and image files to 0644 permissions and the site will not publish. The files are all contained in the public_html folder and have no idea where to move on from here...


Solution

  • On their website they have something a little different:

    The following permissions need to be set in order for your files to be displayed properly in the browser:

    For all HTML and image files, the permissions have to be set to 644 (or 0644). They will be readable by all the user groups, but writable by the user only. These permissions are set automatically when the file is created.

    Folders the permissions have to be set to 755 (or 0755). The folders will be readable and executed by others, but writable by the user only. These permissions are set automatically when the folder is created.

    For all CGI files, the permissions have to be set to 755 (or 0755). The files will be readable and executed by others, but writable by the user only. These permissions are NOT set automatically once the file is created, you should adjust them manually.

    File permissions