0

I was wondering if I could get some feedback. I am new to Magento and I am experiencing this Html 500 error for a few days now. I currently do not know the root password, nor does anyone here for that matter, so I may need to reset the root password on DigitalOcean if necessary.

The error.log I get is.

[Sun Oct 17 02:33:34.682000 2021] [proxy_fcgi:error] [pid 3976266:tid 140588707936000] [client 137.184.18.214:39012] AH01071: Got error 'Primary script unknown'
[Sun Oct 17 02:33:55.289866 2021] [authz_core:error] [pid 3976639:tid 140588296955648] [client 137.184.18.214:40940] AH01630: client denied by server configuration: /var/www/.../html/app/.env
[Sun Oct 17 11:38:18.579532 2021] [core:error] [pid 1815888:tid 140588933428992] [client 45.146.164.110:34572] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
[Sun Oct 17 15:44:59.746490 2021] [core:error] [pid 1816966:tid 140588800255744] [client 45.146.164.110:52222] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
[Sun Oct 17 16:50:11.925585 2021] [proxy_fcgi:error] [pid 1815889:tid 140588556965632] [client 137.184.18.214:36852] AH01071: Got error 'Primary script unknown'
[Sun Oct 17 16:50:27.528818 2021] [authz_core:error] [pid 1815888:tid 140587701335808] [client 137.184.18.214:38300] AH01630: client denied by server configuration: /var/www/.../html/app/.env
[Mon Oct 18 05:51:44.173967 2021] [authz_core:error] [pid 1815890:tid 140588825433856] [client 51.91.7.5:38298] AH01630: client denied by server configuration: /var/www/.../html/app/etc/local.xml
[Mon Oct 18 05:51:46.710072 2021] [authz_core:error] [pid 1815889:tid 140588372424448] [client 51.91.7.5:42800] AH01630: client denied by server configuration: /var/www/.../html/var/cache/mage--2/
[Mon Oct 18 07:47:38.161913 2021] [core:error] [pid 1815890:tid 140588817041152] [client 45.146.164.110:60338] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
[Mon Oct 18 08:42:00.986325 2021] [core:error] [pid 1815889:tid 140588422780672] [client 45.146.164.110:33014] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
[Mon Oct 18 10:37:18.222337 2021] [core:error] [pid 1816966:tid 140588238239488] [client 193.118.53.210:32886] AH00126: Invalid URI in request HEAD /icons/.%2e/%2e%2e/apache2/icons/sphere1.png HTTP/1.1

This error is strange because I do not have a local.xml file in that directory in the first place. Is that why this error happens? ( This website used to work but I don't recall ever deleting the local.xml file)

I've tried mostly all fixes from this website https://magecomp.com/blog/fix-magento-2-500-internal-server-error/ but no luck. The ones I couldn't try were rewriting the file/folder permissions or restarting the HTTPd web server since I am not a root user.

Thank you

UPDATE: I now get this error on my browser

1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'link', attribute 'href': The attribute 'href' is not allowed.
Line: 1083

Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083

Element 'link': The attribute 'src' is required but missing.
Line: 1083


Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'link', attribute 'href': The attribute 'href' is not allowed.
Line: 1083

Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083

Element 'link': The attribute 'src' is required but missing.
Line: 1083
#1 Magento\Framework\Config\Dom->__construct('createObject('Magento\Framewor...', array('create('Magento\Framewor...', array('xml' => ' '/var/www/science...', 'validationState' => &Magento\Framework\App\Arguments\ValidationState#000000000631703b000000005b521fb4#)) called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#4 Magento\Framework\ObjectManager\ObjectManager->create('Magento\Framewor...', array('xml' => ' '/var/www/science...', 'validationState' => &Magento\Framework\App\Arguments\ValidationState#000000000631703b000000005b521fb4#)) called at [vendor/magento/framework/Config/DomFactory.php:43]
#5 Magento\Framework\Config\DomFactory->createDom(array('xml' => ' '/var/www/science...', 'validationState' => &Magento\Framework\App\Arguments\ValidationState#000000000631703b000000005b521fb4#)) called at [vendor/magento/framework/View/Model/Layout/Update/Validator.php:141]
#6 Magento\Framework\View\Model\Layout\Update\Validator->isValid('_validateMergedLayout('LAYOUT_frontend_...', '\n   load() called at [vendor/magento/framework/View/Layout/Builder.php:86]
#9 Magento\Framework\View\Layout\Builder->loadLayoutUpdates() called at [vendor/magento/framework/View/Layout/Builder.php:63]
#10 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Layout.php:259]
#11 Magento\Framework\View\Layout->build() called at [vendor/magento/framework/View/Layout.php:884]
#12 Magento\Framework\View\Layout->getBlock('page_content_hea...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:414]
#13 Magento\Framework\View\Layout\Interceptor->getBlock('page_content_hea...') called at [vendor/magento/module-cms/Helper/Page.php:215]
#14 Magento\Cms\Helper\Page->prepareResultPage(&Magento\Cms\Controller\Index\Index\Interceptor#000000000631735f000000005b521fb4#, 'home') called at [vendor/magento/framework/Interception/Interceptor.php:58]
#15 Magento\Cms\Helper\Page\Interceptor->___callParent('prepareResultPag...', array(&Magento\Cms\Controller\Index\Index\Interceptor#000000000631735f000000005b521fb4#, 'home')) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#16 Magento\Cms\Helper\Page\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Cms\Controller\Index\Index\Interceptor#000000000631735f000000005b521fb4#, 'home') called at [vendor/magento/framework/Interception/Interceptor.php:153]
#17 Magento\Cms\Helper\Page\Interceptor->___callPlugins('prepareResultPag...', array(&Magento\Cms\Controller\Index\Index\Interceptor#000000000631735f000000005b521fb4#, 'home'), array(array('swissupAmp'))) called at [generated/code/Magento/Cms/Helper/Page/Interceptor.php:26]
#18 Magento\Cms\Helper\Page\Interceptor->prepareResultPage(&Magento\Cms\Controller\Index\Index\Interceptor#000000000631735f000000005b521fb4#, 'home') called at [vendor/magento/module-cms/Controller/Index/Index.php:74]
#19 Magento\Cms\Controller\Index\Index->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#20 Magento\Cms\Controller\Index\Index\Interceptor->___callParent('execute', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#21 Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#22 Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('execute', array(), array(array('redirectToHomepa...', 'pluginAfterActio...'))) called at [generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php:26]
#23 Magento\Cms\Controller\Index\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#24 Magento\Framework\App\Action\Action->dispatch(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/Interception/Interceptor.php:58]
#25 Magento\Cms\Controller\Index\Index\Interceptor->___callParent('dispatch', array(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#26 Magento\Cms\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/Interception/Interceptor.php:153]
#27 Magento\Cms\Controller\Index\Index\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#), array(array('designLoader', 'customerNotifica...', 'catalog_app_acti...', 'tax-app-action-d...', 'weee-app-action-...', 'storeCheck', 'contextPlugin', 'customer-app-act...'))) called at [generated/code/Magento/Cms/Controller/Index/Index/Interceptor.php:39]
#28 Magento\Cms\Controller\Index\Index\Interceptor->dispatch(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/App/FrontController.php:162]
#29 Magento\Framework\App\FrontController->processRequest(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#, &Magento\Cms\Controller\Index\Index\Interceptor#000000000631735f000000005b521fb4#) called at [vendor/magento/framework/App/FrontController.php:98]
#30 Magento\Framework\App\FrontController->dispatch(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/Interception/Interceptor.php:58]
#31 Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', array(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#32 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
#33 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(&Magento\Framework\App\FrontController\Interceptor#000000000631709a000000005b521fb4#, &Closure#00000000063170f0000000005b521fb4#, &Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/Interception/Interceptor.php:135]
#34 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:73]
#35 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(&Magento\Framework\App\FrontController\Interceptor#000000000631709a000000005b521fb4#, &Closure#00000000063170f0000000005b521fb4#, &Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/Interception/Interceptor.php:135]
#36 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/swissup/module-amp/Plugin/Framework/FrontController.php:48]
#37 Swissup\Amp\Plugin\Framework\FrontController->aroundDispatch(&Magento\Framework\App\FrontController\Interceptor#000000000631709a000000005b521fb4#, &Closure#00000000063170f0000000005b521fb4#, &Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/Interception/Interceptor.php:135]
#38 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/Interception/Interceptor.php:153]
#39 Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#), NULL) called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#40 Magento\Framework\App\FrontController\Interceptor->dispatch(&Magento\Framework\App\Request\Http#00000000063171ff000000005b521fb4#) called at [vendor/magento/framework/App/Http.php:116]
#41 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#42 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000006317105000000005b521fb4#) called at [index.php:39]

and my error log looks like this

[Mon Oct 25 10:53:57.980262 2021] [core:error] [pid 490426:tid 139830000264960] [client 45.146.164.110:39212] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
[Mon Oct 25 11:39:24.325915 2021] [core:error] [pid 490642:tid 139830067406592] [client 45.146.164.110:51816] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
[Mon Oct 25 14:21:14.958534 2021] [authz_core:error] [pid 490426:tid 139830067406592] [client 212.193.30.49:42726] AH01630: client denied by server configuration: /var/www/.../html/app/.env
[Mon Oct 25 15:48:07.014630 2021] [proxy_fcgi:error] [pid 1176708:tid 140075209697024] [client 137.184.18.214:38938] AH01071: Got error 'Primary script unknown'
[Mon Oct 25 15:48:08.163867 2021] [authz_core:error] [pid 1176710:tid 140074897360640] [client 137.184.18.214:39052] AH01630: client denied by server configuration: /var/www/.../html/app/.env

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.