Default 755 File Permission Issue From Server Setting

If you are getting file permission issue from your server side and you unable to find the solution for this problem, then you must try solution below. Many servers by default don’t support 755 permission. Instead, they use 777 and which is very risky for the webmaster.

So for this, you need to look some server setting like mod_cgi and mod_suexec

Why 755 Permissions not working in your Server

This happened when the server was using mod_cgi which was running PHP processes as user “Nobody” which prevented PHP from writing into website directory when permissions haven’t allowed so.

Solution for 755 permission to Work

Change your handler for Apache to mod_mpm_event and enabled mod_cgid and mod_suexec which allow running PHP processes as a specific user. This change will resolve issue with upload issue

This will solve your problem; Please read carefully before you implement this change or discuss with your hosting provider about this.

Disable Directory Listing from Apache

Changing Folder permission will not disable directory listing for directory listen you need to add .htaccess file Simply create a .htaccess file with below Text and Upload that in your upload directory and this will disable Directory Listing on that website.

Options -Indexes

If you want to disable Directory Listing in your whole server, then you can do this using apache in /etc/apache/httpd.conf Contact your host, and they will do this for you.