These are chat archives for ushahidi/Community

3rd
Nov 2016
Stephanie Liu
@sanqianliusi
Nov 03 2016 07:29
hi,I have changed a computer and Could you help me?
Stephanie Liu
@sanqianliusi
Nov 03 2016 07:34
At first, I go on install php7.I enter codes like that in the terminal: sudo apt-get install curl php7.0-cli git.
NOHANDLE.png
then IT show warning showed above
I ignore it and go on install composer/apache2/mysql
everytime I install some thing,this warning occur.
I go on following the guide which post in the www.ushahidi.com
Stephanie Liu
@sanqianliusi
Nov 03 2016 07:40
I set up database,create .env file and correctly write in lines match the DB_HOST etc.
Then I set up URL rewrite. but I didn
build up a vhost ,so I skip the note show as follow:
noteurl.png
then I enter this in the terminal:chmod 0777 /home/s/platform/application/logs /home/s/platform/application/cache /home/s/platform/application/media/uploads
then I do bin/update
and error is here
binupdate.png
Stephanie Liu
@sanqianliusi
Nov 03 2016 07:47
BY THE way ,before I start install ,I have do this in the terminal: sudo apt-get install git
Does that matter?and what should I do to fix it?please ~help
Ushbot
@ushbot
Nov 03 2016 09:01
[David Losada, Ushahidi] hi, php 7 is a no go, it needs to be either 5.5 or 5.6
Stephanie Liu
@sanqianliusi
Nov 03 2016 09:33
Screenshot from 2016-11-03 17-32-58.png
why can`t I remove php7?
Ushbot
@ushbot
Nov 03 2016 09:34
[David Losada, Ushahidi] try two dash characters before purge, instead of one
Stephanie Liu
@sanqianliusi
Nov 03 2016 09:34
or can we just delete the document under etc called php?
Screenshot from 2016-11-03 17-37-12.png
Ushbot
@ushbot
Nov 03 2016 09:38
[David Losada, Ushahidi] --purge
[David Losada, Ushahidi] there’s a mistake in your command
Stephanie Liu
@sanqianliusi
Nov 03 2016 09:41
Screenshot from 2016-11-03 17-40-41.png
Ushbot
@ushbot
Nov 03 2016 09:44
[David Losada, Ushahidi] seems to be removed
Stephanie Liu
@sanqianliusi
Nov 03 2016 09:46
s@s-All-Series:~$ php -v
PHP 5.6.27-1+deb.sury.org~xenial+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
s@s-All-Series:~$
I need to redo all thing ,or just start do bin/update where I meet error?
Ushbot
@ushbot
Nov 03 2016 09:48
[David Losada, Ushahidi] yea I think you could just retry bin/update
Stephanie Liu
@sanqianliusi
Nov 03 2016 09:52
Screenshot from 2016-11-03 17-51-49.png
error still here
Ushbot
@ushbot
Nov 03 2016 09:52
[David Losada, Ushahidi] that’s ok, it's just output, not an error
Stephanie Liu
@sanqianliusi
Nov 03 2016 09:55
2.png
I skip that
Ushbot
@ushbot
Nov 03 2016 09:55
[David Losada, Ushahidi] that’s fine
Stephanie Liu
@sanqianliusi
Nov 03 2016 10:15
Note: if you're getting set up for development, you might want to fork the repository first.
what does fork the repository mean?
Screenshot from 2016-11-03 18-19-05.png
I need to ignore this warning or update them as told?
Stephanie Liu
@sanqianliusi
Nov 03 2016 10:21
@ushbot
Ushbot
@ushbot
Nov 03 2016 10:21
[David Losada, Ushahidi] I don’t see any warnings or update cues in that screenshot… in any case my guess is that you are fine
Stephanie Liu
@sanqianliusi
Nov 03 2016 10:21
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
sorry
Ushbot
@ushbot
Nov 03 2016 10:21
[David Losada, Ushahidi] yea those are tolerable, you can keep going
[David Losada, Ushahidi] no need to update anything
Stephanie Liu
@sanqianliusi
Nov 03 2016 10:22
thank you
Ushbot
@ushbot
Nov 03 2016 10:22
[David Losada, Ushahidi] np, I’ve got to leave now but will be back a bit later
Stephanie Liu
@sanqianliusi
Nov 03 2016 10:23
ok, thannnnnnk you from the deep of my heart.
Stephanie Liu
@sanqianliusi
Nov 03 2016 10:44
1.png
Stephanie Liu
@sanqianliusi
Nov 03 2016 11:38
Screenshot from 2016-11-03 19-36-09.png
Can I try that?
Ushbot
@ushbot
Nov 03 2016 11:50
[David Losada, Ushahidi] checking something
Stephanie Liu
@sanqianliusi
Nov 03 2016 11:51
checking what?
what should I check?
Ushbot
@ushbot
Nov 03 2016 11:52
[David Losada, Ushahidi] I am checking something, 3.6.2 is a recent release and want to make sure that all is good with it
[David Losada, Ushahidi] seems ok for me
[David Losada, Ushahidi] it looks like one of your downloads got corrupted somehow
Stephanie Liu
@sanqianliusi
Nov 03 2016 11:54
so
I need to redownload?
Ushbot
@ushbot
Nov 03 2016 11:55
[David Losada, Ushahidi] try running
[David Losada, Ushahidi] npm cache clean ushahidi-platform-pattern-library
[David Losada, Ushahidi] and npm install again
Stephanie Liu
@sanqianliusi
Nov 03 2016 11:56
should I cd platform-client to clean?
or just /home
I have do both
And it seems getting stuck now
blob
Stephanie Liu
@sanqianliusi
Nov 03 2016 12:11
I have run this code before you come back to help me .Does that matter?
It is just can not go on
Stephanie Liu
@sanqianliusi
Nov 03 2016 12:25
Is there any other way to install it?
@ushbot
Ushbot
@ushbot
Nov 03 2016 12:45
[David Losada, Ushahidi] mm it shouldn’t be necessary to change the registry
[David Losada, Ushahidi] but I don’t think it was a permanent setting, so it shouldn’t affect
Stephanie Liu
@sanqianliusi
Nov 03 2016 12:47
must I get platform-client under the platform or any where would be ok?
Ushbot
@ushbot
Nov 03 2016 12:47
[David Losada, Ushahidi] anywhere is fine
[David Losada, Ushahidi] in your case, better not under platform
Stephanie Liu
@sanqianliusi
Nov 03 2016 12:49
blob
add sudo ,right?
Ushbot
@ushbot
Nov 03 2016 12:49
[David Losada, Ushahidi] global npm installs (that’s what the -g flag means) may require sudo
[David Losada, Ushahidi] exactly
Stephanie Liu
@sanqianliusi
Nov 03 2016 12:50

npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path /usr/local/bin/gulp
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, unlink '/usr/local/bin/gulp'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, unlink '/usr/local/bin/gulp'] errno: -13, code: 'EACCES', path: '/usr/local/bin/gulp' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/bin/gulp'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES, unlink '/usr/local/bin/gulp'] errno: -13, code: 'EACCES', path: '/usr/local/bin/gulp' }

npm ERR! Please include the following file with any support request:
npm ERR! /home/s/platform-client/npm-debug.log

I mean to fix that
Ushbot
@ushbot
Nov 03 2016 12:51
[David Losada, Ushahidi] yes
Stephanie Liu
@sanqianliusi
Nov 03 2016 12:55
May I delete the previous platform-client which is under platform and have error to go on
It still stock here
can not install
Ushbot
@ushbot
Nov 03 2016 12:57
[David Losada, Ushahidi] you can delete any other platform-client , just make sure you keep your .env file with the BACKEND_URL
Stephanie Liu
@sanqianliusi
Nov 03 2016 12:58
the cursor just circle around
Ushbot
@ushbot
Nov 03 2016 12:59
[David Losada, Ushahidi] try npm install --verbose
[David Losada, Ushahidi] to see if it’s actually doing anything… maybe the downloads are slow
Stephanie Liu
@sanqianliusi
Nov 03 2016 13:02
It stock now,after coming out some lines
blob
Ushbot
@ushbot
Nov 03 2016 13:04
[David Losada, Ushahidi] let it run for a few mins I guess , not much we can do if there’s no error.. things may just be slow
Stephanie Liu
@sanqianliusi
Nov 03 2016 13:24

npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--verbose"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1

npm ERR! shasum check failed for /tmp/npm-3632-21b5bbbe/registry.npmjs.org/ushahidi-platform-pattern-library/-/ushahidi-platform-pattern-library-3.6.2.tgz
npm ERR! Expected: da7ebe35146cf4e4f20e7d7289f150db7aef2d8f
npm ERR! Actual: 7cf42d444b2f98b6c2b530caae67ca3bdc85c5c0
npm ERR! From: https://registry.npmjs.org/ushahidi-platform-pattern-library/-/ushahidi-platform-pattern-library-3.6.2.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm verb exit [ 1, true ]

npm ERR! Please include the following file with any support request:
npm ERR! /home/s/platform-client/npm-debug.log

Ushbot
@ushbot
Nov 03 2016 13:54
[David Losada, Ushahidi] It looks to me like you are having trouble downloading all the dependencies necessary for the build process. It would be great if you could just download the pre-built package from https://github.com/ushahidi/platform-client/releases/download/v3.6.2/ushahidi-platform-client-bundle-v3.6.2.tar.gz . It should be about 9 megabytes
[David Losada, Ushahidi] You may need to try several times until you download it successfully
Stephanie Liu
@sanqianliusi
Nov 03 2016 13:55
ok
Ushbot
@ushbot
Nov 03 2016 14:06
[David Losada, Ushahidi] once you get, it you can unpack the contents in the “server/www” folder of the platform-client folder you already have
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:08
blob
unpack in here
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:15
I have done that and rename the .htaccess
here comes the result
blob
Ushbot
@ushbot
Nov 03 2016 14:19
[David Losada, Ushahidi] ah ok, just move all the contents to the parent folder.. you don’t need the ushahidi-blablabla-3.6.2 folder
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:19
ok
Ushbot
@ushbot
Nov 03 2016 14:21
[David Losada, Ushahidi] and last you would need to edit config.js , to reflect your BACKEND_URL
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:22
I have write .env
Ushbot
@ushbot
Nov 03 2016 14:22
[David Losada, Ushahidi] unfortunately, that only applies during the build process
[David Losada, Ushahidi] window.ushahidi = { backendUrl : “— your backend url goes here —” };
[David Losada, Ushahidi] those are the contents you need to write in that config.js
[David Losada, Ushahidi] of course changing “— your backend url —” for your actual url
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:24
blob
Is that right?
or change to 127.0.0.1?
I have test the bankend,It doesn`t work
blob
Ushbot
@ushbot
Nov 03 2016 14:26
[David Losada, Ushahidi] yea, you will need two different virtual hosts
[David Losada, Ushahidi] as a quick test now, http://localhost/api/v3/config should probably return you a JSON document
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:27
blob
np
blob
Ushbot
@ushbot
Nov 03 2016 14:28
[David Losada, Ushahidi] mm ok, will need to look at all the contents from bankend.conf
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:29
blob
also do that
blob
blob
why here is a ssl.conf ;should I write ss.conf too?
Ushbot
@ushbot
Nov 03 2016 14:32
[David Losada, Ushahidi] mm no, you don’t need ssl by now
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:33
then, what can i do now?
Ushbot
@ushbot
Nov 03 2016 14:35
[David Losada, Ushahidi] trying to guess, maybe your apache is denying requests . You could try to add this, somewhere under CustomLog :
Require all granted
[David Losada, Ushahidi] then restart apache, and try again to open localhost from the browser
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:37
costomlog
in the platform?
or apache2?
Ushbot
@ushbot
Nov 03 2016 14:38
[David Losada, Ushahidi] in the bankend.conf file
[David Losada, Ushahidi] and ..
[David Losada, Ushahidi] maybe uncomment ServerName .. set it to “ServerName api.myusha.com"
[David Losada, Ushahidi] add that next to myusha.com in the /etc/hosts file
[David Losada, Ushahidi] I think your localhost virtual host is probably taken by that 000-default.conf file
[David Losada, Ushahidi] in /etc/hosts you would have “127.0.0.1 myusha.com api.myusha.com"
[David Losada, Ushahidi] your backend url will be “http://api.myusha.com"
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:42
I have done sudo a2dissite 000-default.conf
Ushbot
@ushbot
Nov 03 2016 14:43
[David Losada, Ushahidi] okay
[David Losada, Ushahidi] well, I still prefer to set the ServerNames explicitly, but up to you really
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:44
ok,I am doing now,please help me check
Ushbot
@ushbot
Nov 03 2016 14:44
[David Losada, Ushahidi] did you use api.myusha.com ?
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:45
blob
Ushbot
@ushbot
Nov 03 2016 14:45
[David Losada, Ushahidi] ok, did you change /etc/hosts too ?
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:46
I add requre...... and servername here
Ushbot
@ushbot
Nov 03 2016 14:46
[David Losada, Ushahidi] yes that looks good
[David Losada, Ushahidi] > in /etc/hosts you would have “127.0.0.1 myusha.com api.myusha.com"
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:47
blob
Ushbot
@ushbot
Nov 03 2016 14:48
[David Losada, Ushahidi] correct
[David Losada, Ushahidi] after restarting apache, you should try opening “http://api.myusha.com"
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:49
doesn`t work
blob
blob
I didn`t do step 6
does that matter?
Ushbot
@ushbot
Nov 03 2016 14:50
[David Losada, Ushahidi] that’s ok , you won’t need to do any of that since you downloaded the prebuilt package
[David Losada, Ushahidi] I’m not sure why you are getting that Forbidden .. maybe something in the apache logs would tell us why
[David Losada, Ushahidi] sorry but I’ve got to leave now
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:51
that`s ok
thank you
helped a lot
I will try again
Ushbot
@ushbot
Nov 03 2016 14:51
[David Losada, Ushahidi] look for /var/log/apache2/error_log
[David Losada, Ushahidi] there may be useful information there
Stephanie Liu
@sanqianliusi
Nov 03 2016 14:51
ok thank you
Ushbot
@ushbot
Nov 03 2016 14:52
[David Losada, Ushahidi] you are welcome, good luck!