phundament / app

Dockerized Yii2 web application base
http://phundament.com
Other
310 stars 129 forks source link

Unable to get successful install #193

Open deronrspencer opened 8 years ago

deronrspencer commented 8 years ago

I am installing phundament on WAMP using composer. I followed these instructions; https://github.com/phundament/docs/blob/master/6-tutorials/installation-composer.md

When I access http://localhost/app/backend/web, I am redirected to http://localhost/en which gives a Not Found error. Additionally I notice my app directory doesn't have the backend and frontend folders, only build, runtime, src, test, vendor and web. Any assistance would be greatly appreciated.

schmunk42 commented 8 years ago

Thank you for reporting.

Phundament is not split into application tiers backend and frontend like Yii2's advanced app, so this is perfectly normal :) There's a backend module though.

For debugging you may either try these options:

deronrspencer commented 8 years ago

I turned on debugging and disabled the enableDefaultLanguageUrlCode and got the following error;

The file or directory to be published does not exist: C:\UniServerZ\www\rcjapp\src/../vendor\bower/bootstrap/dist

I am new to yii2/composer but my guess is some missing dependencies?

deronrspencer commented 8 years ago

Got it working by moving the contents of bower/bower-asset back up to bower. Also had to disable prettyURLs and remove the line 'languages' => explode(',',getenv('APP_LANGUAGES')), from the urlManager configuration

schmunk42 commented 8 years ago

Are you running in phundament with Docker or directly on your machine?

Make sure to have the latest version of fxp/composer-asset-plugin installed, see also http://www.yiiframework.com/doc-2.0/guide-start-installation.html

Which webserver are you using, nginx or Apache? If Apache, you might need to rename this .htaccess file.

PS: There should be no problems like those, when using Docker...

deronrspencer commented 8 years ago

Running directly, using Apache. Will check on both of those later.

Deron Spencer

On Fri, Jan 8, 2016 at 5:40 PM, Tobias Munk notifications@github.com wrote:

Are you running in phundament with docker or directly on your machine?

Make sure to have the latest version of fxp/composer-asset-plugin installed, see also http://www.yiiframework.com/doc-2.0/guide-start-installation.html

Which webserver are you using, nginx or Apache? If Apache, you might need to rename this .htaccess https://github.com/phundament/app/blob/master/web/.htaccess-dist file.

— Reply to this email directly or view it on GitHub https://github.com/phundament/app/issues/193#issuecomment-170147614.