Questions tagged [webroot]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
190 views

How to set the webroot in Magento 2?

I'm learning Magento 2 and can see that Magento has two index.php files. One is in the root folder and another one is in Pub folder. While reading many of the posts regarding webroot of Magento, I can ...
0
votes
1answer
21 views

Which folder to use as default web root?

I see some projects using the Magento 2 root folder as webroot and other projects using the pub folder as the web root, independently of using Apache or NGINX, both worked. Which webroot folder should ...
0
votes
0answers
12 views

How to get order collection which don't have invoice Magento 2?

I want to get order collection which don't have invoice. I want to create invoice manually for specific product type. How can I get? My working code in which I have get recent 10 days orders: <?php ...
0
votes
0answers
16 views

How to send custom email with email template from root Magento2.3?

I have created a script on the Root directory to disabled the products which having price below $50 which is working fine. Now I want to send the disabled product information like ID, SKU, Product ...
0
votes
0answers
23 views

Wrong URL for category image when root is set to pub directory

I want to use pub/ directory for security reasons as document root for Magento website but when i switch it, images for categories and for manufacturers (in product detail) are not displayed. I ...
0
votes
2answers
37 views

How can I use ssh command using php script as root user?

I am working third party integration for which new files generating automatically when my code is running. But it required permission after creating the file. I want to give the permission as a ...