# How to fix cPanel error AH01630

If you are using cPanel, you may encounter the error “AH01630: client denied by
server configuration” when trying to access certain files or directories on your
website. This error occurs when the server's configuration denies access to the
requested resource.


To fix this error, you will need to edit the server's configuration file. In
cPanel, this file is called “httpd.conf” and can be found in the “etc”
directory. To access this file, follow these steps:

 1. Log in to your cPanel account.

 2. In the “Files” section, click on the “File Manager” icon.

 3. In the “File Manager” window, navigate to the “etc” directory and open the
    “httpd.conf” file.

 4. In the “httpd.conf” file, look for the section that controls access to your
    website's files and directories. This section should begin with the “Allow”
    and “Deny” directives.

 5. To grant access to a specific file or directory, add an “Allow” directive
    for that file or directory. For example, if you want to grant access to the
    “example.html” file, you would add the following line:

Allow from example.html

 6. To deny access to a specific file or directory, add a “Deny” directive for
    that file or directory. For example, if you want to deny access to the
    “private” directory, you would add the following line:

Deny from private

 7. Save the changes to the “httpd.conf” file and exit the editor.

 8. Restart the Apache web server by running the following command in the
    terminal:
    
    service apache2 restart

After restarting the web server, the “AH01630: client denied by server
configuration” error should no longer occur when accessing the specified files
or directories. Note that you may need to repeat these steps for each file or
directory that you want to grant or deny access to.