localhost http Error 500

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

localhost http Error 500

Postby zoxAbbasi » 27. January 2023 03:59

Hello,
I'm new to the world of XAMPP and programming. I have been using XAMPP for like a week and everything was working fine.

Recently I started a project with database on VSCode, have my folder in htdocs, the project shows up on localhost/my_folder but when I save any file in my project which requires a connection with database, localhost stops responding.

Using XAMPP 8.2.0.0 on macOS Big Sur.

I have tried some command line's which showed up in my Google search but nothing is working for me and as I have mentioned before, I'm new to this world of programming, so I have no idea what the problem really is. Is it the ports, php not responding, or something wrong with mySQL, I have no idea.
Will appreciate any help I can get from the community.
zoxAbbasi
 
Posts: 1
Joined: 27. January 2023 03:14
XAMPP version: 8.2.0.0
Operating System: MacOS Big Sur

Re: localhost http Error 500

Postby masterpreshy.com » 27. January 2023 12:17

You should check your code for errors causing the error.

Try wrapping your code in a try and catch block just to see what is making it fail.

You could post your code for guidance as well.
masterpreshy.com
 
Posts: 2
Joined: 27. January 2023 12:16
XAMPP version: 8.2
Operating System: MacOS

Re: localhost http Error 500

Postby Cobl » 06. February 2023 22:22

Im actually having the same issue

Im assuming in my case I need to install as admin?

my error log reads :

"[Mon Feb 06 15:04:20.473832 2023] [ssl:warn] [pid 279] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Feb 06 15:04:20.474277 2023] [ssl:warn] [pid 279] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 06 15:04:20.621285 2023] [ssl:warn] [pid 280] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Feb 06 15:04:20.621351 2023] [ssl:warn] [pid 280] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 06 15:04:20.621645 2023] [lbmethod_heartbeat:notice] [pid 280] AH02282: No slotmem from mod_heartmonitor
[Mon Feb 06 15:04:20.636962 2023] [mpm_prefork:notice] [pid 280] AH00163: Apache/2.4.54 (Unix) OpenSSL/1.1.1s PHP/8.2.0 mod_perl/2.0.12 Perl/v5.34.1 configured -- resuming normal operations
[Mon Feb 06 15:04:20.637087 2023] [core:notice] [pid 280] AH00094: Command line: '/Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -D SSL -D PHP'
[Mon Feb 06 15:12:55.868790 2023] [mpm_prefork:notice] [pid 280] AH00169: caught SIGTERM, shutting down
[Mon Feb 06 15:22:50.099395 2023] [ssl:warn] [pid 1581] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Feb 06 15:22:50.101415 2023] [ssl:warn] [pid 1581] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 06 15:22:50.236259 2023] [ssl:warn] [pid 1582] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Feb 06 15:22:50.236333 2023] [ssl:warn] [pid 1582] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 06 15:22:50.236791 2023] [lbmethod_heartbeat:notice] [pid 1582] AH02282: No slotmem from mod_heartmonitor
[Mon Feb 06 15:22:50.261016 2023] [mpm_prefork:notice] [pid 1582] AH00163: Apache/2.4.54 (Unix) OpenSSL/1.1.1s PHP/8.2.0 mod_perl/2.0.12 Perl/v5.34.1 configured -- resuming normal operations
[Mon Feb 06 15:22:50.261122 2023] [core:notice] [pid 1582] AH00094: Command line: '/Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -D SSL -D PHP'"
Cobl
 
Posts: 2
Joined: 06. February 2023 22:19
XAMPP version: 8.2.0
Operating System: Mac


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 13 guests