Giter Club home page Giter Club logo

Comments (19)

cgsmith avatar cgsmith commented on July 28, 2024

This becomes difficult to troubleshoot and isn't necessarily a Yii2 issue IMHO.

https://news-web.php.net/php.internals/110907

I ran into some issues configuring an IIS handler. Admittedly, I am not a IIS expert or even novice.

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

@cgsmith the app runs smoothly with Yii 2.0 and 1.1 on IIS.

This repo is about the new version: Yii 3.0.

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

For the install, I used Web Platform Installer from Microsoft, PHP Manager from phpmanager.xyz and Fast CGI.

To enable IIS and Fast CGI, it is necessary to go to Programs and Features (Control Panel) > Turn Windows features on or off.
Enable Internet Information Services and expand it. There is an option called CGI that is used also for PHP.

The quickest way to add PHP 8 is installing it manually, and then add via PHP Manager.

from docs.

roxblnfk avatar roxblnfk commented on July 28, 2024

Try to set the prefix property manually in the SubFolder middleware to /projects/yii3basic

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

@roxblnfk I don't know how to implement it.

Can you give an example?

from docs.

samdark avatar samdark commented on July 28, 2024

Try adding it to https://github.com/yiisoft/demo/blob/master/config/web/application.php#L22.

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

@samdark it's almost there.
image

How do I adjust the base URL used on CSS and JS files by assets?

from docs.

rustamwin avatar rustamwin commented on July 28, 2024

Try change https://github.com/yiisoft/app/blob/master/config/params.php#L22 to /projects/yii3basic/assets.

from docs.

roxblnfk avatar roxblnfk commented on July 28, 2024

Try change https://github.com/yiisoft/app/blob/master/config/params.php#L22 to /projects/yii3basic/assets.

i think this value should be prefixed with @baseUrl: '@baseUrl/assets'

The @baseUrl alias will be changed automatically in the SubFolder middleware

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

Try change https://github.com/yiisoft/app/blob/master/config/params.php#L22 to /projects/yii3basic/assets.

@rustamwin @roxblnfk yes, this solved the assets issue.

Try change https://github.com/yiisoft/app/blob/master/config/params.php#L22 to /projects/yii3basic/assets.

i think this value should be prefixed with @baseUrl: '@baseUrl/assets'

The @baseUrl alisa will be changed automatically in the SubFolder middleware

@samdark is there a good reason the SubFolder middleware is not included in the web/application config by default?

from docs.

roxblnfk avatar roxblnfk commented on July 28, 2024

@samdark is there a good reason the SubFolder middleware is not included in the web/application config by default?

For main template it's OK.
But it's strange that it is not included in the yiisoft/demo project.

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

For main template it's OK.

To beginners in Yii3 (like myself), it's one more step to configure after a fresh install.

But it's strange that it is not included in the yiisoft/demo project.

I agree.

from docs.

samdark avatar samdark commented on July 28, 2024

Well, nowadays it's often Docker images and these are always point to the webroot. There's no sub-directoryies. That's why it wasn't done by default.

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

Well, nowadays it's often Docker images and these are always point to the webroot. There's no sub-directoryies. That's why it wasn't done by default.

I still can't use Docker. For some reason, my Windows shows a BSOD if I try to install Docker or by enabling Hyper-V.

from docs.

samdark avatar samdark commented on July 28, 2024

I see. At least we need it documented well.

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

I see. At least we need it documented well.

@samdark it will help a lot.

Shall we close this issue and open a new one, related to mine? Or keep it opened?

from docs.

samdark avatar samdark commented on July 28, 2024

Keep it opened. Open another one.

from docs.

MasterGHD avatar MasterGHD commented on July 28, 2024

Keep it opened. Open another one.

Ok. Thank you.

from docs.

samdark avatar samdark commented on July 28, 2024

Closing since it's in the default config now.

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.