Magento 2 – issue with getting “version” number in static files path

Many people advised to DISABLE “Sign Static Files” from Admin Panel.

Stores > Configuration > Advanced > Developer > Sign Static Files

or to add the value directly in core_config_data table:

INSERT INTO core_config_data (config_id, scope, scope_id, path, value) VALUES (null, 'default', 0, 'dev/static/sign', 0);

or to update the value directly in core_config_data table:

UPDATE core_config_data SET value='0' WHERE path='dev/static/sign';

In my case, static file version number was not added in file URLs (in both development and production mode) (in different websites).

As we know, in production mode we don’t get DEVELOPER tab in Admin Panel ( Admin Panel > Stores > Configuration > Advanced > Developer).

What worked for me is, I tried removing ‘dev/static/sign’ record from core_config_data table:

DELETE FROM core_config_data WHERE path = 'dev/static/sign';

Then I compiled code again, refreshed cache and all okay now.

How To Install Magento 2.3.1 on Localhost using XAMPP

Here we are going to see Magento 2.3.1 installation on localhost using XAMPP software on Windows 10.


Tutorial References:

Prerequisites:

Before we start installation, we need to have these things ready on hand:

  • XAMPP Server installed in our computer.
  • Magento 2.3.1 Application Setup. Magento Open Source can be find from here
  • Composer

Magento 2.3 Application requirements:

  • Web server: Apache v2.2 or v2.4 or nginx 1.x
  • PHP: ~7.1.3 or ~7.2.0
  • Database: MySQL v5.6, v5.7
  • Required PHP extensions:
    ext-bcmath, ext-ctype, ext-curl, ext-dom, ext-gd, ext-hash, ext-iconv, ext-intl, ext-mbstring, ext-openssl, ext-pdo_mysql, ext-simplexml, ext-soap, ext-spl, ext-xsl, ext-zip, lib-libxml

Open your XAMPP server and start Apache and MySQL applications


Note: Composer is required for developers who wish to contribute to the Magento 2 codebase or anyone who wishes to develop Magento extensions and extend Magento project. Composer enables us to manage the Magento system, extensions, its dependencies, and also allows us to declare libraries for the project.

Learn: How to install Composer?

Note: Once composer is installed, we have to enable the extension (php_intl.dll) in our php.ini (php configuration) file.
To enable the extension, open php.ini file (default path: C:\xampp\php\php.ini) and uncomment the line “extension=php_intl.dll” by just removing semicolon “;” from the starting of the line and restart XAMPP control panel (by clicking on stop and start button in “Actions” column).


Now, we will create a new folder in c: -> xampp -> htdocs folder (default path: C:\xampp\htdocs) (we have used folder name “mage”). Now go inside “mage” folder and extract Magento 2.3.1 files (which we have downloaded earlier from here) inside this folder.


Note: Magento 2.3 allows us to install the Magento software and extensions using either the Web Setup Wizard or the command line.


First, we have to create an empty database in our local phpmyadmin.
Open any browser and go to http://localhost/phpmyadmin/
Then create a new Database.
or we can create using following SQL:

CREATE SCHEMA `mage` DEFAULT CHARACTER SET utf8;

where “mage” is database name.


Way 1:
Here we are going to use “Web Setup Wizard”.

To install the Magento software using the Setup Wizard:

Step 1: Start a web browser.

Step 2: Enter the following URL in the browser’s address or location bar:

http://<host or IP>/<path to Magento root>/setup
e.g. http://localhost/mage/setup or http://127.0.0.1/mage/setup

It will show you following screen:

Step 3: Now click on “Agree and Setup Magento” button.


Step 4: click on “Start Readiness Check” button.

NOTE: If configuration (PHP extension settins) is setup correct, then we will find following screen:

Otherwise we have to setup configuration properly again.

Step 5: Now click on “Next” button.

Step 6: Enter host, database-username, database-password, database-name, table-prefix (optional):

Now click on “Next” button.

Step 7: Enter web url for magento project (by default magento setup base url for us), we can choose some advance options also, as visible in below screen:

Now click on “Next” button.

Step 8: Now select store default Timezone, default Currency, default Language:

NOTE: We can select and deselect any 3rd party modules from “Advanced Modules Configurations”.

Now click on “Next” button.

Step 9: Now enter admin user’s info like username, email, password and confirm password:

Now click on “Next” button.

Step 10: If all goes correct, then we can find Install button:

Now click on “Install Now” button.

Success: If installation is successful, then Magento will show us following success screen, with encryption key and other details of our Magento project:


Way 2:
Here we are going to use “Command Line”.

Note: Hold the Shift key and right click, and Select “Open PowerShell window here”. This will open PowerShell window on the location.
Note: We can also use Windows Command Prompt or GIT Bash (if installed). Open GIT Bash or Windows Command Prompt and change location to folder (C:\xampp\htdocs\magento), where “magento” is our Magento project folder name.

php bin/magento setup:install --base-url="http://127.0.0.1/magento/" --db-host="127.0.0.1" --db-name="magento" --db-user="root" --admin-firstname="ADMIN" --admin-lastname="ADMIN" --admin-email="admin@domain.com" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="CAD" --timezone="America/Toronto" --use-rewrites="1" --backend-frontname="admin" --session-save="files"

/* if your database have password add: --db-password="password-here" */

to understand above commands, please visit this link.

In my command line, I used following command:<br>
php bin/magento setup:install < setup installation commad with following values:<br>
base-url => "http://127.0.0.1/magento/"<br>
db-host name => "127.0.0.1" <br>
db-name => "magento" <br>
db-user => "root" <br>
admin-firstname => "ADMIN" <br>
admin-lastname => "ADMIN" <br>
admin-email => "admin@domain.com" <br>
admin-user => "admin" <br>
admin-password => "admin123" <br>
language => "en_US" <br>
currency => "CAD" <br>
timezone => "America/Toronto" <br>
use-rewrites => "1" (1 means you use web server rewrites for generated links in the storefront and Admin)<br>
backend-frontname => "admin" <br>
session-save => "files" (to store session data in the file system)

If installation goes fine, we can find above success result in our Windows Command Prompt or GIT Bash window.


Congratulations

Magento 2.3.1 is successfully installed on our localhost.
We can access localhost magento project using http://localhost/mage/ url in any web browser.

© 2025 Faraz Jafri All rights reserved. Privacy Policy

Proudly powered by WordPress. Special thanks to Bootstrap, FontAwesome & Open Source Community.