You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! I wanted to run frameworkless without docker or vagrant, by using good ol' MAMP and looks like I succeeded. Here is what I had to do, maybe someone will find it useful.
Edit base.html.twig to look for CSS in the right place:
From what I can tell it looks like your document root is set to be the root directory of the cloned repository instead of the public subdirectory, which is pretty risky.
nginx would happily start serving up my .php scripts as plaintext instead of executing them.
When your document root is set to public, the only file at risk in this case is index.php (which only contains a single line of code) -- instead of the entire application.
Note: I haven't used apache in a quite a while, so there's a decent chance I misread the .htaccess.
Hi there! I wanted to run frameworkless without docker or vagrant, by using good ol' MAMP and looks like I succeeded. Here is what I had to do, maybe someone will find it useful.
Edit base.html.twig to look for CSS in the right place:
Create a .htaccess in root directory and add:
Oops, not working. Looks like .htaccess overrides are disabled.
In /Applications/MAMP/conf/apache/httpd.conf find this:
...and replace with
Now, I'm wondering if there is a simpler way of doing this and is it possible that somewhere down the road this might interfere with router somehow?
The text was updated successfully, but these errors were encountered: