• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 586
  • Last Modified:

PHP: HTTP Error 500 [Unknown: open_basedir restriction in effect...

hi guys,

Recently website php files are having this http erro 500. When I take a look at the error log, this is what I found.
[Unknown: open_basedir restriction in effect. File(/usr/local/share/openvpn2/configure) is not within the allowed path(s)...]
The website is hosted on a (dv) mediatemple, I totally have no clue why the server are having this error.
  • 2
1 Solution
Scott MadeiraCommented:
The error message means that your php script is trying to access a file in /usr/local/share/openvpn2/configure and that path is not specified in the open_basedir php configuration directive.

If this just started happening recently then somebody made a change to the php configuration.
Or, the script is now looking for something in the wrong place.

guanghongAuthor Commented:
Do you know how I go about checking the php configuration? I feel that it should not be the script in php that is looking for something as it have the same error for all the php files including phpinfo.php
guanghongAuthor Commented:
I think I have solve it by checking the php configuration. and comment out anything that got to do with the path.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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