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 »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • fcgi/dso issues on apache server
Pages: [1]

Author Topic: fcgi/dso issues on apache server  (Read 3315 times)

bonhommie

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
fcgi/dso issues on apache server
June 12, 2009, 12:15:29 pm
I recently changed my php handler on my apache server from dso to fcgi because I wanted to take advantage of suexec on some apps but civicrm gives a blank page with this setting. My guess is civicrm is running as nobody or so, because it only works with dso.
Drupal works in both modes. I just need pointers on which file permissions/ownership settings to check. I also have ssh access.

thanks.

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: fcgi/dso issues on apache server
June 12, 2009, 09:57:47 pm

do the error logs give you any message for the blank page (they should)

basically in drupal, civicrm needs write permission on the files/civicrm directory (under the default settings)

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

bonhommie

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
Re: fcgi/dso issues on apache server
June 13, 2009, 06:17:34 am
thanks Lobo.

I only have one entry in the logs:

[Sat Jun 13 07:06:06 2009] [notice] mod_fcgid: call /home/kidsmeal/public_html/index.php with wrapper /usr/local/cpanel/cgi-sys/php5

even though I refreshed the page several times.

then I crazily set all files + folders to 777, it still did not work.
then I set owner + group to nobody, and no luck!

so I set them all back.
Then, I changed the server settings a few times and found the drupal part of the site works with all, but the civicrm will only work when SuEXEC is disabled, and not using SuPHP.


thanks.

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: fcgi/dso issues on apache server
June 13, 2009, 07:22:55 am

sorry, no idea. you'll have to trace this and figure out whats happening and why. I dont think we do anything specific that prevents it from running under suPHP/suExec. Please submit a patch if you figure it out

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

bonhommie

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
Re: fcgi/dso issues on apache server
June 13, 2009, 09:01:15 pm
thanks Lobo,
I just checked the civicrm log file and I had this entry:

Code: [Select]
Jun 12 11:48:54  [info] $Fatal Error Details = Array
(
    [message] => The page you requested is currently unavailable.
    [code] =>
)


Jun 12 11:48:54  [info] $backTrace = /home/kidsmeal/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 267
/home/kidsmeal/public_html/sites/all/modules/civicrm/CRM/Contribute/Form/ContributionBase.php, fatal, 216
/home/kidsmeal/public_html/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution/Main.php, preProcess, 59
/home/kidsmeal/public_html/sites/all/modules/civicrm/CRM/Core/Form.php, preProcess, 312
/home/kidsmeal/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 98
/home/kidsmeal/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/kidsmeal/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/kidsmeal/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 232
/home/kidsmeal/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 197
/home/kidsmeal/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 315
, civicrm_invoke,
/home/kidsmeal/public_html/includes/menu.inc, call_user_func_array, 348
/home/kidsmeal/public_html/index.php, menu_execute_active_handler, 18

any bells?

thanks[/code]

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: fcgi/dso issues on apache server
June 13, 2009, 10:44:51 pm

what url are you hitting? does the error correspond to the same time when you access the url?

that error message is thrown when u try to access an inactive contribution page

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

bonhommie

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
Re: fcgi/dso issues on apache server
June 15, 2009, 07:50:10 am
Hi Lobo,
thanks for the help.

I found out that deleting the sites/default/files/civicrm folder, and refreshing the contribution page, fixed the problem!
So now it works with Su. I'm not sure how those two are related but... glad it's over!


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • fcgi/dso issues on apache server

This forum was archived on 2017-11-26.