500 Server Error with version

Hi Ninjas!

I was running today a new installation on Self Hosted but I am facing an error to get access

Any ideas on how to solve it?

I found this on the error_log:

[13-Feb-2024 22:02:22 UTC] PHP Warning: Constant PASSWORD_DEFAULT already defined in /home/gjfences/public_html/billing2024/update_pass.php on line 17

Please find below the error message Hope it helps and thanks!!

Internal Server Error

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

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Hi,

Please check if there are any details about the 500 error in the web server error logs.

I got this:

(none) gjfencesandwelding.com Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 500 /billing2024/public/index.php 69.59.91.53

That looks like the access logs, you need to check the error logs.

I found this error log on my cpanel:

[Tue Feb 13 15:30:02.806183 2024] [security2:error] [pid 25266] [client 69.59.91.53:61871] [client 69.59.91.53] ModSecurity: Warning. Pattern match “(?:edit-theme-plugin-file|update|activate|(?:upload|install-(?:plugin|theme)))” at ARGS:action. [file “/etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-apache/002_i360_1_vectors.conf”] [line “63”] [id “77316925”] [msg “IM360 WAF: WordPress theme/plugin activity track||File:||SC:/home/gjfences/public_html/wp-admin/admin-ajax.php||Action:||Theme:||Plugin:||User:gjfences||WPU:gjfences_admin||T:APACHE||”] [severity “DEBUG”] [tag “wp_core”] [tag “noshow”] [hostname “gjfencesandwelding.com”] [uri “/wp-admin/admin-ajax.php”] [unique_id “ZcvfWp55Xw6VGT9tHfoV3QAAAAk”], referer: Log In ‹ GJ Fences and Welding — WordPress
[Tue Feb 13 15:06:33.985185 2024] [authz_core:error] [pid 21550] [client 69.59.91.53:21053] AH01630: client denied by server configuration: /home/gjfences/public_html/billing/public/error_log
[Tue Feb 13 15:06:27.908252 2024] [authz_core:error] [pid 21941] [client 69.59.91.53:21098] AH01630: client denied by server configuration: /home/gjfences/public_html/billing/public/error_log
[Tue Feb 13 15:04:48.703706 2024] [cgi:error] [pid 20986] [client 51.89.167.1:60900] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/billing.gjfencesandwelding.com/cgi-bin/
[Tue Feb 13 15:04:34.352648 2024] [cgi:error] [pid 20933] [client 51.89.167.1:36740] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/billing.gjfencesandwelding.com/cgi-bin/
[Tue Feb 13 15:04:27.981940 2024] [cgi:error] [pid 20877] [client 51.89.167.1:42196] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/billing.gjfencesandwelding.com/cgi-bin/
[Tue Feb 13 15:04:27.835011 2024] [cgi:error] [pid 20420] [client 51.89.167.1:36732] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/billing.gjfencesandwelding.com/cgi-bin/
[Tue Feb 13 15:04:23.711444 2024] [cgi:error] [pid 20908] [client 104.164.173.190:58955] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/billing.gjfencesandwelding.com/cgi-bin/
[Tue Feb 13 13:43:59.546183 2024] [cgi:error] [pid 28968] [client 51.89.167.1:39114] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/cgi-bin/
[Tue Feb 13 13:43:31.250500 2024] [cgi:error] [pid 28872] [client 51.89.167.1:58916] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/cgi-bin/
[Tue Feb 13 13:43:20.829049 2024] [cgi:error] [pid 28787] [client 51.89.167.1:32912] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/cgi-bin/
[Tue Feb 13 13:43:12.702256 2024] [cgi:error] [pid 28111] [client 154.28.229.183:25943] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/cgi-bin/
[Tue Feb 13 13:43:12.535528 2024] [cgi:error] [pid 28109] [client 104.164.173.125:8233] AH02812: attempt to invoke directory as script: /home/gjfences/public_html/cgi-bin/

I hope helps

Thanks, it may help to disable mod_security.

Is working now and I can get access to the system, after shutdown the mod_security feature.

Now I am founding and red triangule at the botton show me a mesage cron jobs neet to be enable but is enable.

Is there any way to troubleshoot this, or to find a workaround?

Have you seen the info here:

Thank you for the info I am going to read it.

Meantime this is teh path on my cron jobs:

cd /home/gjfences/public_html/billing2024 && /opt/alt/php81/usr/bin/php -d register_argc_argv=On artisan schedule:run >> /dev/null 2>&1

what do you think about it< Is correct the path?

What do you see if you run this from the command line:

cd /home/gjfences/public_html/billing2024 && /opt/alt/php81/usr/bin/php -d register_argc_argv=On artisan schedule:run

I was running today the command directly on the terminal but is not showing any process

Please let me know your comments.

The >> part will hide the output, please run the command I pasted above.

Please find atatched the result:


Thank you and let me know your comments

That looks correct, how often is the cron set to run?