Forbidden. You don’t have permission to access /wp-content/uploads/file-name.pptx

While uploading the files .pptx and .ppt files from WordPress admin dashboard, I was getting the error as below -
Forbidden. You don’t have permission to access /wp-content/uploads/…file-name.pptx on this server.

Solution -

1. Please check the files and directories permission. File permission should be 644 and directory permission should be 755. You can fire below command under cPanel >> File Manager >> public_html to correct the permission -

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

2. Please check the .htaccess file (under cPanel >> File Manager >> public_html ), there should be 'ppt' and 'pptx' extension should be enabled. Below is the code for you which you should add in .htaccess file -

Order deny,allow
Deny from all
<Files ~ ".(pdf|csv|doc|docx|jpe?g|png|gif|ppt|pptx)$">
Allow from all
</Files>

It resolved my issue!
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

How to setup the root login alert notification email?

Its very important to keep a check on your servers and who logs into the server, From security...

How to enable Open SSL on WHM?

Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Powered by WHMCompleteSolution