krayin / laravel-crm

Free & Opensource Laravel CRM solution for SMEs and Enterprises for complete customer lifecycle management.
https://krayincrm.com
Open Software License 3.0
11.14k stars 754 forks source link

Problem Installing #201

Closed LondonWebFactory closed 3 years ago

LondonWebFactory commented 3 years ago

Hi,

When run:

php artisan krayin-crm:install

The installer seems to get stuck at line 29:

2021-09-15_09-20-49

What can I do?

Kind Regards,

jitendra-webkul commented 3 years ago

Please type 0 and enter

LondonWebFactory commented 3 years ago

That worked great! Many thanks.

Unfortunately, when I hit:

http://website.com/t/crm/public/admin

I get a 404 error.

Can you think why?

jitendra-webkul commented 3 years ago

Please run the following command:

php artisan route:cache

LondonWebFactory commented 3 years ago

Unfortunately - still getting a 404.

jitendra-webkul commented 3 years ago

Can you share error's screenshot ?

LondonWebFactory commented 3 years ago

Unfortunately it has some branding on it - but it's just a normal 404 page.

LondonWebFactory commented 3 years ago

Is it because I installed it in a subdirectory. Does the pubilc folder need to be the root?

jitendra-webkul commented 3 years ago

Then share the logs from the "storage/logs" directory.

LondonWebFactory commented 3 years ago

It's empty

2021-09-15_09-58-28
devansh-webkul commented 3 years ago

@LondonWebFactory,

Can you share the screenshot of the page where you are facing the issue?

Because if you are getting 404, then it must be a problem with your URL path.

Please check the .env APP_URL also.

If the still issue persists, then please share all the steps you have done during installation so that I can further investigate on this.

LondonWebFactory commented 3 years ago

If the app is installed in:

http://website.com/t/crm/public/

Should this be the APP_URL or should it be

http://website.com/

at the moment it is:

http://website.com/t/crm/public/

devansh-webkul commented 3 years ago

Map your root to this http://website.com/.

/project/public ---> http://website.com/

LondonWebFactory commented 3 years ago

Done that and tested with a "Hello World" index.html file in the public folder.

2021-09-15_10-35-15

This shows the domain is mapping properly.

Next I updated the APP_URL to: http://website.com/

When I remove the test html file I get:

2021-09-15_10-43-48
LondonWebFactory commented 3 years ago

Forgot to say:

I also ran: php artisan route:cache

devansh-webkul commented 3 years ago

Yes, your index.php file may be working fine.

Let say, your project is like this,

- app/
- bootstrap/
- public/
- ..

You need to map your project public folder so that your Krayin app gets bootstrapped.

devansh-webkul commented 3 years ago

Or if your project is somewhere else then alternate I can suggest you to make a symlink from your project's public folder to your domain mapped public folder.

This is an issue at the deployment end, just contact with your server administrator person.

LondonWebFactory commented 3 years ago

Many thanks for your help!

You've been great!

:)

devansh-webkul commented 3 years ago

Good to see that your problem is resolved. Please close this issue. :)