OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Install orocommerce: http error 500

This topic contains 1 reply, has 2 voices, and was last updated by  dubrsl 2 months, 1 week ago.

  • Creator
    Topic
  • #38335

    it-eken
    Participant

    I install ecommerce step by step from guide.
    i use: centos7.4, nginx,

    Install was succsessful until i call the url and i got a http error 500.
    Also i done:
    setfacl -b -R ./
    find . -type f -exec chmod 0644 {} \;
    find . -type d -exec chmod 0755 {} \;
    chown -R nginx:nginx ./var/{sessions,attachment,cache,import_export,logs}
    chown -R nginx:nginx ./public/{media,uploads,js}

    So i had a look to the log file.

    nginx error log:
    2019/03/13 02:46:29 [error] 128097#0: *8 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Symfony\Component\Filesystem\Exception\IOException: Unable to write to the “/usr/share/nginx/html/oroapp/var/cache/prod” directory. in /usr/share/nginx/html/oroapp/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:681

    File Permisson:

    [root@MyOroVM var]# ls -la
    total 112
    drwxr-xr-x. 7 root root 171 Mar 12 21:49 .
    drwxr-xr-x. 11 root root 4096 Mar 12 21:30 ..
    drwxr-xr-x. 2 nginx nginx 4096 Mar 12 22:33 attachment
    -rw-r–r–. 1 root root 42870 Mar 12 21:46 bootstrap.php.cache
    drwxr-xr-x. 3 nginx nginx 34 Mar 13 02:12 cache
    drwxr-xr-x. 2 nginx nginx 24 Mar 7 18:31 import_export
    drwxr-xr-x. 2 nginx nginx 22 Mar 12 22:04 logs
    -rw-r–r–. 1 root root 20928 Mar 7 18:31 OroRequirements.php
    drwxr-xr-x. 3 nginx nginx 18 Mar 12 21:49 sessions
    -rw-r–r–. 1 root root 33831 Mar 12 21:46 SymfonyRequirements.php
    [root@MyOroVM var]# cd cache
    [root@MyOroVM cache]# ls
    prod
    [root@MyOroVM cache]# ls -la
    total 0
    drwxr-xr-x. 3 nginx nginx 34 Mar 13 02:12 .
    drwxr-xr-x. 7 root root 171 Mar 12 21:49 ..
    -rw-r–r–. 1 nginx nginx 0 Mar 7 18:31 .gitkeep
    drwxr-xr-x. 2 nginx nginx 6 Mar 13 02:12 prod
    [root@MyOroVM cache]# cd prod
    [root@MyOroVM prod]# ls
    [root@MyOroVM prod]# ls -la
    total 0
    drwxr-xr-x. 2 nginx nginx 6 Mar 13 02:12 .
    drwxr-xr-x. 3 nginx nginx 34 Mar 13 02:12 ..

    I hope that you can help me.
    Thank you.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #38359

    dubrsl
    Participant

    Is selinux enabled?
    If yes, check audit log for sure, that selinux block access.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

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

Yes No