Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you help me on install CMS? #16

Open
anilergin opened this issue Apr 19, 2017 · 21 comments
Open

Can you help me on install CMS? #16

anilergin opened this issue Apr 19, 2017 · 21 comments

Comments

@anilergin
Copy link

Hello,

I have no so much experience on installation server. I have centos server and several domains belogs to server. What I should to install CMS to a domain basically?

I already tried inside a domain belongs to server. I run "git clone [email protected]:lemberg/connfa-integration-server.git" but I could'nt succeed.
I had " permission denied(publickey) fatal: the remote hung up unexpectedly.

Where is my mistake, How can I install it can you help me? Thanks.

@vpauk
Copy link

vpauk commented Apr 19, 2017

@anilergin
"permission denied(publickey) fatal: the remote hung up unexpectedly.

This error may have occurred because SSH Public Key is not set in your account.

You can try to fix it as follows:

  1. You should to generate SSH Public Key. Steps are described here:
    https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key

  2. After that your should to set generated key in your account. Steps are described here:
    https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

@anilergin
Copy link
Author

anilergin commented Apr 20, 2017

Firstly Thanks for quick response.
I already create and I run it and downloaded in one of the domain. I can see inside the domain when I connect to FTP. Now I have: http://.../connfa-integration-server/
Is it right path?

I also tried to run composer install
I have: composer: command not found

Anyway I jumped other step: And I changed .env.example file to .env.
Should I change the information of app URL or dbname etc..?

Is it using Mysql? How can i integrate my database and where is my main page.

@vpauk
Copy link

vpauk commented Apr 20, 2017

@anilergin

You should connect to your server by ssh and go to project directory (connfa-integration-server), there are you can see composer.json

First of all you make sure that you have installed composer. If composer is not installed, you should follow steps:

If you have root permisions on server.

  1. download composer: https://getcomposer.org/download/

  2. install composer globally https://getcomposer.org/doc/00-intro.md#globally after first step run mv composer.phar /usr/local/bin/composer

After these steps you can try run command: composer install

If you don't have root permisions on server.

You should install composer locally (to application "connfa-integration-server" directory).

  1. download composer: https://getcomposer.org/download/

After that you can try to run command: composer.phar install

@vpauk vpauk closed this as completed Apr 20, 2017
@vpauk vpauk reopened this Apr 20, 2017
@anilergin
Copy link
Author

anilergin commented Apr 20, 2017

I run "wget composer.phar" inside the connfa-integration server

[admin@anilergin connfa-integration-server]$ wget composer.phar
--2017-04-20 15:31:45-- http://composer.phar/
Resolving composer.phar... 72.52.4.122
Connecting to composer.phar|72.52.4.122|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://sedoparking.com/?path=home [following]
--2017-04-20 15:31:45-- http://sedoparking.com/?path=home
Resolving sedoparking.com... 72.52.4.90
Connecting to sedoparking.com|72.52.4.90|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: //sedoparking.com/infopage/en/index.html [following]
--2017-04-20 15:31:45-- http://sedoparking.com/infopage/en/index.html
Reusing existing connection to sedoparking.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 2645 (2.6K) [text/html]
Saving to: “index.html”

100%[======================================>] 2,645 --.-K/s in 0s

2017-04-20 15:31:45 (205 MB/s) - “index.html” saved [2645/2645]

I it working with MySQL? How can I integrate and How can I reach dashboard of CMS that?

@vpauk
Copy link

vpauk commented Apr 20, 2017

@anilergin

For installing composer you should run four following commands ( Documentation for installing https://getcomposer.org/download/ ) in project application directory (connfa-integration-server)

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

php composer-setup.php

php -r "unlink('composer-setup.php');"

After that you can try to run command: composer.phar install

@anilergin
Copy link
Author

anilergin commented Apr 20, 2017

I already installed the composer.

I changed name to .env

When I try to run" php artisan migrate" I got this-->

[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)

Should I change more in .env? like db?

@vpauk
Copy link

vpauk commented Apr 21, 2017

@anilergin

You should configure database connections and change in your .env file following section to your configuration

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE={your_database_name}
DB_USERNAME={your_database_username}
DB_PASSWORD={your_database_password}

@anilergin
Copy link
Author

anilergin commented Apr 22, 2017

I changed and run migration

php artisan migrate

I also changed the .env API domain to: API_DOMAIN=http://hazir-web-sitesi.com/deneme/connfa-integration-server/

Migration table created successfully.
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrated: 2015_08_29-192817_create_settings_table
Migrated: 2016_05_10_121655_create_speakers_table
Migrated: 2016_05_11_084328_create_event_types_table
Migrated: 2016_05_11_112518_create_event_levels_table
Migrated: 2016_05_11_121504_create_event_tracks_table
Migrated: 2016_05_11_125741_create_events_table
Migrated: 2016_05_13_112900_create_plans_table
Migrated: 2016_05_13_125313_create_pages_table
Migrated: 2016_05_13_133912_create_locations_table
Migrated: 2016_05_13_140920_create_points_table
Migrated: 2016_08_18_112934_entrust_setup_tables
Migrated: 2017_02_07_132152_events_text_make_nullable
Migrated: 2017_02_22_110227_create_conferences_table
Migrated: 2017_02_22_121420_add_conference_relations_table
Migrated: 2017_03_03_080232_drop_unique_key_settings_table

when I try http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/login

Whoops, looks like something went wrong.

1/1
RuntimeException in compiled.php line 7715:
No supported encrypter found. The cipher and / or key length are invalid.

when I try http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/login/ -->/

not found

My mod_rewrite is open.

How can I reach to dashboard login page

@vpauk
Copy link

vpauk commented Apr 24, 2017

@anilergin

To fix this error "No supported encrypter found. The cipher and / or key length are invalid.", please run following command in project directory php artisan key:generate

@anilergin
Copy link
Author

anilergin commented Apr 24, 2017

super I can see login page now. http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/login

What is my username and password?

I tried to run php artisan password:change --name=admin --password=123456

But:

The user is not registered.

I run these
If you want to seed fake data into your database run php artisan db:seed
To seed admin user you can run php artisan db:seed --class=UsersTableSeeder

But now when I try php artisan password:change --name=admin --password=123456,

[BadMethodCallException]
This cache store does not support tagging.

What is my admin informations?

@vpauk
Copy link

vpauk commented Apr 24, 2017

@anilergin

Try to replace in .env file from CACHE_DRIVER=file to CACHE_DRIVER=array

After that try php artisan password:change --name=admin --password=123456

@anilergin
Copy link
Author

anilergin commented Apr 24, 2017

Ok. Thank you for all. I logined inside.

1- But when i click something, like events, speakers etc.. it s going to 404 not found

http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/boganview-2017/sessions/7
http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/boganview-2017/floors/1
http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/boganview-2017/speakers/51/edit

2- In addition I also tried the Android version and I couldn't pass splash screen.

Used http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/

But I had error"Internet connection is not available at this moment. Please, try later" But I have.

@vpauk
Copy link

vpauk commented Apr 25, 2017

@anilergin
1- But when i click something, like events, speakers etc.. it s going to 404 not found

Looks like you have created admin user not correctly, becouse you had error [BadMethodCallException].

Could you clear following tables in database: "roles" and "users", after that run commands:

  1. php artisan db:seed --class=UsersTableSeeder
  2. php artisan password:change --name=admin --password=YOUR_PASSWORD_HERE

@pavlo-savchuk
Copy link

pavlo-savchuk commented Apr 25, 2017

@anilergin, hello.
Please specify what error you received from server when you tried to launch Android application?
"1- But when i click something, like events, speakers etc.. it s going to 404 not found"
It looks like 404 error may cause this problem. Please try to fix it.

Regards,
Pavlo

@anilergin
Copy link
Author

anilergin commented Apr 25, 2017

I tried it but still same problem I have. I can create everything, but When I see what I create before, a speaker or another thing, It s going to 404 not found. @vpauk

@anilergin
Copy link
Author

anilergin commented Apr 25, 2017

@pavlo-savchuk When I start to launch app, in splash screen I got "Internet connection is not available at this moment. Please, try later". just this.

Is it not correct?

I am writing http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/

But It s back to me Internet connection is not available at this moment. Please, try later

APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:qAWoHV8nV4f8H86fDOXfiUIV6Ab2523CZCcmoh60IAE=
APP_URL=http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/

DB_CONNECTION=mysql
DB_HOST=185.86.4.71
DB_PORT=3306
DB_DATABASE=admin_te*
DB_USERNAME=admin_te*
DB_PASSWORD=gh*

CACHE_DRIVER=array
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

API_PREFIX=api
API_DOMAIN=http://hazir-web-sitesi.com/deneme/connfa-integration-server/public/
API_VERSION=v2
API_DEBUG=true
API_CONDITIONAL_REQUEST=false

@vpauk
Copy link

vpauk commented Apr 25, 2017

@anilergin

1- But when i click something, like events, speakers etc.. it s going to 404 not found

I have one solution, could you clear all data in database, for this you can run command: php artisan migrate:refresh
and after then run

  1. php artisan db:seed (without --class=UsersTableSeeder)
  2. php artisan password:change --name=admin --password=YOUR_PASSWORD_HERE

@anilergin
Copy link
Author

anilergin commented Apr 25, 2017

I tried it and still same error I have :/ @vpauk

@anilergin
Copy link
Author

anilergin commented Apr 26, 2017

@vpauk can I do smt for fix it?

I also write here my .env file. is it correct to connect from app? because I also couldn't pass splash screen when I launch in Android studio.

@Nataliya-Kulinenko
Copy link

@anilergin hello, just want to make sure that you are aware about Connfa! documentation. It's available here: http://connfa.com/documentation/ and may be helpful to install integration server and build Android app.

@anilergin
Copy link
Author

@NataliyaOprysko It couldn't succdeed I tried everythin in there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants