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 »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • Question would like to try an idea I have to optimize this service for dreamhost
Pages: [1]

Author Topic: Question would like to try an idea I have to optimize this service for dreamhost  (Read 1218 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Question would like to try an idea I have to optimize this service for dreamhost
November 20, 2009, 02:01:52 pm
Our PS at dreamhost does not come preconfigured with soap. They let you build and run your own php.cgi but I feel it is just too slow compared to what we offered our clients in mod_php. I know it is better security but I think there are other ways to keep security high.
So my idea is this.
We have ONE site run this php.cgi call it http://civimail.mainhub.org
And that civicrm.settings.php file has a array of variables in to to substitute the key info to make it use the database of the client sending the email.
For example.
Client http://fast.civicrmsite.org use mod_php to do all their work BUT when they send a civimail their cron job is set to run with https://civimail.mainhub.org?all_the_extra_info_here_username_etc_and_one_extra_field_client_fco
FCO being the acronym for the site it is sending for.
Then the civicrm.settings.php sees that GET and looks in it's array for the matching set of data for that client for example
if(client == 'fco') then
database = fast_civicrmsite

etc... filling in all the values needed on the fly.
Also the cron is passing the proper username and key for that client.

So the cool thing here is the only php_cgi stuff is the for the one site not all the other sites slowing them down.
The one tough part is the communications from the soap server back to the civimail.mainhub.org which I have no clue about, if there is any?

Any thoughts?
Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • Question would like to try an idea I have to optimize this service for dreamhost

This forum was archived on 2017-11-26.