Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am getting the following error:

Forbidden: You don't have permission to access [directory] on this server.

I need direct access to this directory and sub folders on that directory so that my Android Application can communicate with it.

I tried putting folders on a Hosting Server and everything works fine.

But, I am doing an academic project and I need to store these folders and scripts on a University Web Server which can talk to localhost locally.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
194 views
Welcome To Ask or Share your Answers For Others

1 Answer

1.
If you have the possiblity and your server is a linux server, you can change the permissions with something like

sudo chmod -R 777 /var/www/folder

Or completely change the owner with

sudo chown -R user /var/www/folder


2.
Look into the apache configuration files and also the .htaccess, if the directory is blocked by
Deny from all

Or simply not allowed. You could allow the directory by creating a .htaccess file and enter

<Directory yourdirectory>
Order allow,deny
Allow from all
</Directory>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...