Last active
March 1, 2019 19:06
-
-
Save ChaituVR/a382919df6a8152d06d90a757f5864bd to your computer and use it in GitHub Desktop.
GraphJS-server Installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Update to PHP-7 | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.2 php7.2-common php7.2-simplexml php7.2-mbstring php-bcmath | |
sudo a2dismod php5 | |
sudo a2enmod php7.2 | |
sudo service apache2 restart | |
php -v | |
## Install Bcmath extension | |
sudo apt-get install php7.1-bcmath | |
## Install composer | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" | |
## Install Dependencies | |
composer install | |
## Install Redis | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xvzf redis-stable.tar.gz | |
cd redis-stable | |
make | |
## Starting Redis Server | |
redis-server | |
## Download and install Neo4j | |
follow this: | |
https://www.quackit.com/neo4j/tutorial/neo4j_installation.cfm | |
To install java 8 | |
https://websiteforstudents.com/how-to-install-oracle-java-jdk8-on-ubuntu-16-04-17-10-18-04-desktops/ | |
default Usename and password : neo4j | |
change the password using | |
curl -H "Content-Type: application/json" -X POST -d '{"password":"123456"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password | |
``` | |
DATABASE_TYPE="redis" | |
DATABASE_URI="tcp://127.0.0.1:6379" | |
STORAGE_TYPE="filesystem" | |
STORAGE_URI="/tmp/pho" | |
INDEX_TYPE="neo4j" | |
INDEX_URI="bolt://neo4j:123456@localhost:7687"; | |
STREAM_KEY="" | |
STREAM_SECRET="" | |
MAILGUN_KEY="" | |
MAILGUN_DOMAIN="" | |
PASSWORD_REMINDER="/tmp/pins/" | |
FOUNDER_NICKNAME="Something" | |
FOUNDER_EMAIL="scha****@gmail.com" | |
FOUNDER_PASSWORD="123456" | |
IS_PRODUCTION=0 | |
SINGLE_SIGNON_TOKEN_KEY="" | |
IS_INACTIVE=0 | |
AWS_KEY= | |
AWS_SECRET= | |
AWS_REGION=us-west-2 | |
AWS_VERSION=latest | |
AWS_S3_BUCKET= | |
``` | |
## To start the server | |
run | |
`php run.php` | |
## to change the default port edit run.php | |
# To start Everytime | |
- `redis-server` | |
- `neo4j-community-3.5.3/bin/neo4j console` | |
- `php run.php` | |
now navigate to https://localhost:PORT/whoami |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment