Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

failed to open stream and php

Hi,
I am new to the whole Lamp thing, i am trying to get php working with apache.
when i try t oopen a php file i get the following error:

Warning: Unknown(<path>): failed to open stream: Permission denied in Unknown on line 0

Can anyone help?
0
cossy74
Asked:
cossy74
1 Solution
 
_GeG_Commented:
go into the directory where your document root is (probably something with .../localhost/htdocs/ in it's path) and issue this command
chmod -R a+r *
This gives read access to everybody, which is not save on a server, but ok for testing ;)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now