1 User(s) are reading this topic:
 |
 |
|
|
|
|
| Author |
|
Admin
Administrator

Group: Admin
Posts: 4
Joined: October 31, 2004

|
We have enabled open_basedir on our servers. So if you get: "Warning: open_basedir restriction in effect. File is in wrong directory".
Don't Panic!! You are seeing this message due to the fact that your script attempting to do something it should not be doing. We are now restricting all PHP scripts to operating within home/username for security reasons.
How can I fix this? You may have to modify your script to ensure that you have all paths correct. You have to ensure that your script is not trying to access any files outside of /home/username folder. If you cannot do this yourself please see the bottom of this post.
My gallery/blog image upload script gives me this error and its only a picture If you are getting this error using an image upload script (such as Gallery for an example ) it may have copy() commands in the code instead of move_uploaded_file(). You will need to find all referenes to copy() and change them to move_uploaded_file() . It may also be indicate that your script is out of date please check and see if an update is available. This course of action should be the first one you try.
But my scripts worked yesterday / last month We are constantly addressing security concerns to ensure that you ( our valued customers) can rest easy knowing that your files are safe and secure. In order to so from time to time we have to make decisions that may cause small problems in the first few days but are needed to secure the server. By seeing this message it means that your script may need only minor modification to ensure that it performs in a safe and secure manner.
The same script works fine with my last hosting company Hosts use many different ways to secure their servers. Some don't!! We are confident that this is the best way to do so.
You can always file a support ticket at http://support.mwdhosting.com and ask us to take a look at your script. We will do so and advise of what actions needs to be taken. If it is a script modification we will be glad to do so free of charge if the work is less then 30 minutes. More than 30 minutes and less than one hour we will charge a fee of $20.00 US . As a last resort we can overide if for your domain to allow the script to run. This will require a photo id and a signed agreement that you are responsible for any damage done by the script itself. There is really no reason for having to override open_basedir other than poor scripting.
|
|
January 24, 2006 02:52 am
|
|
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
|