Magento Expert Forum - Improve your Magento experience

Results 1 to 6 of 6

Magento Files and Folders Structure

  1. #1
    Junior Member jaredovi's Avatar
    Join Date
    Mar 2013
    Posts
    68
    Thanks
    2
    Thanked 14 Times in 11 Posts

    Post Magento Files and Folders Structure

    This part of the Magento tutorial will provide detailed information regarding the Magento's default files and folders structure.

    You will learn more about the functions of main files and folders included in the Magento package.

    The files and folders included in the main directory are as follows:

    .htaccess - contains mod_rewrite rules, which are essential for the Search Engine Friendly URLs. There you can also find standard web server and php directives that can improve your web site performance.
    .htaccess.sample - this is a backup of the .htaccess file. If you modify .htaccess it can be used in order to get the default settings.

    404 (directory) - The folder stores the default 404 template and skin for Magento.

    app (directory) - This folder contains the modules, themes, configuration and translation files. Also there are the template files for the default administration
    theme and the installation.

    cron.php - a Cron Job should be set for this file. Executing of the file on a defined time period will ensure that the complicated Magento caching system will not affect the web site performance.

    downloader (directory) - This is the storage of the web downloader files. They are used for the installation and upgrade of Magento through your browser.

    favicon.ico - the default favicon for Magento. A small icon that is shown in the browser's tool bar once your web site is loaded.

    index.php - the main index file for Magento.

    index.php.sample - A backup of the default index file. It can be used to revert the changes in a case of a index.phpmodification.

    js (directory) - Contains the pre-compiled libraries of the JavaScript code included in Magento.

    lib (directory) - The Magento core code is located in this folder. It contains the software's PHP libraries.

    LICENSE_AFL.txt - The Academic Free License under which the Magento software is distributed.

    LICENSE.txt - The Open Software License under which the Magento software is distributed.

    media (directory) - This is the storage of the Magento media files - images out of the box, generated thumbnails, uploaded products images. It is also used as a container for importing images through the mass import/export tools.

    mage (in versions older than 1.4.2.0 this tool was called pear)- The file controls the automatic update through the downloader script and SSH. It handles the update of each individual Magento module.

    php.ini.sample - This file contains sample php directives that can be used in order to modify your PHP setup. If you want to alter the default setup edit the file and then rename it to php.ini.

    pkginfo (directory) - Contains files with information regarding the modules upgrades' changes.

    report (directory) - This folder contains the skin of the Magento errors reports.

    skin (directory) - There are located the themes files - images, JavaScript files, CSS files, Flash files. Also there can be found the skin files for the installation of skins and administration templates.

    var (directory) - Cache, sessions, database backups, data exports and cached error reports can be found in this directory.
    If you want to modify an existing template or set a new one you should know that the template files are separated in 3 folders:/app/design/frontend/default/YOUR_TEMPLATE_NAME/layout/ - Contains the .xml files that define which modules should be called by the template files and loaded in defined areas on the site./app/design/frontend/default/YOUR_TEMPLATE_NAME/template/ - Contains files and subfolders that structure the final output for the users using the functions located in the layout/ folder./skin/frontend/default/YOUR_TEMPLATE_NAME/ - Contains the CSS, images, JavaScript and Flash files related to the template.

    View more threads in the same category:


  2. #2
    Junior Member
    Join Date
    Sep 2018
    Location
    Canada
    Posts
    873
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    /app – This folder contains the core files of Magento 2 including configuration, modules and themes files. /bin – It contains the Magento 2 CLI feature. /phpserver – The phpserver folder contains Router.php file. /pub – This directory contains generated static files and site media.

  3. #3
    Junior Member
    Join Date
    Sep 2019
    Posts
    164
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Magento 2 Folder Structure
    /app – This folder contains the core files of Magento 2 including configuration, modules and themes files. /bin – It contains the Magento 2 CLI feature. ... The Magento 2 CLI can help you in installing modules, upgrading the application core, reindexing, compiling, etc

  4. #4
    Junior Member
    Join Date
    Sep 2018
    Location
    Canada
    Posts
    873
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Magento Files and Folders Structure

    . ...

    . ...

    application (registry) - this organizer contains the topics and setup records. ...

    receptacle (catalog) - contains the magento CLI. ...

    dev (registry) - contains different instruments for engineers, for example, relocation apparatuses and tests;

    file. ...

    lib (registry) - the Magento center code is situated in this organizer. ...

    LICENSE_AFL.

  5. #5
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    The application index is answerable for putting away all arrangement records, any subjects introduced in a Magento 2 Open Source application. Topic documents incorporate PHTML,

Similar Threads

  1. Creating CSV files in Magento
    By golddev in forum Programming & Development
    Replies: 0
    Last Post: 05-04-2013, 02:29 AM
  2. Magento directory structure
    By rocker in forum Programming & Development
    Replies: 1
    Last Post: 27-03-2013, 02:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •