jonseg/crud-admin-generator

Need help. Unable to run application

Closed this issue · 1 comments

mvysh commented

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

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/