Error resolution for cpanel panel with Internal Server error

Source: Internet
Author: User
Tags chmod cpanel file permissions

The workaround is simple: Open the cpanel Panel error log page, which typically has 2 kinds of errors.

1. The first type of "folder" gives too high a permission to be "group write": Install is writeable by group
2. The second type, "file", gives too high a permission to be "group write": Index.php is writeable by group
You only need to cancel the group write permission for folders and files:

1. Remove the "group write" Permission for "folder", that is, change from default 775 to 755
2. "File" to remove "group write" permission, that is, from the default 664 to 644 can be
Take the install directory and the index.php file for example:

All of the above 2 modifications can be done via FTP or CHMOD command

The code is as follows Copy Code

chmod 755 Install
chmod 644 index.php

And if you have more files and folders that need to change permissions, use chmod to set up subdirectories and file permissions separately:

Set all files in the current directory, including folders, to 644:chmod 644-r *

Set the permissions for all subdirectories in the current directory to 755:chmod 755 ' find-type d '

You can also use the Find command to implement:

The code is as follows Copy Code

find./-type f-exec chmod 644 {};
find./-type d-exec chmod 755 {};

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.