Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

Help to others when installing DF in a VPS, problems & solutions

$
0
0

@LBat wrote:

Hello comunity,

I try to help other members about a installation in a server, a "fight" to put this live... uff!

I have a VPS server, where have many domains parked.

I make a clean installation of DF v2.6.0, where I make some steps here in this Doc: http://wiki.dreamfactory.com/DreamFactory/Yum/CentOS_7/Installation#DreamFactory

The VPS is a LAMP with PHP 7.1.
With CPanel I create the DB and define the users to access the BD.

Go to the server console (SSH access) and made the steps to install in a folder inside public_html/..., the installation work's fine, configure DreamFactory (section "DreamFactory" in the doc link).

The configuration works fine, and then go to my domain and... puff! not working!!!
In the browser I see the files in the server and when go to "domain.com/public/" folder get a 500 error...

Problems & Resolutions
I search for different solutions and nothing really correct the problem, have a bundle of problems to resolve and a bundle of solutions to apply! I put here my steps if can help another member...

1) Folder and file permissions

First step is to verify folder permissions to cache, etc

$ sudo chown -R {www user}:{user} storage/ bootstrap/cache/
$ sudo chmod -R 2775 storage/ bootstrap/cache/

I repeat and then clear the cache:
$ php artisan cache:clear

and the problem maintains :frowning:

2) Database engine
Ok, read about the database have a InnoDB... trough phpMyAdmin verify the dreamfactory create all tables with engine MyISAM, because is the default on the server :frowning: ok, need to change this in all tables.

Try again and works a little better, where go to the domain.com/dreamfactory/dist get an error 500... it is a 404 error in apps.js can "GET /api/v2/system/environment" ... ufff

2 hours and not put this working...

3) Web-Server configuration
Possible solutions in the community and github tell about to change the in apache (or Nginx) I looking for my apache server configurations (httpd.conf) and see the domain point to
/public_html/mydomain
I change to
/public_html/mydomain/public
Restart web server...

I repeat and then clear the cache:
$ php artisan cache:clear

Go to www.domain.com ... redirect to .../dreamfactory/dist/index.html....

Eureka! it's working :smiley:

I hope this helps someone who has the same kind of problems.

Can comment here more issue's or problems found.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles