0

I installed WordPress in my Linux Mint successfully. I used sudo chmod 777 -R /var/www/html/wordpress/corewordpress

enter image description here

I am trying to install Magento2 same way but I can't.

enter image description here

Why it is happening ?

  • 1
    are you trying to install into local machine? might be happened due to permission issue try this magento.stackexchange.com/a/95033/55928 you can check server log if there is any error – Hitesh Oct 10 '18 at 4:39
  • can you enable error reporting by app/bootstrap.php file uncomment ini_set('display_errors', 1); then check what is error here ? – Ansar Husain Oct 10 '18 at 4:41
  • Thank you @Hit's. Yes, I am trying to install into local machine. WordPress is installed perfectly. Why magento is creating issue ? Thanks. – abu abu Oct 10 '18 at 4:50
  • @Hit's, I followed your link previously. But did not get any result. – abu abu Oct 10 '18 at 4:52
  • do you face any error in the server log? why don't you try by localhost/ma? – Hitesh Oct 10 '18 at 4:53
1

Add below code on the top of your index.php(of Magento) file then you will get the exact error:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
  • Thanks @Saphal Jha. I am getting below erro i.stack.imgur.com/VfrM2.png – abu abu Oct 10 '18 at 4:57
  • 1
    That means you are using magento2 in php 7.2 @abuabu . and magento 2 not supporting in php 7.2 yet – Ansar Husain Oct 10 '18 at 4:59
  • Thanks @AnsarHusain. Which PHP version should I use ? – abu abu Oct 10 '18 at 5:05
  • 1
    use 7.0 yet if you are using magento2.2.X @abuabu – Ansar Husain Oct 10 '18 at 5:06
  • @abuabu Switch your PHP version to 7.1 and try again – Saphal Jha Oct 10 '18 at 5:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.