• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 576
  • 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.
0
guanghong
Asked:
guanghong
  • 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.

0
 
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
0
 
guanghongAuthor Commented:
I think I have solve it by checking the php configuration. and comment out anything that got to do with the path.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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