Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums Oro Community Orocommerce Community Installation Fails

This topic contains 3 replies, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 2 weeks, 2 days ago.

  • Creator
    Topic
  • #40342

    chadj
    Participant

    We have tried to install Orocommerce Community platform to a shared hosting environment for testing the platform before using it. We have created a oroapps folder in the root directory of our web hosting package and installed composer. We have also downloaded orocommerce platform from your site and all files were successfully expanded in this folder in Plesk. We are using Apache 2.4 Web Server and MySQL database. We have access to SSH service. In the final step of Orocommerce installation we used php ./bin/console oro:install –env=prod –timeout=900 command through SSH and the returned message reads Parse error: syntax error, unexpected ‘function’ (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in /var/www/vhosts/aviationeu.com/oroapps/vendor/zendframework/zend-diactoros/src/functions/marshal_headers_from_sapi.php on line 10. We have tried to use different PHP Versions other than our current 7.3.8 (like 5.4.45, 5.5.38, 5.6.40, etc.) but they all result to the same message. Last Apache error in the log is AH01276: Cannot serve directory /var/www/vhosts/aviationeu.com/oroapps/: No matching DirectoryIndex (index.php,index.html,index.cgi,index.pl,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive. Please advise if there is any way to complete installation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #40344
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Chadj,

    An application is compatible with PHP ~7.1.26 and 7.2. The compatibility with 7.3 is in our backlog but not implemented yet.

    #40345

    chadj
    Participant

    Dear Andrey,
    Thank you for your response. We have alternative tried alternative options for PHP, 7.2.21 and 7.1.31 and the result is exactly the same. The problem must be with zendframework/zend-diactoros application which results in syntax error. Please advise if we can complete installation without this application or if you can suggest a change in the code of marshal_headers_from_sapi.php file that will resolve the problem of the expecting identifier. Thank you in advance for your assistance.

    #40346
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    After changing the PHP version it is required to reinstall the vendors, rm -rf vendor && composer install

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No