These are chat archives for ushahidi/Community

17th
Nov 2016
TheNiqabiCoderMum
@nqcm
Nov 17 2016 07:54
@tameen @ushbot i tried deleteing composer, and reinstalling it. i followed instructions from here to make it global https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx
tameen
@tameen
Nov 17 2016 07:57
ok then??
does it work??
TheNiqabiCoderMum
@nqcm
Nov 17 2016 07:58
but now i am getting this
2016-11-17_0956.png
the red arrow at the top is just to hide my ip add
tameen
@tameen
Nov 17 2016 07:59
no worries i got the same exception
wait
TheNiqabiCoderMum
@nqcm
Nov 17 2016 07:59
ok
tameen
@tameen
Nov 17 2016 07:59
did you execute this:
chmod 0777 application/logs application/cache application/media/uploads
TheNiqabiCoderMum
@nqcm
Nov 17 2016 08:00
i took the chown route
tameen
@tameen
Nov 17 2016 08:00
execute this one
too
TheNiqabiCoderMum
@nqcm
Nov 17 2016 08:00
ok
ok i did it and then tried running bin/update again and this time i got this
2016-11-17_1002.png
will i need to download mysql again?
tameen
@tameen
Nov 17 2016 08:03
ok i got the same :D
TheNiqabiCoderMum
@nqcm
Nov 17 2016 08:03
:)
tameen
@tameen
Nov 17 2016 08:03
can you please share your .env file
?
TheNiqabiCoderMum
@nqcm
Nov 17 2016 08:03
ok
2016-11-17_1004.png
ok its done
joys of copy pasting code :)
i forgot to remove the code tag :)
thanks @tameen
tameen
@tameen
Nov 17 2016 08:07
what i did : my password was ushahidi_db_password i changed .env and changed DB_PASS line to this : DB_PASS='ushahidi_db_password'
woww great :+1: @Theniqabicodermum
TheNiqabiCoderMum
@nqcm
Nov 17 2016 08:08
thnx for the help
tameen
@tameen
Nov 17 2016 08:09
no problem @Theniqabicodermum :)
TheNiqabiCoderMum
@nqcm
Nov 17 2016 10:38
@d_samuraiNick_twitter @tameen @ushbot when i am running gupl build i am getting this
12.37.PNG
TheNiqabiCoderMum
@nqcm
Nov 17 2016 10:45
any help?
Ushbot
@ushbot
Nov 17 2016 11:48
[David Losada, Ushahidi] Theniq, those are just warnings actually, so there’s nothing to worry about in that screen
[David Losada, Ushahidi] I’d like to take the opportunity to say thank you to everybody that’s hanging around in this channel. It’s great to have you and your participation is invaluable!
[David Losada, Ushahidi] tameen, how is your setup going?
TheNiqabiCoderMum
@nqcm
Nov 17 2016 12:11
@ushbot thanks a bunch! i finally managed to launch
thanks a lot to everyone for all the support!
TheNiqabiCoderMum
@nqcm
Nov 17 2016 12:28
ok me back again. i lainched the app but even after i login as admin, i am unable to see the settings on left hand side. i only see map and timeline but no activity or settings tab @ushbot
and there is no map displayed just a grey screen, is it normal?
Ushbot
@ushbot
Nov 17 2016 12:41
[David Losada, Ushahidi] is your api really working? we should test that
[David Losada, Ushahidi] what is the URL of your API?
[David Losada, Ushahidi] (we also call it backend)
Ushbot
@ushbot
Nov 17 2016 12:43
[David Losada, Ushahidi] doesn’t look good, http://community.helpsa.org.za/api/v3/config
[David Losada, Ushahidi] that returns a HTML document
TheNiqabiCoderMum
@nqcm
Nov 17 2016 12:44
this is what i have put on the backend URL when installing client
yup
what should i do now?
and i hv an urgent meeting coming up, can you put the steps to check here and i can check them out later?
thanks
Ushbot
@ushbot
Nov 17 2016 12:46
[David Losada, Ushahidi] the way to make sure is: you need to set up your backend domain so that when you access /api/v3/config inside it, you get a JSON document
[David Losada, Ushahidi] for example: https://quakemap.api.ushahidi.io/api/v3/config
TheNiqabiCoderMum
@nqcm
Nov 17 2016 12:48
where do u think the mistake will be? where should i check?
Ushbot
@ushbot
Nov 17 2016 12:48
[David Losada, Ushahidi] first thing to check is whether you know your two urls
[David Losada, Ushahidi] 1. the one where your backend is served
[David Losada, Ushahidi] 2. the one where your client is served
[David Losada, Ushahidi] the first matches the installation of the “platform” project
[David Losada, Ushahidi] the second matches the installation of “platform-client"
[David Losada, Ushahidi] I think http://community.helpsa.org.za is your “platform-client”, url number 2
TheNiqabiCoderMum
@nqcm
Nov 17 2016 12:51
ok
and what will be the url for platform project?
Ushbot
@ushbot
Nov 17 2016 12:51
[David Losada, Ushahidi] that is something of your choosing
[David Losada, Ushahidi] if you are using apache, it will be the value of the ServerName directive for that specific virtual host
TheNiqabiCoderMum
@nqcm
Nov 17 2016 12:52
so i will actually need two urls and point platform to one and platform-client to other
ok i hav actually put the same on both virtual hosts
Ushbot
@ushbot
Nov 17 2016 12:53
[David Losada, Ushahidi] that;s correct
TheNiqabiCoderMum
@nqcm
Nov 17 2016 12:53
let me change that and see if it makes a diff
Ushbot
@ushbot
Nov 17 2016 12:53
[David Losada, Ushahidi] great
[David Losada, Ushahidi] once you have changed that and you know your backend url , you can test the backend by looking at http://\(your backend url base)/api/v3/config
[David Losada, Ushahidi] that should return a JSON document
TheNiqabiCoderMum
@nqcm
Nov 17 2016 12:54
i am actually using aws ec2, and using CNAME record rather than a subdomain, will that make a diff?
Ushbot
@ushbot
Nov 17 2016 12:55
[David Losada, Ushahidi] that should work
[David Losada, Ushahidi] each CNAME will map to a different apache virtual host, even if they resolve to the same IP
[David Losada, Ushahidi] once your http://\(your backend url base)/api/v3/config works , you will need to repeat the building of the platform-client project. Repeat from the step where the instructions tell you to set the BACKEND_URL environment variable. It should be BACKEND_URL=http://\(your backend url base)
TheNiqabiCoderMum
@nqcm
Nov 17 2016 13:00
ok i will follow up the steps and let you know the outcome. thanks
Ushbot
@ushbot
Nov 17 2016 13:02
[David Losada, Ushahidi] welcome, good luck!
TheNiqabiCoderMum
@nqcm
Nov 17 2016 13:02
i hv changed the virtual host for platform, but i am getting a connection timed out message
when trying to get to the http://app.helpsa.org.za/api/v3/config
Ushbot
@ushbot
Nov 17 2016 13:03
[David Losada, Ushahidi] it actually works well from my side
[David Losada, Ushahidi] \` $ curl [http://app.helpsa.org.za/api/v3/config](http://app.helpsa.org.za/api/v3/config) { "count": 3, "results": \[ { "id": "features", "url": "[http://app.helpsa.org.za/api/v3/config/features](http://app.helpsa.org.za/api/v3/config/features)", "views": { "map": true, "list": true, "chart": true, "timeline": true, "activity": true, "plan": false }, "data-providers": { "smssync": true, "twitter": true, "frontlinesms": true, "email": true, "twilio": true, "nexmo": true }, "limits": { "posts": true, "forms": true, "admin\_users": true }, "private": { "enabled": true }, "roles": { "enabled": true }, "data-import": { "enabled": true }, "allowed\_privileges": \[ "read", "search" \] }, { "id": "site", "url": "[http://app.helpsa.org.za/api/v3/config/site](http://app.helpsa.org.za/api/v3/config/site)", "name": "", "description": "", "email": "", "timezone": "UTC", "language": "en-US", "date\_format": "n/j/Y", "client\_url": false, "first\_login": true, "tier": "free", "private": false, "allowed\_privileges": \[ "read", "search" \] }, { "id": "map", "url": "[http://app.helpsa.org.za/api/v3/config/map](http://app.helpsa.org.za/api/v3/config/map)", "clustering": false, "cluster\_radius": 50, "default\_view": { "lat": -1.3048035, "lon": 36.8473969, "zoom": 2, "baselayer": "MapQuest", "fit\_map\_boundaries": true, "icon": "map-marker", "color": "blue" }, "allowed\_privileges": \[ "read", "search" \] } \] }`
[David Losada, Ushahidi] don’t you see that when you open http://app.helpsa.org.za/api/v3/config with the browser?
TheNiqabiCoderMum
@nqcm
Nov 17 2016 13:09
nops it just says it is taking too long
may be it is aproblem with my net
so now i should go ahead and follow the steps for building the platform-client
2016-11-17_1511.png
Ushbot
@ushbot
Nov 17 2016 13:13
[David Losada, Ushahidi] yes, setting BACKEND_URL=http://app.helpsa.org.za
TheNiqabiCoderMum
@nqcm
Nov 17 2016 13:16
2016-11-17_1515.png
thi sis what my .env file looks like. good enough?
Ushbot
@ushbot
Nov 17 2016 13:17
[David Losada, Ushahidi] yea I think that should be ok
TheNiqabiCoderMum
@nqcm
Nov 17 2016 13:58

just to be sure that i am doing things right, i am making a new virtual host and in there i am putting the following:

Server Admin info@helpsa.org.za
ServerName community.helpsa.org.za
ServerAlias www.community.helpsa.org.za
DocumentRoot /var/www/platform-client/server/www
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR} access.log combined

<Directory /var/www/platform-client/server/www>
AllowOverride All
</Directory>

@ushbot

where community.helpsa.org.za is the URL where i want everyone to go to access the app
TheNiqabiCoderMum
@nqcm
Nov 17 2016 14:46
@tameen can anyone help me with this?
TheNiqabiCoderMum
@nqcm
Nov 17 2016 14:57
i tried with the above virtual host but still getting the same problem. but atleast now i am getting the proper json file at my backendurl/api/v3/config
TheNiqabiCoderMum
@nqcm
Nov 17 2016 15:34
ok my app is working alhamdulillah!
thanks for all the help @ushbot @tameen and @d_samuraiNick_twitter
Ushbot
@ushbot
Nov 17 2016 16:59
[David Losada, Ushahidi] great Theniq!