CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • open_basedir checks are wrong?
Pages: [1]

Author Topic: open_basedir checks are wrong?  (Read 6506 times)

steve1084

  • Guest
open_basedir checks are wrong?
May 03, 2008, 09:25:06 pm
OK I am Just starting to rebuild a community website using joomla 1.5 and have a few issues when installing Civic crm

There are no error messages when installing, but when I go to administer civic crm I get plenty of errors.

When I go to Civic crm home I get this.

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var) is not within the allowed path(s): (/var/www/sites/dtc:/usr/lib/php:/tmp:/usr/share/pear:/var/lib/dtc/etc/dtc404:/usr/share/php:/usr/local/lib/php/phplib:) in /var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/html/administrator/components/com_civicrm/civicrm/packages/Smarty/internals/core.create_dir_structure.php on line 68

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var) is not within the allowed path(s): (/var/www/sites/dtc:/usr/lib/php:/tmp:/usr/share/pear:/var/lib/dtc/etc/dtc404:/usr/share/php:/usr/local/lib/php/phplib:) in /var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/html/administrator/components/com_civicrm/civicrm/packages/Smarty/internals/core.create_dir_structure.php on line 68

Warning: Smarty error: problem creating directory '/var' in /var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/html/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1095

Warning: Smarty::include(/var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/html/media/civicrm/templates_c/en_US/en_US//%%EA/EAA/EAA96A89%%joomla.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /var/www/sites/dtc/xxxxx.xxxxx.comm/subdomains/www/html/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1265

Warning: Smarty::include() [function.include]: Failed opening '/var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/html/media/civicrm/templates_c/en_US/en_US//%%EA/EAA/EAA96A89%%joomla.tpl.php' for inclusion (include_path='.:/var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/html/administrator/components/com_civicrm/civicrm:/var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/html/administrator/components/com_civicrm/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/html/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1265


I am doing this on a my own local test server and after checking all the settings I can confirm that it all apears to comply with the settings required to allow civic crm to function.  But obviously something isnt right.

« Last Edit: June 12, 2008, 05:33:44 pm by steve1084 »

steve1084

  • Guest
Re: open_basedir restriction in effect
May 03, 2008, 09:26:10 pm
Here are the PHP settings, sorry about the length.

PHP Version 5.2.0-8+etch10

System    Linux stas2.my1084.com 2.6.18-5-686 #1 SMP Tue Dec 18 21:24:20 UTC 2007 i686
Build Date    Jan 18 2008 18:19:34
Server API    Apache 2.0 Handler
Virtual Directory Support    disabled


Relevant PHP Settings
Setting    Value
 
Safe Mode:    Off
Open basedir:    /var/www/sites/dtc:/usr/lib/php:/tmp:/usr/share/pear:/var/lib/dtc/etc/dtc404:/usr/share/php:/usr/local/lib/php/phplib:
Display Errors:    On
Short Open Tags:    On
File Uploads:    On
Magic Quotes:    On
Register Globals:    Off
Output Buffering:    Off
Session Save Path:    /var/www/sites/dtc/xxxxx.xxxxx.com/subdomains/www/tmp
Session Auto Start:    0
XML Enabled:    Yes
Zlib Enabled:    Yes
Disabled Functions:    None
Mbstring Enabled:    Yes
Iconv Available:    Yes
WYSIWYG Editor:    Editor - No Editor


----------------------------------------------------------------------------------

The server is a debian etch DTC GPLhost toaster setup

The joomla install is a new 1.5.3 joomla install.

I just used the standard joomla installer to do the install with no errors in the install, also tried the directory install but this failed.


php.ini
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 12000     ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M      ; Maximum amount of memory a script may consume (16MB)


Im at a loss at this point.  I will also ask on the DTC website to see if there is anything in the server setup that might be cousing this, but I cant see anything at this stage.

Any help would be apreciated

Thanks
Steve
« Last Edit: May 04, 2008, 08:47:30 am by steve1084 »

steve1084

  • Guest
Re: open_basedir restriction in effect
May 03, 2008, 11:31:20 pm
In an attempt to overcome this I tried makeing a Custom Apache directive  open_basedir = /
But this also had no affect

open_basedir is currently set to none.

DTC does restrict write actions to the defined account and this issue seems to be caused by Smarty trying to write or creat a file outside the defined account.????

This is the first time I have had even a single issue with any joomla module on this server out of 12 sites using both joomla 1.5 and 1.0

So Is there an alternative to using smarty as this seems to be the big issue with many people besides myself.

Why is smarty trying to write to a file or creat a file outside the account perameters.???????? or at least thats how it looks to me.

Thanks
Steve

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: open_basedir restriction in effect
May 04, 2008, 11:38:19 am

we are pretty tightly coupled with smarty, so there is no alternative to using CiviCRM without smarty.

would be great for you to take the initiative and ask / research on the smarty forums and IRC channel on how to get past the open_basedir limitation.

if i'm not mistaken, some folks might have posted a few tips on how to get this to work. so a search on these forums / google might also be beneficial

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

steve1084

  • Guest
Re: open_basedir restriction in effect
May 04, 2008, 07:41:29 pm
Hi Bro

I have posted this on the DTC forums but didnt think to post on the smarty forums.  I havent had a reply from the dtc people as yet.  Technicaly I dont think its an error in the server environment as this is the one and only time I have had any issues with any type of module on this server

I have had a thought that maybe its related to being in a sub domain but I havent tested that as yet.  But all the errors do seem to be smarty related.

I will post on the smarty forums as you sugest.

Thanks
Steve

steve1084

  • Guest
Re: open_basedir restriction in effect
May 04, 2008, 11:50:09 pm
OK No luck yet

I have now posted on both The DTC http://www.gplhost.com and the Smarty forums but have not any replies as yet

After looking through the smarty web forums I noticed that many many people have been having this sort of issue for many years past, actualy for the past 5 years and still people are having this sort of issue.  I would call that a big bug to be still an issue after 5 years of development.

Realy makes me wonder why civic crm would use a product that is prone to so many server based issues ????

I did do a re-test on a fresh vanila joomla 1.5 and still get the same error, but No error in the install process????

Anyway Ill report back If I get anywhere.

steve1084

  • Guest
most likely NOT an Openbase directory issue
May 10, 2008, 08:49:05 pm
Well I dont have an answer yet but have determined that this is most likely NOT an Openbase directory issue.

I tried this install on a joomla 1.0.15 test site and had no issues at all (on the same server) so I figure that it must simmply be a compatability issue with Joomla 1.5.3

I initialy had a simmilar issue with Group Jive but this was overcome by turning session handling to none.  Unfortunately this had no effect on the civic crm component.

I can only hope at this point that somebody will find what I have posted helpfull in the development of a Joomla 1.5.3 compatable version of Civic CRM.

Just mention that the error message only shows up becouse I have error reportying turned on in the php.ini file, If I turn error reporting OFF I get the whole blank screen thingy that many people have reported.  So Im assuming that behind there blank screen they are getting the error message the same as me.

I am happy to test and report

Anyway hope it wont be to long before a fully functional joomla 1.5 version will be available.

Thanks
Steve
« Last Edit: May 10, 2008, 08:57:41 pm by steve1084 »

steve1084

  • Guest
Re: open_basedir checking is wrong?
June 12, 2008, 05:26:25 pm
OK

I have been working with a developer of another component and was having a simmilar issue with open_basedir

It turned out that the open_basedir  checks that were being done were wrong.  The simmple solution was to remove the open_basedir  checks and to allow php to do its job without the extra open_basedir  checking they had in place.

Once this was done I had No issues with the component.

Is it possible to get a version of Civic CRM that has this open_basedir  checking removed as it is

A. Not being done properly and
B. Is stopping the installation and functioning of Civic CRM for some people.

I am happy to do testing :)

Thanks
Steve

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: open_basedir checks are wrong?
June 12, 2008, 06:42:34 pm

We do not have any checks for open_basedir in the CiviCRM codebase. I'm not sure if Smarty has open_basedir checks

Can u be more specific with what u need done?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

steve1084

  • Guest
Re: open_basedir checks are wrong?
June 12, 2008, 06:59:51 pm
As you can see by the  information I previously published the templat is Claiming there is an openbase directory restriction in place.

This is in fact not True,  so this indicates to me that the checking for Openbase directory restrictions is being done incorrectly by smarty template.  If these checks are either corrected or simmply Removed then I believe the issues experienced by some will be fixed.

I dont code so I can only go by what I have experienced with other application and I dont have a lot of info except that when he removed the checking for openbase restrictions It worked properly.  This is all I know.

Im not sure but looks like when it is checking for openbase directory restictions it will throw an error if it believes there to be any restrictions?  If the checking method is flawed then the error being shown is wrong and is therefore the cause of the error itself.

Sorry I dont have more information I can give.

I am happy to do testing

Thanks
Steve


organicathlete

  • Guest
Re: open_basedir checks are wrong?
July 16, 2008, 12:29:35 am
Hello Steve,
Were you ever able to resolve this?  I'm running into a similar error.

-Bradley

flug

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 12
Re: open_basedir checks are wrong?
November 18, 2010, 09:46:58 am
Quote from: organicathlete on July 16, 2008, 12:29:35 am
Hello Steve,
Were you ever able to resolve this?  I'm running into a similar error.

-Bradley

The open_basedir checks are in core.create_dir_structure.php (in the Smarty subdirectory).

One possible solution is http://forum.civicrm.org/index.php/topic,16636.0.html

Another would be to edit core.create_dir_structure.php to remove the open_basedir checks, which do seem to be the wrong way to go about this.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • open_basedir checks are wrong?

This forum was archived on 2017-11-26.