Post by poetry » Thu Jun 11, 2020 2:48 am

What version of OpenCart are you reporting this for?
3.0.3.3

Describe the bug
As far as I can see I only detect errors on admin console. See the attachment error_log.txt

To Reproduce
Steps to reproduce the behavior:
in the error_log.txt attachment

See errors above
Expected behavior
No errors

Screenshots / Screen recordings
No need to record. Everything is posted above:

Server / Test environment (please complete the following information):
Deployed to a web server for production

Operating system
CentOS Linux release 8.1.1911 (Core)

PHP version
PHP Version 7.3.19

Apache version (not using apache)
nginx version: nginx/1.19.0

Browser(s) tested with [e.g. chrome, safari - if applicable]

any browser same errors

Additional context
Add any other context about the problem here.

Looking into https://github.com/opencart/opencart/bl ... nstall.txt and http://docs.opencart.com/en-gb/administration/security/ there is conflicting information how to set permissions and the information is not complete.
Let me add that I was also looking into the https://github.com/opencart/opencart/re ... .0.3.3.zip - install.txt
It was noted there to do this (from install.txt)
----------------
3. For Linux/Unix make sure the following folders and files are writable.
chmod 0755 or 0777 system/storage/cache/
chmod 0755 or 0777 system/storage/download/
chmod 0755 or 0777 system/storage/logs/
chmod 0755 or 0777 system/storage/modification/
chmod 0755 or 0777 system/storage/session/
chmod 0755 or 0777 system/storage/upload/
chmod 0755 or 0777 system/storage/vendor/
chmod 0755 or 0777 image/
chmod 0755 or 0777 image/cache/
chmod 0755 or 0777 image/catalog/
chmod 0755 or 0777 config.php
chmod 0755 or 0777 admin/config.php

If 0755 does not work try 0777.
----------------
For now I have disabled selinux after I get some proper information how to apply permissions then I will enable it again and set it properly.

Steps to apply permissions.
1.
groupadd webadmin
usermod -a -G webadmin nginx
chown -R root:webadmin /var/www/html/opencart/
chown -R root:webadmin /var/www/html/storage/
2.
chmod -R 0755 /var/www/html/opencart/
chmod -R 0755 /var/www/html/storage/
3.
chmod -R 0777 /var/www/html/storage/cache/
chmod -R 0777 /var/www/html/storage/download/
chmod -R 0777 /var/www/html/storage/logs/
chmod -R 0777 /var/www/html/storage/modification/
chmod -R 0777 /var/www/html/storage/session/
chmod -R 0777 /var/www/html/storage/upload/
chmod -R 0777 /var/www/html/storage/vendor/
chmod -R 0777 /var/www/html/opencart/image/
chmod -R 0777 /var/www/html/opencart/image/cache/
chmod -R 0777 /var/www/html/opencart/config.php
chmod -R 0777 /var/www/html/opencart/admin/config.php

Let me know what I am doing wrong. I want to be able to manage my admin console without any errors. Thank you for reading.

Newbie

Posts

Joined
Wed Jun 10, 2020 9:24 pm

Post by straightlight » Fri Jun 12, 2020 7:50 pm

As per your error logs states:
Warning: mkdir(): Permission denied
Your CHMOD permissions are not properly configured. If you require assistance to install Opencart professionally, please create a new service request in the Commercial Support section of the forum, or contact a reliable Opencart partner from the Resources link at the top of the site or send me a PM directly to get this done as a custom job.

You may also want to be kept up-to-date with the installation instructions by using the pre-release of OC v3.0.3.4 with 99% of bug-fixes solutions: viewtopic.php?f=2&t=218204 .

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Fri Jun 12, 2020 7:52 pm

This topic has now been moved to the OpenCart 3.0 Support > Installation, Upgrade, & Config Support section of the forum.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 5 guests