JFolder::create: Path not in open_basedir paths
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Jan 05, 2008 2:21 am
- Location: Sitting at Desk
- Contact:
JFolder::create: Path not in open_basedir paths
Dear All
JFolder::create: Path not in open_basedir paths
Is there a definitive answer to this error message on uploading templates, extensions etc to 1.5?
I have searched these forums and Googled away, and whilst there is much comment and similar cries of pain, there appears not to be a categorical solution. Some Dutch parts of the forums appear to get near, but the autotranslation in Google leaves a bit to be desired.
I (and probably many others) would welcome expert advice.
Many thanks in anticipation - and for a great piece of software.
thancock
System:
Database Version: 4.1.21-standard-log
PHP Version: 4.4.4
Web Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Web Server to PHP interface: apache
Joomla! Version: Joomla! 1.5.1 Production/Stable [ Seenu ] 8-February-2008 22:00 GMT
JFolder::create: Path not in open_basedir paths
Is there a definitive answer to this error message on uploading templates, extensions etc to 1.5?
I have searched these forums and Googled away, and whilst there is much comment and similar cries of pain, there appears not to be a categorical solution. Some Dutch parts of the forums appear to get near, but the autotranslation in Google leaves a bit to be desired.
I (and probably many others) would welcome expert advice.
Many thanks in anticipation - and for a great piece of software.
thancock
System:
Database Version: 4.1.21-standard-log
PHP Version: 4.4.4
Web Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Web Server to PHP interface: apache
Joomla! Version: Joomla! 1.5.1 Production/Stable [ Seenu ] 8-February-2008 22:00 GMT
thancock: http://hendersonline.com; http://wanderlust.org.uk
-
- Joomla! Enthusiast
- Posts: 234
- Joined: Wed Feb 20, 2008 8:59 am
Re: JFolder::create: Path not in open_basedir paths
open_basedir never should be a problem as long as you are accessing paths inside your own home directory.
but ...
might be a problem with upload_tmp_dir ? If this is set and the specifed directory is not included in open_basedir, you might see the problem as described.
Not sure, but I think that upload_tmp_dir should not been set (you can check in Help -> System Info -> PHP Information), but in the config file it should have $tmp_path set to something like /yourjoomlafolder/tmp (see Help -> System Info -> Configuration file)
but ...
might be a problem with upload_tmp_dir ? If this is set and the specifed directory is not included in open_basedir, you might see the problem as described.
Not sure, but I think that upload_tmp_dir should not been set (you can check in Help -> System Info -> PHP Information), but in the config file it should have $tmp_path set to something like /yourjoomlafolder/tmp (see Help -> System Info -> Configuration file)
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Jan 05, 2008 2:21 am
- Location: Sitting at Desk
- Contact:
Re: JFolder::create: Path not in open_basedir paths
Hi
Many thanks for your reply.
This is a cPanel Fantastico install. I've no problem uploading media to the Media Manager. It concerns uploading templates and extensions/plugins.
I notice in Global Config "Server Settings Path to Temp-folder is: /data03/henderso/public_html/j15test/tmp"
Whereas in System info->PHP Settings " Open basedir: /data01/henderso/:/usr/lib/php:/usr/local/lib/php:/tmp"
Should these two be the same root?
System Info->PHP Info has "upload_tmp_dir no value no value"
System Info->Configuration File is
$log_path '/data03/henderso/public_html/j15test/logs'
$tmp_path '/data03/henderso/public_html/j15test/tmp'
I'm no PHP expert I am afraid.
Any further thoughts?
Thank you again.
Many thanks for your reply.
This is a cPanel Fantastico install. I've no problem uploading media to the Media Manager. It concerns uploading templates and extensions/plugins.
I notice in Global Config "Server Settings Path to Temp-folder is: /data03/henderso/public_html/j15test/tmp"
Whereas in System info->PHP Settings " Open basedir: /data01/henderso/:/usr/lib/php:/usr/local/lib/php:/tmp"
Should these two be the same root?
System Info->PHP Info has "upload_tmp_dir no value no value"
System Info->Configuration File is
$log_path '/data03/henderso/public_html/j15test/logs'
$tmp_path '/data03/henderso/public_html/j15test/tmp'
I'm no PHP expert I am afraid.
Any further thoughts?
Thank you again.
thancock: http://hendersonline.com; http://wanderlust.org.uk
-
- Joomla! Enthusiast
- Posts: 234
- Joined: Wed Feb 20, 2008 8:59 am
Re: JFolder::create: Path not in open_basedir paths
open_basedir does not define a path to be used for anything, but instead ALLOWS php to access a path which is not in the users document root (the "public_html" folder usually) or below.
Unfortunately the error message doesn't show, which path was tried. You might try to check the logs folder and maybe find something there. You might also try to turn debug on, but I don't know if this would show the path that makes trouble.
Unfortunately the error message doesn't show, which path was tried. You might try to check the logs folder and maybe find something there. You might also try to turn debug on, but I don't know if this would show the path that makes trouble.
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Jan 05, 2008 2:21 am
- Location: Sitting at Desk
- Contact:
Re: JFolder::create: Path not in open_basedir paths
Hi
Thank you again for the reply. Sorry to be delayed in responding.
Here's the output under install for a template:
8 queries logged
1.
SELECT *
FROM jos_components
WHERE parent = 0
2.
SELECT folder AS type, element AS name, params
FROM jos_plugins
WHERE published >= 1
AND access <= 2
ORDER BY ordering
3.
SELECT template
FROM jos_templates_menu
WHERE client_id = 1
AND menuid = 0
4.
SELECT id, title, module, position, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 2
AND m.client_id = 1
ORDER BY position, ordering
5.
SELECT a.*, SUM(b.home) AS home
FROM jos_menu_types AS a
LEFT JOIN jos_menu AS b
ON b.menutype = a.menutype
GROUP BY a.id
6.
SELECT *
FROM jos_components
WHERE `option` <> "com_frontpage"
AND `option` <> "com_media"
AND enabled = 1
ORDER BY ordering, name
7.
SELECT COUNT(*)
FROM jos_messages
WHERE state = 0
AND user_id_to = 62
8.
SELECT COUNT( session_id )
FROM jos_session
WHERE guest <> 1
The option items under (6) are highlighted in red. Is this significant?
Nothing appears in the logs folder under the root.
Is there another log?
How do I change the directory to which open_basedir refers in the system setting->system info?
Many thanks again
Thank you again for the reply. Sorry to be delayed in responding.
Here's the output under install for a template:
8 queries logged
1.
SELECT *
FROM jos_components
WHERE parent = 0
2.
SELECT folder AS type, element AS name, params
FROM jos_plugins
WHERE published >= 1
AND access <= 2
ORDER BY ordering
3.
SELECT template
FROM jos_templates_menu
WHERE client_id = 1
AND menuid = 0
4.
SELECT id, title, module, position, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 2
AND m.client_id = 1
ORDER BY position, ordering
5.
SELECT a.*, SUM(b.home) AS home
FROM jos_menu_types AS a
LEFT JOIN jos_menu AS b
ON b.menutype = a.menutype
GROUP BY a.id
6.
SELECT *
FROM jos_components
WHERE `option` <> "com_frontpage"
AND `option` <> "com_media"
AND enabled = 1
ORDER BY ordering, name
7.
SELECT COUNT(*)
FROM jos_messages
WHERE state = 0
AND user_id_to = 62
8.
SELECT COUNT( session_id )
FROM jos_session
WHERE guest <> 1
The option items under (6) are highlighted in red. Is this significant?
Nothing appears in the logs folder under the root.
Is there another log?
How do I change the directory to which open_basedir refers in the system setting->system info?
Many thanks again
thancock: http://hendersonline.com; http://wanderlust.org.uk
-
- Joomla! Enthusiast
- Posts: 234
- Joined: Wed Feb 20, 2008 8:59 am
Re: JFolder::create: Path not in open_basedir paths
You can not change open_basedir usually. On shared hosting this is used to keep users away from each others and system areas. Sometimes you hosting company will add a path if necessary. First you need to know WHICH path of course.How do I change the directory to which open_basedir refers in the system setting->system info?
You are a brave guy?
Try this:
locate folder.php in /libraries/joomla/filesystem
make a copy. name the copy folder.php.bak
open (original) folder.php
goto line 212
should look like this:
Code: Select all
JError::raiseWarning('SOME_ERROR_CODE', 'JFolder::create: '.JText::_('Path not in open_basedir paths'));
Code: Select all
JError::raiseWarning('SOME_ERROR_CODE', 'JFolder::create: '.JText::_($path . ' not in open_basedir paths'));
rant:
Would be a good idea to change "some" error messages to be more informative ...
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Jan 05, 2008 2:21 am
- Location: Sitting at Desk
- Contact:
Re: JFolder::create: Path not in open_basedir paths
Hi igrimpe
Thank you again.
I have been brave - and here is the result:
* JFolder::create: /data03/henderso/public_html/j15test/tmp/install_47d00f9ba628e not in open_basedir paths
* Unable to create destination
data03 is my partition on the shared server, and the tmp folder exists. I don't think I mentioned it but the file does upload - it's there in the tmp file, but it is not being unpacked and applied as it should be.
Is it something to do with being in a subdirectory of the root? I came across this post here: http://forum.joomla.org/viewtopic.php?f ... y#p1224736
Cheers
thancock
Thank you again.
I have been brave - and here is the result:
* JFolder::create: /data03/henderso/public_html/j15test/tmp/install_47d00f9ba628e not in open_basedir paths
* Unable to create destination
data03 is my partition on the shared server, and the tmp folder exists. I don't think I mentioned it but the file does upload - it's there in the tmp file, but it is not being unpacked and applied as it should be.
Is it something to do with being in a subdirectory of the root? I came across this post here: http://forum.joomla.org/viewtopic.php?f ... y#p1224736
Cheers
thancock
thancock: http://hendersonline.com; http://wanderlust.org.uk
-
- Joomla! Enthusiast
- Posts: 234
- Joined: Wed Feb 20, 2008 8:59 am
Re: JFolder::create: Path not in open_basedir paths
Check your open_basedir path. You can see it via backend: help -> system info -> php configuration.
/data03 in the open_basedir path?
/data03 in the open_basedir path?
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Jan 05, 2008 2:21 am
- Location: Sitting at Desk
- Contact:
Re: JFolder::create: Path not in open_basedir paths
No, it contradicts it and shows: /data01/henderso/:/usr/lib/php:/usr/local/lib/php:/tmp
Please can you advise me how to change this?
Many thanks again for following this through.
thancock
Please can you advise me how to change this?
Many thanks again for following this through.
thancock
thancock: http://hendersonline.com; http://wanderlust.org.uk
-
- Joomla! Enthusiast
- Posts: 234
- Joined: Wed Feb 20, 2008 8:59 am
Re: JFolder::create: Path not in open_basedir paths
open_basedir should be found in php.ini. If you have access to it, you might change yourself, otherwise ask your sysadmin.
Very unusal btw, that open_basedir does not point to the correct path ... !
Very unusal btw, that open_basedir does not point to the correct path ... !
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Jan 05, 2008 2:21 am
- Location: Sitting at Desk
- Contact:
Re: JFolder::create: Path not in open_basedir paths
Thank you again for your prompt responses.
I have asked my hosting provider about this - I will feedback here.
Thanks again
thancock
I have asked my hosting provider about this - I will feedback here.
Thanks again
thancock
thancock: http://hendersonline.com; http://wanderlust.org.uk
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Jan 05, 2008 2:21 am
- Location: Sitting at Desk
- Contact:
Re: JFolder::create: Path not in open_basedir paths
Install Template Success!
Many thanks for all your help, igrimpe.
Joomla is a fab product and the support forums are the icing on the cake.
Much appreciated.
thancock
Many thanks for all your help, igrimpe.
Joomla is a fab product and the support forums are the icing on the cake.
Much appreciated.
thancock
thancock: http://hendersonline.com; http://wanderlust.org.uk
-
- Joomla! Apprentice
- Posts: 17
- Joined: Wed Mar 05, 2008 12:16 pm
Re: JFolder::create: Path not in open_basedir paths
Hey guys, cheers for this thread - it didn't exactly solve my problem, but reading it made me realize where things might be going wrong.
I too was having the open_basedir error upon installing any extensions and I dug through the forums and Google to no avail.
Turns out all I needed to do was properly set my tmp/log paths in the Global Settings. On numerous sites I've had them simply as "tmp" and "log" - but on this one host it needed more. It needed the full path
/home/[shared hosting username]/public_html/tmp
Hope that helps some others.
DBD
I too was having the open_basedir error upon installing any extensions and I dug through the forums and Google to no avail.
Turns out all I needed to do was properly set my tmp/log paths in the Global Settings. On numerous sites I've had them simply as "tmp" and "log" - but on this one host it needed more. It needed the full path
/home/[shared hosting username]/public_html/tmp
Hope that helps some others.
DBD
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Jan 05, 2008 2:21 am
- Location: Sitting at Desk
- Contact:
Re: JFolder::create: Path not in open_basedir paths
In my case the problem was caused by a very simple thing. I had upgraded my hosting and my host had not upgraded all the correct server names throughout.
Still learning ...........
Still learning ...........
thancock: http://hendersonline.com; http://wanderlust.org.uk