Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: sasupo on March 09, 2020, 03:46:17 PM

Title: 500 Internal server error on Magento
Post by: sasupo on March 09, 2020, 03:46:17 PM
We just transfered page from cpanel server to CWP just for testing if will work with Varnish and we got this error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Checked log files and there are this lines:
[Mon Mar 09 16:42:06.005490 2020] [:error] [pid 19715:tid 140343676753664] [client 81.17.20.10:43946] SoftException in Application.cpp:542: Could not execute script "/home/topoprem/public_html/index.php"
[Mon Mar 09 16:42:06.005788 2020] [:error] [pid 19715:tid 140343676753664] [client 81.17.20.10:43946] Caused by SystemException in API_Linux.cpp:444: execve() for program "/opt/alt/php73/usr/bin/php-cgi" failed: No such file or directory
[Mon Mar 09 16:42:06.005809 2020] [core:error] [pid 19715:tid 140343676753664] [client 81.17.20.10:43946] End of script output before headers: index.php

I would really apreciate any help

New to CWP :)
Title: Re: 500 Internal server error on Magento
Post by: Sandeep on March 09, 2020, 04:41:22 PM
hi check the permission is correct
https://wiki.centos-webpanel.com/500-internal-server-error
Title: Re: 500 Internal server error on Magento
Post by: sasupo on March 09, 2020, 05:54:33 PM
Tryed this solution but no success: go to CWP.admin Left Menu --> User Accounts -- > Fix Permissions and select user.

Any other Ideas?
Title: Re: 500 Internal server error on Magento
Post by: Sandeep on March 09, 2020, 07:25:19 PM
can you check php 7.3 selector is installed i guess it is not.
Title: Re: 500 Internal server error on Magento
Post by: pixelpadre on March 09, 2020, 09:47:06 PM
We just transfered page from cpanel server to CWP just for testing if will work with Varnish and we got this error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Checked log files and there are this lines:
[Mon Mar 09 16:42:06.005490 2020] [:error] [pid 19715:tid 140343676753664] [client 81.17.20.10:43946] SoftException in Application.cpp:542: Could not execute script "/home/topoprem/public_html/index.php"
[Mon Mar 09 16:42:06.005788 2020] [:error] [pid 19715:tid 140343676753664] [client 81.17.20.10:43946] Caused by SystemException in API_Linux.cpp:444: execve() for program "/opt/alt/php73/usr/bin/php-cgi" failed: No such file or directory
[Mon Mar 09 16:42:06.005809 2020] [core:error] [pid 19715:tid 140343676753664] [client 81.17.20.10:43946] End of script output before headers: index.php

I would really apreciate any help

New to CWP :)

Anyone who volunteers to use Magento deserves what they get.  500 error.  This is Magento issue.  Millions of posts about magento server errors. 

Use Zencart. Magento is a nightmare.
Title: Re: 500 Internal server error on Magento
Post by: sasupo on March 10, 2020, 06:04:09 AM
Solved it was permission problem in our magento directory
Title: Re: 500 Internal server error on Magento
Post by: redy on September 10, 2021, 08:01:25 AM
On my env, just edit .htaccess
Change:
Code: [Select]
Options +FollowSymLinkswith
Code: [Select]
Options +SymLinksIfOwnerMatch