Re: open_basedir restriction in effect Help Needed

2006-09-05 Thread Sebastian Macias

Thanks Matt.

I tried what you recommended and many other alternatives I found on
discussion boards but unfortunately I have Plesk installed on my server
so whatever I do to any config files would be overwritten within
seconds by Plesk.

Fortunately a friend actually got it working for me using a different
approach. What he did was he added 'false' to the if statement that
checks if the ini_set function exists in the webroot/index.php file.
That way Cake uses the absolute path when loading is libraries and
doesn't depend on the include_path.

If anybody using Plesk is expereincing the same issue find this line in
webroot/index.php:

 if (function_exists('ini_set')) {

and replace it with:

 if (false  function_exists('ini_set')) {

Thanks worked out perfectly for me.

Thanks,

Sebastian

Matt Puchlerz wrote:
 Judging by the path, I'm thinking you might be hosted on Media Temple.
 If that's the case, here's how I fixed my open_basedir problem...

 Log into the shell.  Within your site's domain folder
 (/var/www/vhosts/begreennow.com/) is another folder called conf.
 Inside that folder is a file called httpd.include.  Use a text editor
 to open that file (I used vi).  Once inside that file, you'll see
 Apache configurations for your begreennow.com domain, as well as any
 subdomains you might have for it.  There should be a line that says...

 php_admin_value open_basedir
 /var/www/vhosts/begreennow.comBLAHBLAHBLAH

 Comment out that line by putting a # at the beginning of it, and save
 the file.  Make sure that you then reboot your server, and hopefully
 the problem will disappear.

 I don't really now why that setting exists, but it does.  Hope this
 might have helped.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: open_basedir restriction in effect Help Needed

2006-09-02 Thread Matt Puchlerz

Judging by the path, I'm thinking you might be hosted on Media Temple.
If that's the case, here's how I fixed my open_basedir problem...

Log into the shell.  Within your site's domain folder
(/var/www/vhosts/begreennow.com/) is another folder called conf.
Inside that folder is a file called httpd.include.  Use a text editor
to open that file (I used vi).  Once inside that file, you'll see
Apache configurations for your begreennow.com domain, as well as any
subdomains you might have for it.  There should be a line that says...

php_admin_value open_basedir
/var/www/vhosts/begreennow.comBLAHBLAHBLAH

Comment out that line by putting a # at the beginning of it, and save
the file.  Make sure that you then reboot your server, and hopefully
the problem will disappear.

I don't really now why that setting exists, but it does.  Hope this
might have helped.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



open_basedir restriction in effect Help Needed

2006-09-01 Thread Sebastian Macias

Hi bakers,

I have been looking for a solution of my problems for two days. So just
gave up and decided to ask for help here.

I have a cakeapp that works perfectly in my local machine, but in the
production server is giving me the following warning and error:


Warning: main() [function.main]: open_basedir restriction in effect.
File(/cake/bootstrap.php) is not within the allowed path(s):
(/var/www/vhosts/begreennow.com/httpdocs:/tmp) in
/var/www/vhosts/begreennow.com/httpdocs/webapp/app/webroot/index.php on
line 81

Warning: main(cake/bootstrap.php) [function.main]: failed to open
stream: Operation not permitted in
/var/www/vhosts/begreennow.com/httpdocs/webapp/app/webroot/index.php on
line 81

Warning: main() [function.main]: open_basedir restriction in effect.
File(/cake/bootstrap.php) is not within the allowed path(s):
(/var/www/vhosts/begreennow.com/httpdocs:/tmp) in
/var/www/vhosts/begreennow.com/httpdocs/webapp/app/webroot/index.php on
line 81

Warning: main(cake/bootstrap.php) [function.main]: failed to open
stream: Operation not permitted in
/var/www/vhosts/begreennow.com/httpdocs/webapp/app/webroot/index.php on
line 81

Fatal error: main() [function.require]: Failed opening required
'cake/bootstrap.php'
(include_path='.::/var/www/vhosts/begreennow.com/httpdocs/webapp:/var/www/vhosts/begreennow.com/httpdocs/webapp/app/')
in /var/www/vhosts/begreennow.com/httpdocs/webapp/app/webroot/index.php
on line 81

I have shell access to the server and can do whatever you bakers tell
me to do in order to solve the problem. PHP Safe Mode is turned off.

Thanks,

Sebastian Macias


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: open_basedir restriction in effect Help Needed

2006-09-01 Thread MJ Ray

Sebastian Macias [EMAIL PROTECTED] wrote:
 Warning: main() [function.main]: open_basedir restriction in effect.
 File(/cake/bootstrap.php) is not within the allowed path(s):

For whatever reason, it sounds like cake can't figure out its starting 
directory in order to locate the cake sibling of app.  You could try 
setting the define()s in app/webroot/index.php to be the actual path 
string instead of the functions on __FILE__.

Hope that helps,
-- 
MJ Ray [EMAIL PROTECTED]  www.ttllp.co.uk  +44-870-4321-9-10
Web, localisation, koha, databases, GNU/Linux and statistics.
Registered in England and Wales, partnership number OC303457

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: open_basedir restriction in effect Help Needed

2006-09-01 Thread Sebastian Macias

Hi Ray,

I have been trying to get it to work defining many values for  ROOT but
no matter what I do I get the same error.

My app is hosted in this path

var/www/vhosts/begreennow.com/httpdocs/webapp

The folder structure inside webapp is the standard. Is there anyway to
make cakephp include 'bootstrap.php', etc without having to read the
file from the root?

Thanks,

Sebastian

MJ Ray wrote:
 Sebastian Macias [EMAIL PROTECTED] wrote:
  Warning: main() [function.main]: open_basedir restriction in effect.
  File(/cake/bootstrap.php) is not within the allowed path(s):

 For whatever reason, it sounds like cake can't figure out its starting
 directory in order to locate the cake sibling of app.  You could try
 setting the define()s in app/webroot/index.php to be the actual path
 string instead of the functions on __FILE__.

 Hope that helps,
 --
 MJ Ray [EMAIL PROTECTED]  www.ttllp.co.uk  +44-870-4321-9-10
 Web, localisation, koha, databases, GNU/Linux and statistics.
 Registered in England and Wales, partnership number OC303457


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---