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) »
  • Extensions needed to Compile PHP from source
Pages: [1]

Author Topic: Extensions needed to Compile PHP from source  (Read 1288 times)

kehogo

  • I’m new here
  • *
  • Posts: 5
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.1
  • PHP version: 5.3
Extensions needed to Compile PHP from source
April 10, 2012, 11:43:03 am
I am compiling PHP 5.3.8 from source for a Drupal 6.x Civi 4.1 setup. (The same issue arose with a Civi 3.4.x)

I have the following switches in my compile statement:
php -m

[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
gd
hash
iconv
json
libxml
mbstring
mysql
mysqli
mysqlnd
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
SQLite
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter

[Zend Modules]


And I'm getting intermittent errors while running the application
For example:

Turn on “pay by check” option.
Tab: Amounts, /civicrm/admin/contribute/settings?reset=1&action=update&id=2
Check the “Pay later option” and it errors out:
(Sorry. A non-recoverable error has occurred. We experienced an unexpected error. Please post ...)

It's unclear whether it's the PHP or something else with my server - the installs are vanilla with no modules in Drupal except Civi.

Does anybody have a list of the necessary extensions, etc., that are required for PHP to run Civi correctly. 

Thanks!  :)

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Extensions needed to Compile PHP from source
April 10, 2012, 12:05:56 pm
kehogo :

It's an issue with D6 + 4.1
Filed a similar issue for events here:
http://issues.civicrm.org/jira/browse/CRM-9989

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

kehogo

  • I’m new here
  • *
  • Posts: 5
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Extensions needed to Compile PHP from source
April 10, 2012, 03:01:26 pm
Thanks Yashoda!

I'll definitely look into that patch.

AND

This is still not a final list of extensions, for example, I just ran into the need to compile with
--enable-calendar

So, I'll add that to the list and keep going.

If anybody can generate a complete list, that would be ideal.  If not, I'll keep updating this.

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: Extensions needed to Compile PHP from source
April 10, 2012, 03:13:00 pm

here's my compile list:

Code: [Select]
./configure'  '--prefix=/opt/local' '--mandir=/opt/local/share/man' '--infodir=/opt/local/share/info' '--with-config-file-path=/opt/local/etc/php5' '--with-config-file-scan-dir=/opt/local/var/db/php5' '--disable-all' '--enable-bcmath' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-hash' '--enable-json' '--enable-libxml' '--enable-pdo' '--enable-phar' '--enable-session' '--enable-simplexml' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-bz2=/opt/local' '--with-mhash=/opt/local' '--with-pcre-regex=/opt/local' '--with-readline=/opt/local' '--with-libxml-dir=/opt/local' '--with-zlib=/opt/local' '--disable-cgi' '--with-apxs2=/opt/local/apache2/bin/apxs' '--with-pear=/opt/local/lib/php'

I've also installed a few other php5 extensions, the important ones include:

Code: [Select]
php5-curl                      @5.3.10         php/php5-curl
php5-gd                        @5.3.10         php/php5-gd
php5-iconv                     @5.3.10         php/php5-iconv
php5-intl                      @5.3.10         php/php5-intl
php5-mbstring                  @5.3.10         php/php5-mbstring
php5-mcrypt                    @5.3.10         php/php5-mcrypt
php5-mysql                     @5.3.10         php/php5-mysql
php5-openssl                   @5.3.10         php/php5-openssl

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

kehogo

  • I’m new here
  • *
  • Posts: 5
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Extensions needed to Compile PHP from source
April 11, 2012, 08:19:08 pm
Excellent - thanks very much!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Extensions needed to Compile PHP from source

This forum was archived on 2017-11-26.