Cannot access Magento software in a web browser

Symptom: The following message displays when you try to access the Magento storefront or Admin:

Magento supports PHP 7.1.3 or later. Please read Magento System Requirements.

Solution

Either upgrade PHP or restart Apache (Apache might not be using the same PHP version as is on the file system).

Symptom: A 404 (Not Found) error displays.

Solution

Try the following:

  • Make sure Apache server rewrites are enabled.

    If Apache server rewrites are set incorrectly, static files aren’t served from the correct location.

  • Likely an issue with the base URL you entered during the installation. You specify the base URL as the value of --base-url= when installing Magento from the command line or as the value of the Your Store Address field on the Web Configuration page of the web installer.

    The base URL must start with the scheme (such as http://) and end with a trailing slash (/). Run the installer again with a valid value and try accessing Magento afterward.

    To restart Apache:

    • Ubuntu: service apache2 restart
    • CentOS: service httpd restart