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) »
  • Developer Discussion »
  • Google Summer of Code »
  • GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
Pages: 1 2 [3] 4 5 ... 8

Author Topic: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation  (Read 9572 times)

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 28, 2015, 06:33:58 pm
Yes I did get the message when the 'amp test' failed to re-run 'amp config' and restart the apache2 service, also I added this line to the httpd.conf or apache2.conf which in my case is "Include /home/anudit/.amp/apache.d/*.conf" , which showed no error what so ever while restarting the apache2 service.
So there is a problem in my amp config step or apache is blocking it ? I suppose amp config went well, I provided correct apache/mysql details and it accepted it as well. May be Apache seems to be the problem or I am missing out something else ?
-for the love of code and always learning

Anudit Verma

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 30, 2015, 10:19:42 pm
Did you try the other path - moving the civicrm module folder to sites/all/modules in your existing install?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 01, 2015, 11:41:11 am
Any further update on this or on the project in general Anudit? Are you set with your local environment?

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 01, 2015, 01:01:07 pm
Hi

My updates:
Right now I am struggling with amp-config and amp-test but after discussing in an email correspondence with Eileen where I learnt that I can prefer to setup the site manually. Then following the md from here https://github.com/civicrm/civicrm-buildkit/blob/master/doc/civibuild.md

I have chosen demo site running Drupal and CiviCRM so after the installation in the end there were some general notes in the terminal :
Code: [Select]
[[General notes]]
 - You may need to restart httpd.
 - You may need to add the hostname and IP to /etc/hosts or DNS.

Following up, though I have added hostname and IP (not sure) used by installation as amp test got failed which would provide me relevant information which I can specify in the /etc/hosts/ ). So I want to know how can I add hostname/IP so that my apache server can lookup when I am visiting the installed CMS URL ?
Also for creating some codes I have tried and modified some existing extensions and hard coded them so that I can call them through extension manager. For my previously existing installed environment, (which didn't work out) I believe I should stick with my new one as the later one might throw some exception in the longer run. I truly want things to be working perfectly as they should be rather making some possible modifications so they just might work.
PS: I know I am posting it bit late but the amp config and dev environment setup from the beginning took some time.

Thank you.
-for the love of code and always learning

Anudit Verma

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 07, 2015, 06:11:28 am
Hi,

Updates:

-Implemented HAL browser on local Apache server.
-Skeletal hard coded API custom extension.
-Brief idea on working of APIs based on OSDI format with further understanding of Curies. You can follow http://opensupporter.github.io/osdi-docs/ for more details on Curies and for OSDI documentation

Next target:
-Resolving current issues with amp config and test for dev setup.
-Checking and modifying Apache server configurations for buildkit.

Thank you.
-for the love of code and always learning

Anudit Verma

joemcl

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 1
    • Citizen Action of New York
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.34
  • MySQL version: 5.6
  • PHP version: Unsure
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 07, 2015, 11:37:55 am
Anudit, thanks for the update. I'm still trying to schedule a Hangout/Skype/join.me session for all the GSoC students and mentors to do a walk through together on dev enviro set up. Hope  to nail that down soon.


In the meantime, can you post a little more detail here about the challenges/problems with amp config and test for dev setup, and Apache server configurations for buildkit?


Also, have you asked for help on those issues at irc.civicrm.org and civicrm.stackexchange.com?


Hope your exams went well!


Thanks again.

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 10, 2015, 12:51:14 am
Hi,

I am working on amp test and currently experiencing this warning:

Code: [Select]
Create test application
Create data directory: /home/anudit/.amp/canary/data/gjcucZImRk4qqznnJ2gKhUzYpwWY8mZd
AMP_URL='http://localhost:7979'
AMP_ROOT='/home/anudit/.amp/canary'
AMP_DB_DSN='mysql://canary_u4ntd:rfKrDtbMfsbxlM80@127.0.0.1:3306/canary_u4ntd?new_link=true'
AMP_DB_USER='canary_u4ntd'
AMP_DB_PASS='rfKrDtbMfsbxlM80'
AMP_DB_HOST='127.0.0.1'
AMP_DB_PORT='3306'
AMP_DB_NAME='canary_u4ntd'
AMP_DB_ARGS='-h 127.0.0.1 -u canary_u4ntd -prfKrDtbMfsbxlM80 -P 3306 canary_u4ntd'

Connect to test application
Expect response: "response-code-NZRE89IKAb"
PHP Warning:  file_get_contents(http://localhost:7979/index.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
 in /opt/buildkit/vendor/totten/amp/src/Amp/Command/TestCommand.php on line 153

Warning: file_get_contents(http://localhost:7979/index.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
 in /opt/buildkit/vendor/totten/amp/src/Amp/Command/TestCommand.php on line 153
Received incorrect response: ""
Tip: Try running "amp config" and/or restarting the webserver.

I hope to get it resolved pretty soon. I will definitely seek some help on IRC and possibly on stack exchange site as well.

We"ll catch up with my updates here and discuss about them in next check-in meeting.

Thank you.
« Last Edit: June 10, 2015, 01:34:28 am by Anudit Verma »
-for the love of code and always learning

Anudit Verma

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 11, 2015, 05:37:58 am
Hey, indeed, ask on sf

Not sure, but looks like something hasn't been installed properly (or need manual configuration for your webserver)

On SF, please add more details of what you are trying to run (command) and where you were before (what is your machine, what is your webserver...)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

joemcl

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 1
    • Citizen Action of New York
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.34
  • MySQL version: 5.6
  • PHP version: Unsure
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 11, 2015, 02:48:16 pm
Anudit - check out this post on StackExchange -http://civicrm.stackexchange.com/questions/2426/buildkit-warning-file-get-contentshttp-localhost7979-index-php-failed

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 12, 2015, 05:55:55 am
Joe- That's exactly what I am struggling with exact same scenario, well I tried those answers but still that problem is persistant (getting 403 forbidden ) I'll keep trying to get over this may be I am missing something, I need to review each and every steps now also I will post something like this on other relevant forums as well.

Thanks for providing this.
-for the love of code and always learning

Anudit Verma

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 12, 2015, 06:22:27 am
Hi Anudit, The problem is the user running the apache process doesn't have read permissions on the index.php file. If it looks like it does for the particular file, check the directories going from it all the way up to root / . For testing purposes you might want to use chmod 777 all the up, at least temporarily, or make the full path be owned by the apache user, again, only temporarily.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

joemcl

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 1
    • Citizen Action of New York
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.34
  • MySQL version: 5.6
  • PHP version: Unsure
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 12, 2015, 08:00:49 am
Anudit, can you try Joe Murray's recommendation below and post your progress as comments in the same StackExchange question - Chris Burgess is engaged with the person who asked the original question there as well. That way Joe, Chris and other people will see your updates and give advice as well - we're pushing folks to use the CiviCRM.StackExchange.com area for just these types of questions.


 

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 12, 2015, 10:45:15 am
Hi,

After bit more struggle and research about granting read/write permissions to apache server finally I am able to successfully pass the "amp test". :)
Below is the response received in the terminal:

Code: [Select]
Create test application
Create data directory: /home/anudit/.amp/canary/data/duRwk8VNuALm6ROAMZTl2xZaijYpusfy
AMP_URL='http://localhost:7979'
AMP_ROOT='/home/anudit/.amp/canary'
AMP_DB_DSN='mysql://canary_u4ntd:rfKrDtbMfsbxlM80@127.0.0.1:3306/canary_u4ntd?new_link=true'
AMP_DB_USER='canary_u4ntd'
AMP_DB_PASS='rfKrDtbMfsbxlM80'
AMP_DB_HOST='127.0.0.1'
AMP_DB_PORT='3306'
AMP_DB_NAME='canary_u4ntd'
AMP_DB_ARGS='-h 127.0.0.1 -u canary_u4ntd -prfKrDtbMfsbxlM80 -P 3306 canary_u4ntd'

Connect to test application
Expect response: "response-code-NNiUtYhlEZ"
Received expected response


So for accomplishing this, I added specific permissions to the directory of buildkit in apache2.conf . Then I sudo chmod permissions to the directory.
Here is the code I added in apache2.conf :

Code: [Select]
<Directory /opt/buildkit>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

Or you can add your root directory with some configuration if it doesn't work (not recommended)
Code: [Select]
<Directory />
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Require all granted
    Allow from all
</Directory>
Now I can proceed with the setup of my local dev site. I will post my updates on that real soon.

Thank you.
« Last Edit: June 13, 2015, 12:34:37 pm by Anudit Verma »
-for the love of code and always learning

Anudit Verma

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 14, 2015, 12:39:04 am
Hi again,

Finally I got my local development environment setup and working :)
After the site setup I was unable to login into CiviCRM sandbox, the page was kind of unresponsive. Nothing happened when I tried to login with demo username and password infact with admin username and pass it didn't work.
So in order to fix this I enabled mod_rewrite in apache, this issue can be viewed here https://github.com/totten/amp/issues/23

Now I am looking forward to proceed with my work having custom extensions and person_signup_helper for OSDI

Thank you.
-for the love of code and always learning

Anudit Verma

joemcl

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 1
    • Citizen Action of New York
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.34
  • MySQL version: 5.6
  • PHP version: Unsure
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
June 14, 2015, 11:58:27 am
Anudit, congratulations!  :)

Pages: 1 2 [3] 4 5 ... 8
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Google Summer of Code »
  • GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation

This forum was archived on 2017-11-26.