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) »
  • php required?
Pages: [1]

Author Topic: php required?  (Read 6556 times)

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
php required?
August 19, 2008, 01:02:12 pm
The 2.1 Drupal install doc http://wiki.civicrm.org/confluence/display/CRMDOC/Install+2.1+for+Drupal
says PHP 5.2.x is required.

The installer says
"You need PHP version 5.2.1 or later, only 5.2.0 is installed."

I have Debian Etch with php 5.2.0-8+etch11

Is the difference critical to CiviCRM 2.1

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: php required?
August 19, 2008, 02:04:48 pm

I dont think so. i dont remember any specific issue not working with php 5.2.0

in general most of our devel servers are running the latest version of php (i.e. php 5.2.6)

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

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: php required?
August 19, 2008, 04:26:22 pm
The installer won't run with the php version flagged. It also wants to put civicrm.settings.php in sites/default which isn't where it needs to go in a multi-site install. I could move it after if I could get the installer to run.

Can I still install civicrm manually?

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: php required?
August 19, 2008, 05:16:47 pm

hey neil:

yes you can install it manually. the installer was designed and built for a single site install. multi-site installs will need to be manual. You can also edit the install/index.php code and reduce the version requirement to 5.2.0

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

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: php required?
August 20, 2008, 12:36:22 am
Neil:

We have fixed installer to support CivCRM installation in /site/all (we copy civicrm.settings.php to /sites/default) or /sites/site-name (we copy civicrm.settings.php to /sites/site-name/). This will be part of alpha4.

Kurund
Found this reply helpful? Support CiviCRM

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: php required?
August 20, 2008, 12:27:42 pm
I edited the install script to accept php 5.2.0 and it worked fine.

In a multisite install the files directories also need to go in /sites/sitename.com/files/civicrm
I created the directories and edited global settings>directories with the new paths, no problems.

roshan

  • Guest
Re: php required?
October 15, 2008, 04:54:18 pm
How did you modify your install script? Which file needs changing?

Thanks :)

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: php required?
October 15, 2008, 06:15:36 pm
file is civicrm/install/index.php

line 222          $this->requirePHPVersion('5.2.1', array("PHP Configuration", "PHP5 installed", null, "PHP version " . phpversion()));

change 5.2.1 to 5.2.0

Neil

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: php required?
October 16, 2008, 10:23:50 am
It noticed this too with all my multi site install scripts.
/var/www/web/sites/default has a ln -s to the latest civicrm.settings.php file I am using

So if I am installing
/var/www/web/sites/www.example.com
then the civicrm settings file in there is real and there is a soft link back to
/var/www/web/sites/default

The core of this install never get's used so I figure it is no big deal.

Then when I install another site I would do
cd /var/www/web/sites/default
rm civicrm.settings.php
ln -s /var/www/web/sites/www.exampleNEW.com/civicrm.settings.php .
and now the install works fine.

Not sure if that helps

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: php required?
December 09, 2008, 12:31:14 pm
Re PHP 5.2.1 requirement, have opened a ticket and added a patch.

http://issues.civicrm.org/jira/browse/CRM-3919

@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • php required?

This forum was archived on 2017-11-26.