Installation trouble shooting in magento 2
While going through installation of magento 2 one may face different types of error which may block the installation of magento 2.Here i am going to share some of the common error one may face during installation of magento 2.
Magento 2 PHP &Mysql Requirements
Also made changes to these variables like
500 Internal Server Error
several reasons, so i need proper error message to short it out. Send me your proper error
message to get rid out of it.
If css or js not loaded properly on store front then you should run
the following commands to deploy magento.
php bin/magento setup:static-content:deploy -f
sudo chmod -R 777 var/ pub/ generated/ (granting permission only in linux based os)
php bin/magento c:c
php bin/magento c:f
sudo chmod -R 777 var/ pub/ generated/ (granting permission only in linux based os)
Even you can marge all the commands into a single file and run once in linux based OS you can make .sh file or in window based you can make .bat file for the same.
Magento 2 PHP &Mysql Requirements
- 5.6.x; (Mysql version)
- 5.5.x, for x>=22; (Mysql version except 5.5.22)
- 7.0.2 to 7.1.0, except for php 7.0.5.
- 7.1.3+ 7.2.x (for Magento 2.3.0)
Required PHP extensions:
- curl;
- gd, ImageMagick > 6.3.7;
- intl;
- mbstring;
- mcrypt;
- mhash;
- openssl;
- PDO/MySQL;
- SimpleXML;
- soap;
- xml;
- xsl;
- zip;
- json (PHP 7 only);
- iconv (PHP 7 only)
- ctype
- dom
- spl
- libxml
- bc-math (Magento 2.3 Commerce only)
- hash (Magento 2.3 only)
- azip (Magento 2.3 only)
You need to fix each and every error to install magento 2.
- Open your php.ini file and made the following changes
- Find and un-comment 'always_populate_raw_post_data' also set it's value to -1 from 0.
- Find mcrypt and php_init.dll and also un -comment both of them.
Also made changes to these variables like
max_execution_time = 1800
max_input_time = 1800
memory_limit = 1024M
500 Internal Server Error
Now open your apache's httpd.conf file and find
<Directory "/"> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory>
There may be a chance of blank screen when landing on admin login page this may be due to
several reasons, so i need proper error message to short it out. Send me your proper error
message to get rid out of it.
If css or js not loaded properly on store front then you should run
the following commands to deploy magento.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
sudo chmod -R 777 var/ pub/ generated/ (granting permission only in linux based os)
php bin/magento c:c
php bin/magento c:f
sudo chmod -R 777 var/ pub/ generated/ (granting permission only in linux based os)
Even you can marge all the commands into a single file and run once in linux based OS you can make .sh file or in window based you can make .bat file for the same.
If any error other than mentioned above occurred then fell free to comment you issue along with error message or screenshot, so that i can assist you.
Comments
Post a Comment