Still struggling. Could use help. Wordpress related

slight

New Member
Messages
38
Reaction score
1
Points
0
I'm getting the following error. It is affecting my ability to generate a sitemap, and other issues.
Perhapos more important, it's driving me nuts.

Any idea what could be causing this and how to resolve it?

Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s):

Some history:

1. I originally defined the project in a new (dedicated) subdirectory of an existing site. Call this mysite.x10hosting.com/wordpress/ (not the actual name)

2. Once the Wordpress site was up and running at mysite.x10hosting.com/wordpress I created an addon domain, such as www.newsite.com that mapped to mysite.x10hosting.com/wordpress, and I changed my Wordpress blog URL to www.newsite.com

That's when the problem started.

I suspect this could be .htaccess file related (just a guess). That file currently has the following format:

# BEGIN WordPress
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)mysite.x10hosting.com/wordpress [NC]
RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


# END WordPress


Any ideas what could be going on and how to correct it? This is really driving me crazy.

Much thanks!
 

slight

New Member
Messages
38
Reaction score
1
Points
0
Some posts on the web suggest this kind of problem may be related to PHP running in safemode. How can I tell if that's the case for my ID on x10hosting? Can it be changed?
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
You can tell PHP is running in safe mode because the error message says so: "open_basedir restriction in effect". You have to upgrade to paid hosting.

The problem isn't in .htaccess. Some PHP script is calling is_writeable('/'), and anything outside of "/tmp" or "/home" isn't allowed. The error message should tell you which script, and examining it should tell you where it's getting the path.

There's no good reason to hide the actual site. It just makes it harder to help.
 
Last edited:
Top