?
Solved

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

Posted on 2011-09-21
3
Medium Priority
?
561 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 375 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
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.
Suggested Courses

765 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