jonseg / crud-admin-generator

An open source tool to generate a complete backend from a MySql database.
http://crud-admin-generator.com/
MIT License
1.43k stars 441 forks source link

Need help. Unable to run application #92

Closed mvysh closed 8 years ago

mvysh commented 8 years ago

Hello. I'm can't figure out how to run application under Windows and Apache (Open Server). I have folder C:\OpenServer\domains\laravel\admin-packages\silex-admingenerator\ with clean installation and generated files, which I try to access on this url: http://laravel/admin-packages/silex-admingenerator/ I tried different options with .htaccess but I get 500 error. Can anyone give advice where exactly to put .htaccess, with what options and from what url application should be accessible? Thanks in advance!

mvysh commented 8 years ago

I simply deleted .htaccess that I created in the root of installation (C:\OpenServer\domains\laravel\admin-packages\silex-admingenerator) and deleted this line in .htaccess in 'web' directory: 'php_flag display_errors off'. Then I fixed one php error that was generated in admin controller:

 'enum('admin','user')', 

I suppose this bug should be fixed. Changed this to

"enum('admin','user')" 

And changed asset path in app.php to

$app['asset_path'] = '/admin-packages/silex-admingenerator/web/resources';

Everything works fine. Application is accessible from http://laravel/admin-packages/silex-admingenerator/web/