Possible reasons and solutions
i) SELinux settings enforcing a file serve
Change SELINUX = disabled within the file and check if this is the cause for the error
ii) Application directory under restricted user permission folder path
For example, configuring the django project inside /root folder and trying to serve those files via apache server (apache user).
Try changing the folder to a path that you think is good for allowing public access such /var/www or /opt/sites .
First set up the httpd (web) service
$ yum install httpd
If httpd service is already installed, update the service
$ yum update httpd
Now, start the web server
$ service httpd start
Redirecting to /bin/systemctl start httpd.service
Check the status of the web server
$ service httpd status
First step is to install dependencies
$ sudo yum groupinstall “Development Tools”
$ sudo yum install kernel-devel
Mount the Virtualbox Additions CD ISO. You should download the virtualbox additions iso from http://download.virtualbox.org/virtualbox/ depending on your version of Virtual Box.
$ sudo mkdir /media/cdrom/
$ sudo mount /dev/cdrom /media/cdrom/
$ cd /media/cdrom
$ sudo ./VBoxLinuxAdditions.run
Before this step, create a shared folder in your host system. Say for example, if you created a shared folder named “CentosShare” in the host system you will follow the steps given below to access the share from within Centos.
$ mkdir ~/share
$ mount -t vboxs CentosShare ~/share