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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Did anybody install CiviCRM on shared server with PHP safe mode on??
Pages: [1]

Author Topic: Did anybody install CiviCRM on shared server with PHP safe mode on??  (Read 1872 times)

volmark

  • I post occasionally
  • **
  • Posts: 81
  • Karma: -6
Did anybody install CiviCRM on shared server with PHP safe mode on??
December 27, 2007, 07:25:05 am
My hosting stuff insists that it is not possible to install CiviCRM on Drupal because they can not disable this option (PHP safe mode) on security reasons.
The problem is that Drupal (or CiviCRM on Drupal) creates some temporary directories and session files as HTTPD process but because the default permissions on server are 644 (not writable) it is not able to save files in /drupal/files/civicrm/templates_c/en_US/.
Strange enough but it works from time to time for a short time and I can see some session files in the directory named above.
« Last Edit: January 02, 2008, 05:50:19 am by volmark »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Is anybody has CiviCRM installed on shared server with PHP safe mode on??
December 28, 2007, 04:58:28 am
Who is the owner of the problematic directory? If it’s httpd, then it shouldn’t be a problem; if it’s you, then maybe you can switch the permissions over FTP so that httpd can upload there?

The easiest way would be for httpd to own the drupal/files directory (and everything below), so it can create/delete template caches at will.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

volmark

  • I post occasionally
  • **
  • Posts: 81
  • Karma: -6
Re: Is anybody has CiviCRM installed on shared server with PHP safe mode on??
December 28, 2007, 06:53:12 am
The owner of directory is HTTPD and I’m not able to change the ownership over FTP. It’s possible to manually (FTP) change permissions on the directory to 777 but next time the HTPPD is attempting to write to this directory they changes back to 644.
I’ve experimented with the directory trying to delete it and create again as myself as owner but next time the HTTPD try to write to this directory the ownership was changed back to HTTPD and permissions were changed to 644.
The administrative stuff oh my share server insists that it because PHP safe mode is on but I don’t believe in this claim. I believe there is an another way to get the problem solved.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Is anybody has CiviCRM installed on shared server with PHP safe mode on??
January 01, 2008, 11:01:49 pm
If the directory has its permissions changed to 644, then it’s non-executable, which means nobody can enter it. If the directory were set to 755 (with the owner of httpd), the httpd user should be able to write in it perfectly well.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Did anybody install CiviCRM on shared server with PHP safe mode on??

This forum was archived on 2017-11-26.