Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 05-03-2008, 01:55 AM
Junior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 8
Default

Hmm, here's what I'm using, and it works fine:

PHP Code:
set_include_path('..' DIRECTORY_SEPARATOR 'library' PATH_SEPARATOR get_include_path()); 
If I were you guys, I would test to see exactly what your include_path is set to:

PHP Code:
<?php echo get_include_path();
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-05-2008, 04:59 AM
Junior Member
 
Join Date: May 2008
Posts: 4
Default I figured out my problem

I hate it when people post "I solved my problem, thanks," without actually telling everybody how they figured out the solution.

It turns out my apache was set up to only allow access to my public_html directory and NOT the entire website directory.

For example:

/var/www/vhosts/domain.com/httpdocs

and not

/var/www/vhosts/domain.com/

which it needs to access application/, library/, etc.

I had to setup a vhost.conf file in my conf/ folder to allow php to access files OUTSIDE of the documentroot.

I don't know what you guys are using but this article might shed some light on this problem: Aaron Gadberry Blog Archive Using Plesk and vhost.conf

This problem basically involves PHP's open_basedir setting. Change your index.php file and try to require a file OUTSIDE of your document root and it should show you that it doesn't have permission to access stuff outside of the docroot.

Hope that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:20 PM.