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 IMAP2SOAP »
  • CiviMail Alternative Configuration Error
Pages: [1]

Author Topic: CiviMail Alternative Configuration Error  (Read 2168 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
CiviMail Alternative Configuration Error
June 18, 2008, 11:17:32 am
I am trying to following these instructions http://wiki.civicrm.org/confluence/display/CRMDOC/Alternative+configuration+with+imap2soap.pl+-+no+Amavis+or+root+access
to set up CiviMail on a shared host. I *think* I have followed all the directions. I am trying to test the imap2soap.pl script by running this command:

perl imap2soap.pl imap2soap.conf

and I'm getting this error:
Quote
Can't locate SOAP/Lite.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at ./imap2soap.pl line 76.
BEGIN failed--compilation aborted at ./imap2soap.pl line 76.

My first inclination is that it's looking for a SOAP:Lite installation as outlined in the alternative configuration page. However, in the documentation it says
Quote
f you have a SOAP-less PHP 5, there is a section below on installing SOAP::Lite that you can follow.

My PHP installation does have soap support as far as I can tell. I have checked my PHP info page, and I have the following:
Quote
soap
Soap Client    enabled
Soap Server    enabled

Directive   Local Value   Master Value
soap.wsdl_cache   1   1
soap.wsdl_cache_dir   /tmp   /tmp
soap.wsdl_cache_enabled   1   1
soap.wsdl_cache_limit   5   5
soap.wsdl_cache_ttl   86400   86400

I also check DOM and have this:

Quote
dom
DOM/XML    enabled
DOM/XML API Version    20031129
libxml Version    2.6.32
HTML Support    enabled
XPath Support    enabled
XPointer Support    enabled
Schema Support    enabled
RelaxNG Support    enabled


So if I have what is required to not have to install SOAP:Lite, why is it not finding it? Here is all the information I have:

- I have a domain called mywebsite.net. On that same hosting provider, I have another domain called my2ndsite.net. This my2ndsite.net is where I am running CiviCRM and thus CiviMail. So here is how my file structure is set by this host:

/home/me/public_html/ is my mywebsite.net domain
/home/me/public_html/my2ndsite is my my2ndsite.net domain
so
/home/me/public_html/my2ndsite/sites/all/modules/civicrm is where civicrm lives.

Also, this host gives a cgi-bin folder for executable files. This folder lives at:
/home/me/public_html/cgi-bin

So I have imap2soap.pl and imap2soap.conf both living in the that cgi-bin folder.

In imap2soap.conf I have my SOAP server line as follows:

$SOAP_Server   = 'http://www.my2ndsite.net/sites/all/modules/civicrm/extern/soap.php';

Since it's erroring out at the SOAP part of imap2soap.pl, I don't think my IMAP settings are relevant.

I would love any ideas you can give me. Thanks!
Emily

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: CiviMail Alternative Configuration Error
June 18, 2008, 12:29:30 pm
Just to give an update: I made an executive decision that while my PHP is compiled with soap, I must not have the SOAP::Lite component of perl? This isn't in the docs, but the error seems very specific to perl, so I went ahead and tried to install SOAP::Lite in my home directory as it suggests. After all is said and done, I continue to get the same error.

In detail, here is what happened.

- I got into CPAN and ran install SOAP::Lite. It went through a whole downloading process, and then I noticed the end of the entry says this:

Quote
Running make install
Prepending /home/vermcha3/.cpan/build/SOAP-Lite-0.710.07-z79sWO/blib/arch /home/vermcha3/.cpan/build/SOAP-Lite-0.710.07-z79sWO/blib/lib to PERL5LIB for 'install'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1
make: *** [pure_site_install] Error 2
  MKUTTER/SOAP-Lite-0.710.07.tar.gz
  /usr/bin/make install -I~/lib -- NOT OK
----
  You may have to su to root to install the package
  (Or you may want to run something like
    o conf make_install_make_command 'sudo make'
  to raise your permissions.Failed during this command:
 MKUTTER/SOAP-Lite-0.710.07.tar.gz            : install NO


So I am now assuming that I in fact can't install this? It's telling me I do need root access? I am confused because I thought the whole point of this documentation was that I don't need root access....am I just doing something wrong? Is there another command I can run to get this to work? I am not a cpan user, so I am stuck.

Thanks!

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: CiviMail Alternative Configuration Error
June 26, 2008, 03:21:48 pm
Hi Emily,

I think the instructions here should help you out: http://servers.digitaldaze.com/extensions/perl/modules.html 

Instead of PREFIX=/usr/home/USERNAME/usr/local/ I'd just try using PREFIX=~/usr/local/

-Jeremiah
http://dharmatech.org
oss@dharmatech.org
801.541.8671

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: CiviMail Alternative Configuration Error
June 27, 2008, 06:51:26 am
Hey Jeremiah,

Gave that a shot but my cpan installs are still failing. I'm talking with the host to try to resolve it. If I ever get it figured out, I will post back here and update the wiki.

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: CiviMail Alternative Configuration Error
June 27, 2008, 03:14:51 pm
I've also had luck just downloading the tar.gz's for the packages I want from search.cpan.org and compiling them when the interactive CPAN fails.  When you make the package that way you can specify the directory as well.

-Jeremiah
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using IMAP2SOAP »
  • CiviMail Alternative Configuration Error

This forum was archived on 2017-11-26.