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

  1. 5.6.x; (Mysql version)
  2. 5.5.x, for x>=22; (Mysql version except 5.5.22)
  3. 7.0.2 to 7.1.0, except for php 7.0.5.
  4. 7.1.3+  7.2.x (for Magento 2.3.0)

Required PHP extensions:
  1. curl;
  2. gd, ImageMagick > 6.3.7;
  3. intl;
  4. mbstring;
  5. mcrypt;
  6. mhash;
  7. openssl;
  8. PDO/MySQL;
  9. SimpleXML;
  10. soap;
  11. xml;
  12. xsl;
  13. zip;
  14. json (PHP 7 only);
  15. iconv (PHP 7 only)
  16. ctype
  17. dom
  18. spl
  19. libxml
  20. bc-math (Magento 2.3 Commerce only)
  21. hash (Magento 2.3 only)
  22. 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

Popular posts from this blog

Jasper report integration in Spring boot/Spring MVC.

FireBase Crud operation in Spring Boot

Xero Developer account setup with REST API auth flow.