-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Root .haccess leads to non-existent index.php #32409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @dantaeusb. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
My configuration is incorrect, I was trying to set up Apache + php-fpm because I haven't seen mod_php in requirements neither on this nor this page, but it seems to be assumed "by default" for Apache installations. I guess that's somewhat reasonable though, I was just confused with previous configuration I've had. So the Issue could be irrelevant, though I still wonder about the purpose of |
You should update description for what version of magento that you got issue https://github.com/magento/magento2/blob/2.4-develop/setup/src/Magento/Setup/Model/ConfigOptionsList/Directory.php Both pub/.htaccess and root file .htaccess have changed RewriteEngine on Note if you install 2 magento site (maybe 2 difference version) seperated at one folder. You may need double extra efforts to setup following new changes. I'm not sure this approach is default support by magento Not sure other web hosting providers support this or not but default as i remember all they provider root web start from folder that created |
Hi Tu, Sure thing, I was talking about Magento 2.4.2. Yes, practically I understood that "document_root_is_pub" is now a default behavior. From my point of view, the problem is: a) This change is not covered by official guides at all; |
Yes must be someone need to update docs soon. This critical may affected to a lot store when upgrade to new version |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions! |
Uh oh!
There was an error while loading. Please reload this page.
I'm sorry if I'm wrong, but I'm extremely confused about the installation process. I followed steps included in official guides, with basic configuration based on Docker and WSL2. I tried to follow every step carefully several times cause still don't believe that's not my fault. However, looking at the older versions of source code, I'm very confused that there are no adjustments in docs and .htaccess about removing index.php in the root directory (commit 640cad53009b291334234ccd61ab79f256b43da2). There were some links to #356 but it doesn't seem to cover the actual state.
TL;DR: index.php seem no longer exist in root folder, and both .htaccess and official docs assuming it does; the Apache configuration page does not cover this change however there seems to be an update that covers elasticsearch installation info.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Installation complete and site works assuming
.htaccess
in root actually forwards requests to index.php in root.Actual result (*)
Line 7 of
.htaccess
statesDirectoryIndex index.php
which is basically non-existent in version 2.4. Adjusting default configuration topub
directory doesn't work and seems like requires some additional changes, which is not covered in guides mentioned above.Additional info
Apache image used: https://github.com/bitnami/bitnami-docker-apache
PHP-FPM image used: https://github.com/bitnami/bitnami-docker-php-fpm + needed extensions for Magento 2
This page partially covers what seems to be necessary now: https://devdocs.magento.com/guides/v2.4/install-gde/tutorials/change-docroot-to-pub.html
The text was updated successfully, but these errors were encountered: