Solved

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

Posted on 2011-09-21
3
559 Views
Last Modified: 2012-05-12
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
Comment
Question by:guanghong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 125 total points
ID: 36574454
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
 

Author Comment

by:guanghong
ID: 36574621
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
 

Author Closing Comment

by:guanghong
ID: 36580029
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question