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) »
  • PHP 500 error when trying to enforce SSL on civicrm/admin/setting/url
Pages: [1]

Author Topic: PHP 500 error when trying to enforce SSL on civicrm/admin/setting/url  (Read 1351 times)

encircle

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5.3
PHP 500 error when trying to enforce SSL on civicrm/admin/setting/url
October 29, 2012, 01:32:23 pm
Hi, I've been trying to track down some information regarding SSL and enforcing this in CiviCRM and have followed all the guides, but getting totally stuck when updating the civicrm/admin/setting/url page...

I have a self signed certificate set-up on the server and can happily access https://[mydomain.com]/civicrm (Albeit accepting the warnings from my browser).

However when I try and set the "Force Secure URLs (SSL)" option on the page: civicrm/admin/setting/url and click "Save" button, I get a 500 error.

Could this be a stray permission setting on a file preventing the web server from updating a file? I'm using Fast-CGI PHP5.3 and Apache2 on Ubuntu.

Any ideas how I can trouble-shoot this would be appreciated.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: PHP 500 error when trying to enforce SSL on civicrm/admin/setting/url
October 30, 2012, 05:19:18 am
For a 500 error, there should be an error stored in the Apache logs. Can you look there?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

encircle

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5.3
Re: PHP 500 error when trying to enforce SSL on civicrm/admin/setting/url
October 30, 2012, 08:41:45 am
I get the following in the access log (var/log/apache2/other_vhosts_access.log)

 "POST /civicrm/admin/setting/url HTTP/1.1" 500 452 "http://[domain.com]/civicrm/admin/setting/url" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4"

But there is nothing in the error.log file in the same directory. The only lines are warnings and notices when I restarted the apache2 service after enabling logging:-

[Tue Oct 30 15:36:15 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Oct 30 15:36:15 2012] [notice] Apache/2.2.22 (Ubuntu) DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.6 PHP/5.3.10-1ubuntu3.4 with Suhosin-Patch mod_python/3.3.1 Python/2.7.3 mod_ruby/1.2.6 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.22 OpenSSL/1.0.1 configured -- resuming normal operations

As this is a Virtual host, do I need to enable error logging in another .ini file? I've enabled it in: /etc/php5/apache2/php.ini by setting "E_ALL | E_STRICT"

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: PHP 500 error when trying to enforce SSL on civicrm/admin/setting/url
October 30, 2012, 08:47:10 am
I do believe the issue is:

Quote from: encircle on October 30, 2012, 08:41:45 am
[warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support

See http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#vhosts for more information.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

encircle

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5.3
Re: PHP 500 error when trying to enforce SSL on civicrm/admin/setting/url
October 30, 2012, 08:55:32 am
DOH!!! Sorry - error.log file was under the vhost folder for that domain!!!  :-[

The error is below:-

[Tue Oct 30 15:36:44 2012] [warn] [client [ip]] mod_fcgid: stderr: PHP Fatal error:  Call to undefined function curl_init() in /var/www/[DOMAIN]/web/sites/all/modules/civicrm/CRM/Utils/System.php on line 792, referer: http://[DOMAIN]/civicrm/admin/setting/url

Which led me to install the missing cCurl module:-

 apt-get install php5-curl

Restarted apache and error has gone! Thanks for pointing me in the right direction, Hershel :) Next job is to sort out the SSL for the vhosts!

Cheers,
Darren

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • PHP 500 error when trying to enforce SSL on civicrm/admin/setting/url

This forum was archived on 2017-11-26.