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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Modify Address Directory
Pages: [1]

Author Topic: Modify Address Directory  (Read 407 times)

oliverform

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 4.0
  • MySQL version: 5.5.37-cll
  • PHP version: 5.4.30
Modify Address Directory
September 18, 2014, 02:51:29 am
Is there a way to change where CiviCRM looks for the Address file in the settings?

Technical details:
Wordpress 4.0
CiviCRM 4.4.6
Shared Hosting
open_basedir enabled

This is on a clean install of WP 4.0 and aside from a maintenance mode plugin CiviCRM is the only other plugin installed. Currently a sandbox site to test with CiviCRM.

On CiviCRM's front page there's an error relating to CURL but I think I have a solution for that already in another topic.

My main concern is on the Administer->Localization->Address Settings page where the error at the bottom appears.

Warning: is_dir(): open_basedir restriction in effect. File(/usr/lib/php/CRM/Utils/Address) is not within the allowed path(s): 
(/home/website:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in
/home/website/public_html/sandbox_subdomain/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php on line 1487


I've contacted my hosting about this and informed them about open_basedir. I also mentioned that it was unsafe to disable it but they immediately disabled it even though I was looking for a solution while open_basedir was enabled. They also stated that shared hosting accounts aren't allowed to add/allow custom paths for PHP.ini and that the /usr/lib/php/CRM/Utils/Address path doesn't exist outside of my site document root. I had them enable it again. I'm looking for another solution.

Why does CiviCRM look for that directory? Is is possible to change it so CiviCRM will point elsewhere? (preferably to an existing path so that it won't generate the error)

Additional Note:
When my hosting disabled open_basedir the error immediately disappeared. But, again, they mentioned that the path it was trying to touch did not exist. And I've read articles recommending that open_basedir remain enabled.

This my first time installing CiviCRM. Please be lenient. Any help relating to what I mentioned on this post is greatly appreciated.  ;D

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: Modify Address Directory
September 18, 2014, 08:53:36 am

you might need to get a better host :(

from your message:

 They also stated that shared hosting accounts aren't allowed to add/allow custom paths for PHP.ini

civi relies on adding its classpath to php to find files. Your include path seems a bit off and hence civi cant find that file

i would expect most of it to be broken, not just the address screen

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

oliverform

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Wordpress 4.0
  • MySQL version: 5.5.37-cll
  • PHP version: 5.4.30
Re: Modify Address Directory
September 19, 2014, 02:30:13 am
Thanks for replying Donald  :)

So even if I have my hosting disable open_basedir (error disappears), does that mean that Civi will still not work properly? Also I'm planning to install this on multiple sites and probably with shared hosting accounts. Is changing hosts my only option if I want to use CiviCRM properly?

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: Modify Address Directory
September 19, 2014, 07:11:40 am

sorry, no idea on what may or may not work with your hosting provider

In general, we do recommend that folks spend a bit extra $$ and ensure they are on good reliable hosting.

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

2020media

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
    • 2020Media
Re: Modify Address Directory
November 04, 2014, 09:33:53 am
Hi

Could you clarify this as I don't quite understand why the host is to blame here.

The poster states his configured open_basedir which looks normal to me for a shared hosting enviroment.
However the Civicrm error seems to be looking in a completely different part of the server, nowhere near where the site is installed [/usr/lib/php/].

In a shared hosting environment, you would not normally let the user stray outside their configured home directory, for security - that's the point of the open_basedir setting.


CiviCRM Hosting: [http://www.2020media.com/civicrm]

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Modify Address Directory

This forum was archived on 2017-11-26.