Magento 2.4.2 Theme + Apache + Composer Issues

Keywords: Magento - VMware Marketplace - Technical issue - Other

bnsupport ID: 7dd4cb46-a84b-5301-379b-7a8efac97e8b

bndiagnostic output:

? Apache: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
https://docs.bitnami.com/bch/apps/moodle/troubleshooting/deny-connections-bots-apache/

bndiagnostic failure reason: I do not know how to perform the changes explained in the documentation

Description:
Hello Support Specialists at Bitnami,
I am currently installing a new theme and whilst watching this video - https://www.youtube.com/watch?v=ApIs5yx2R5U - I understand the path is different from the current release - /opt/bitnami/apps/magento/htdocs/ - What is the latest path for cd /opt/bitnami/apps/magento/htdocs/ as it is throwing an error - No such file or directory YouTube Video Timestamp 1:40

Also if you can list out any other steps to solve issues like Apache Config issues as seen on the Bitnami Support Code

Other issues - /var/composer.json file error on each time I run command setup:upgrade - I have created a new file with {} and that throws other errors

Looking forward to this

Hi @weskyprint,

Thanks for the info. We modified the structure of our Magento cloud images and the paths shown in that video are no longer valid. Sorry for the confusion. You can get more information about the changes we implemented in the link below

https://docs.bitnami.com/aws/faq/get-started/understand-upcoming-changes/

I think you can follow the next guide for installing a new extension or theme using composer. Can you give it a try?

https://docs.bitnami.com/aws/apps/magento/configuration/install-extension-composer/

We also have an specific guide for installing a theme

https://docs.bitnami.com/aws/apps/magento/configuration/install-theme/

Checking in on the reply… Yes, the File structure is Valid as per your recommendation -

:grinning: /opt/bitnami/magento/app/
instead of
:pleading_face: /opt/bitnami/apps/magento/htdocs/

Can you please check the BNSupport Code as there are several issues with Apache Configuration. Is there a way to solve this?

Hi @weskyprint,

Thanks for your message. Please let us know if using the paths in the guide helps you to successfully install the theme.

Regarding the Apache issues, I see the next error messages

[Sun Jul 18 08:03:21.753639 2021] [authz_core:error] [pid 10041:tid 140000079140608] [client **ip_address**:53352] AH01630: client denied by server configuration: /opt/bitnami/magento/app/etc/config.php
 [Sun Jul 18 11:45:08.238866 2021] [authz_core:error] [pid 10041:tid 140000523953920] [client **ip_address**:37620] AH01630: client denied by server configuration: /opt/bitnami/magento/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
 [Sun Jul 18 11:45:11.591425 2021] [authz_core:error] [pid 10041:tid 140000565917440] [client **ip_address**:54590] AH01630: client denied by server configuration: /opt/bitnami/magento/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php

They seem to be related with permissions issues. Can you run the next commands on your server and share the output with us?

sudo ls -lart /opt/bitnami/magento
sudo ls -lart /opt/bitnami/magento/app
sudo ls -lart /opt/bitnami/magento/vendor

Yes, the path you provided did help install the theme!

Here is the issue for Apache Permission issues right out of the box that I face

sudo ls -lart /opt/bitnami/magento
Output

lrwxrwxrwx 1 root root 16 Jul 18 05:28 /opt/bitnami/magento -> /bitnami/magento

sudo ls -lart /opt/bitnami/magento/app
Output

total 32
-rw-rw-r--  1 daemon daemon 2536 Jul 18 05:27 bootstrap.php
-rw-rw-r--  1 daemon daemon 1397 Jul 18 05:27 autoload.php
-rw-rw-r--  1 daemon daemon  126 Jul 18 05:27 .htaccess
drwxrwxr-x  2 daemon daemon 4096 Jul 18 05:27 etc
drwxrwxr-x  5 daemon daemon 4096 Jul 18 05:47 .
drwxrwxr-x 15 daemon daemon 4096 Jul 18 06:12 ..
drwxr-xr-x  8 daemon daemon 4096 Jul 19 10:14 code
drwxrwxr-x  4 daemon daemon 4096 Jul 19 10:14 design

sudo ls -lart /opt/bitnami/magento/vendor
Output

total 364
drwxrwxr-x   4 daemon daemon  4096 Jul 18 05:27 paypal
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 container-interop
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 temando
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 true
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 beberlei
drwxrwxr-x   6 daemon daemon  4096 Jul 18 05:27 vertex
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 php-amqplib
-rw-rw-r--   1 daemon daemon   178 Jul 18 05:27 autoload.php
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 dasprid
-rw-rw-r--   1 daemon daemon   125 Jul 18 05:27 .htaccess
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 endroid
drwxrwxr-x   6 daemon daemon  4096 Jul 18 05:27 amzn
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 justinrainbow
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 monolog
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 donatj
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 react
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 tubalmartin
drwxrwxr-x   4 daemon daemon  4096 Jul 18 05:27 seld
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 wikimedia
drwxrwxr-x   7 daemon daemon  4096 Jul 18 05:27 league
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 elasticsearch
drwxrwxr-x   6 daemon daemon  4096 Jul 18 05:27 colinmollenhour
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 khanamiryan
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 ralouphie
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 ramsey
drwxrwxr-x   5 daemon daemon  4096 Jul 18 05:27 paragonie
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 pelago
drwxrwxr-x  40 daemon daemon  4096 Jul 18 05:27 laminas
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 webimpress
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 2tvenom
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 astock
drwxrwxr-x   4 daemon daemon  4096 Jul 18 05:27 phpseclib
drwxrwxr-x   5 daemon daemon  4096 Jul 18 05:27 guzzlehttp
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 spomky-labs
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 aws
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 mtdowling
drwxrwxr-x   5 daemon daemon  4096 Jul 18 05:27 dotmailer
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 webonyx
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 thecodingmachine
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 google
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 yotpo
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 christian-riesen
drwxrwxr-x   7 daemon daemon  4096 Jul 18 05:27 klarna
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 bacon
drwxrwxr-x   4 daemon daemon  4096 Jul 18 05:27 ezimuel
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 braintree
drwxrwxr-x   3 daemon daemon  4096 Jul 18 05:27 tedivm
drwxrwxr-x  15 daemon daemon  4096 Jul 18 06:12 ..
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:32 squizlabs
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:32 dealerdirect
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:32 magearray
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:32 phpoption
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:32 phpcollection
drwxr-xr-x   5 daemon daemon  4096 Jul 18 07:32 jms
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 webmozart
drwxr-xr-x   5 daemon daemon  4096 Jul 18 07:33 phpdocumentor
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 phpspec
drwxr-xr-x   4 daemon daemon  4096 Jul 18 07:33 phar-io
drwxrwxr-x   4 daemon daemon  4096 Jul 18 07:33 myclabs
drwxr-xr-x   9 daemon daemon  4096 Jul 18 07:33 phpunit
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 mikey179
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 php-cs-fixer
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 friendsofphp
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 lusitanian
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 weew
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 vlucas
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 php-webdriver
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 mustache
drwxr-xr-x  11 daemon daemon  4096 Jul 18 07:33 hoa
drwxrwxr-x   7 daemon daemon  4096 Jul 18 07:33 psr
drwxr-xr-x   7 daemon daemon  4096 Jul 18 07:33 doctrine
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 cache
drwxr-xr-x   4 daemon daemon  4096 Jul 18 07:33 csharpru
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 behat
drwxr-xr-x   9 daemon daemon  4096 Jul 18 07:33 codeception
drwxrwxr-x 330 daemon daemon 20480 Jul 18 07:33 magento
drwxr-xr-x   5 daemon daemon  4096 Jul 18 07:33 allure-framework
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 phpcompatibility
drwxrwxr-x  29 daemon daemon  4096 Jul 18 07:33 symfony
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 pdepend
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 phpmd
drwxr-xr-x   3 daemon daemon  4096 Jul 18 07:33 phpstan
drwxr-xr-x   4 daemon daemon  4096 Jul 18 07:33 theseer
drwxr-xr-x  17 daemon daemon  4096 Jul 18 07:33 sebastian
drwxrwxr-x   7 daemon daemon  4096 Jul 18 07:33 composer
drwxrwxr-x   2 daemon daemon  4096 Jul 18 07:33 bin
drwxrwxr-x  85 daemon daemon  4096 Jul 18 07:33 .

Hi @weskyprint,

The permissions seems to be fine, so maybe the error message in Apache means that someone tried to retrieve those files using HTTP. I think you can disregard those errors, but to be safer you can check if that IP address belong to a bot that you can block

https://docs.bitnami.com/vmware-marketplace/apps/magento/troubleshooting/deny-connections-bots-apache/

Apart from that, I’m glad you managed to install the theme without issues!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.