Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I encounter a strange problem today.
I used chmod command in my web page directory,/www.I changed all file privilege into 666 in order to allow all php scripts write files.
But when I access them vary http in the browser,the browser said
Forbidden
You don't have permission to access /blogcms/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.54 (Unix) PHP/4.3.11 Server at 127.0.0.1 Port 80
Directories need to (and only need to) have execute permission for you to access stuff inside it. So what you have is probably something inside a directory that is not executable. On directories, read permission lets you list it, and write permission lets you create or delete files in it, but it is execute permission which allows you to access files and directories inside. In fact, a directory with just execute permission and no read or write permission will allow you to access its contents fine, if you know their names; but you won't be able to list the names of its contents.
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.