# PHP / Wordpress help take 2.

**URL:** <https://forums.speedlife.net/t/php-wordpress-help-take-2/43319>\
**Category:** NYSpeed Off Topic\
**Created:** [February 12, 2008, 9:02am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319 "2008-02-12T09:02:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sureshot](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/sureshot/32/7578_2.png) [@sureshot](https://forums.speedlife.net/u/sureshot)\
**Post date:** [February 12, 2008, 9:02am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/1 "2008-02-12T09:02:34Z")

</div>

Hey guys, I’m super nerding it up again, and when trying to install a plugin to wordpress, I’m running into some errors. Frankly, I haven’t learned enough yet to troubleshoot. If no one answers here, fine, I’ll just figure it out eventually.

Anyways, these are the error lines I’m getting. Any help would be appreciated. Do I need to CHMOD everything to 755 or something?

-Adam.

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/sbin/php.exe) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/sbin/php.exe) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/bin/php.exe) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/bin/php.exe) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/X11R6/bin/php.exe) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/sbin/php.bat) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/sbin/php.bat) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/bin/php.bat) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/bin/php.bat) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/X11R6/bin/php.bat) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/sbin/php.cmd) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/sbin/php.cmd) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/bin/php.cmd) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/bin/php.cmd) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/X11R6/bin/php.cmd) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/sbin/php.com) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/sbin/php.com) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/bin/php.com) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/bin/php.com) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : is\_executable() [[function.is-executable](http://crankyaccountant.com/wp-admin/function.is-executable)]: open\_basedir restriction in effect. File(/usr/X11R6/bin/php.com) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/inc/tools.class.php** on line **72**

> **Warning** : file\_exists() [[function.file-exists](http://crankyaccountant.com/wp-admin/function.file-exists)]: open\_basedir restriction in effect. File(/usr/bin/php) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/) in **/home/sureshot/domains/domain.com/public\_html/wp-content/plugins/wp-o-matic/wpomatic.php** on line **1014**

---

<div class="post-metadata">

**Author:** ![boxxa](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/boxxa/32/5045_2.png) [@boxxa](https://forums.speedlife.net/u/boxxa)\
**Post date:** [February 12, 2008, 10:10am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/2 "2008-02-12T10:10:23Z")

</div>

is\_excutable() checks to see if the web server can execute the file specificed. Set it to 755 and follow the install directions. They tell you the folders/files that need to be setup right.

---

<div class="post-metadata">

**Author:** ![boardjnky4](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@boardjnky4](https://forums.speedlife.net/u/boardjnky4)\
**Post date:** [February 12, 2008, 10:13am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/3 "2008-02-12T10:13:06Z")

</div>

it would look to me like you have an environmental variable set wrong, but I have no experience with any of this, just basing that off of the error message

---

<div class="post-metadata">

**Author:** ![sureshot](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/sureshot/32/7578_2.png) [@sureshot](https://forums.speedlife.net/u/sureshot)\
**Post date:** [February 12, 2008, 10:22am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/4 "2008-02-12T10:22:59Z")

</div>

> [@boxxa](#):
>
> is\_excutable() checks to see if the web server can execute the file specificed. Set it to 755 and follow the install directions. They tell you the folders/files that need to be setup right.

That’s what I was thinking… I went around to practically everything and set it to 755 with no luck ☹

I’m hosting through precisioneffect, perhaps they just don’t allow their users access to the files i need to edit?

---

<div class="post-metadata">

**Author:** ![LZ1](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LZ1](https://forums.speedlife.net/u/LZ1)\
**Post date:** [February 12, 2008, 10:29am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/5 "2008-02-12T10:29:29Z")

</div>

There is a file with allowed paths…you just need to add those other locations.

---

<div class="post-metadata">

**Author:** ![boardjnky4](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@boardjnky4](https://forums.speedlife.net/u/boardjnky4)\
**Post date:** [February 12, 2008, 10:30am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/6 "2008-02-12T10:30:18Z")

</div>

File(/usr/bin/php) is not within the allowed path(s): (/home/sureshot/:/tmp:/usr/local/lib/php/)

from the looks of things, you need to add /usr/bin/php to the path variable. word or like formula said, the path file

---

<div class="post-metadata">

**Author:** ![LZ1](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LZ1](https://forums.speedlife.net/u/LZ1)\
**Post date:** [February 12, 2008, 10:33am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/7 "2008-02-12T10:33:22Z")

</div>

Can you edit php.ini?

setting open\_basedir to “.” would work but that is ghetto.

Its not a permissions problem…

Those programs are only allowed to run from certain locations.

If you can’t edit php.ini or httpd.conf I don’t know where open\_basedir is set I assume php.ini…Just get the admin to add those other paths.

/usr/sbin/  
/usr/X11R6/bin/  
/usr/bin

---

<div class="post-metadata">

**Author:** ![LZ1](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LZ1](https://forums.speedlife.net/u/LZ1)\
**Post date:** [February 12, 2008, 10:36am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/8 "2008-02-12T10:36:21Z")

</div>

Here…I just googled the error

Open\_basedir Restriction In Effect  
Question

When viewing dynamic pages, I see the following error: Warning: main(): open\_basedir restriction in effect. File(/full/path/to/cgi-bin/movabletype/php/mt.php) is not within the allowed path(s): (/full/path/to/tmp) in /full/path/to/blog/mtview.php on line 2  
Answer

This error indicates that your host has enabled the PHP open\_base\_dir setting on your server. Your host needs to add your Movable Type installation folder to the allowed paths for this setting (i.e., add the file path referenced in the error as “not within the allowed path”).

The open\_base\_dir setting is primarily used to prevent php scripts for a particular user from accessing files in another user’s account. So usually, any files in your own account should be readable by your own scripts.

---

<div class="post-metadata">

**Author:** ![sureshot](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/sureshot/32/7578_2.png) [@sureshot](https://forums.speedlife.net/u/sureshot)\
**Post date:** [February 12, 2008, 11:43am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/9 "2008-02-12T11:43:32Z")

</div>

Thanks for all the help. I don’t think my hosting allows me to manually adjust those settings, so I emailed their support for help ( precision effect ). I pretty much C+P’d the relevant parts of these posts, so hopefully he won’t think I’m an imbecile.

Thanks again! :tup:

---

<div class="post-metadata">

**Author:** ![DrDoS](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@DrDoS](https://forums.speedlife.net/u/DrDoS)\
**Post date:** [February 12, 2008, 2:15pm UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/10 "2008-02-12T14:15:51Z")

</div>

put a @ infront of line 72 ( lol)

---

<div class="post-metadata">

**Author:** ![boxxa](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/boxxa/32/5045_2.png) [@boxxa](https://forums.speedlife.net/u/boxxa)\
**Post date:** [February 13, 2008, 7:12am UTC](https://forums.speedlife.net/t/php-wordpress-help-take-2/43319/11 "2008-02-13T07:12:13Z")

</div>

just install it through cpanel with fantastico. thats what all my hosting clients do who don’t know what they are doing =)
