Solved

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

Posted on 2011-09-21
3
543 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
  • 2
3 Comments
 
LVL 14

Accepted Solution

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Wordpress Query 1 31
Mail Not Sent 6 41
How can I split the array as 4 rows per line? 5 60
Filter wordpress query 3 8
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now