HTTP ERROR 500

Problems with the Windows version of XAMPP, questions, comments, and anything related.

HTTP ERROR 500

Postby manni12 » 27. August 2017 06:59

I am PHP noobie. I am trying to run Linux Ubuntu CakePHP project in windows xampp. I have changed the password in database.php and config.inc.php but the project is not running on localhost. it is showing following error:

This page isn’t working
localhost is currently unable to handle this request.
HTTP ERROR 500


Apache error.log showing following errors:
Code: Select all
[color=#4000FF]
[Sun Aug 27 11:16:08.421883 2017] [ssl:warn] [pid 2004:tid 128] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 27 11:16:08.843084 2017] [core:warn] [pid 2004:tid 128] AH00098: pid file D:/xamp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Aug 27 11:16:09.077084 2017] [ssl:warn] [pid 2004:tid 128] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 27 11:16:14.724153 2017] [mpm_winnt:notice] [pid 2004:tid 128] AH00455: Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/5.6.31 configured -- resuming normal operations
[Sun Aug 27 11:16:14.724153 2017] [mpm_winnt:notice] [pid 2004:tid 128] AH00456: Apache Lounge VC11 Server built: Jun 18 2017 13:03:53
[Sun Aug 27 11:16:14.724153 2017] [core:notice] [pid 2004:tid 128] AH00094: Command line: 'd:\\xamp\\apache\\bin\\httpd.exe -d D:/xamp/apache'
[Sun Aug 27 11:16:14.730153 2017] [mpm_winnt:notice] [pid 2004:tid 128] AH00418: Parent: Created child process 5616
[Sun Aug 27 11:16:15.669207 2017] [ssl:warn] [pid 5616:tid 140] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 27 11:16:16.011226 2017] [ssl:warn] [pid 5616:tid 140] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 27 11:16:16.075230 2017] [mpm_winnt:notice] [pid 5616:tid 140] AH00354: Child: Starting 150 worker threads.
[Sun Aug 27 11:16:22.479436 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(/var/www/html/tmp-new/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.479436 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(): Failed opening '/var/www/html/tmp-new/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='D:\\xamp\\htdocs\\tmp-new\\lib;D:\\xamp\\php\\PEAR') in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.480436 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  set_error_handler() expects the argument (ErrorHandler::handleError) to be a valid callback in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\Configure.php on line 410
[Sun Aug 27 11:16:22.481436 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(/var/www/html/tmp-new/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.481436 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(): Failed opening '/var/www/html/tmp-new/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='D:\\xamp\\htdocs\\tmp-new\\lib;D:\\xamp\\php\\PEAR') in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.482436 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  set_exception_handler() expects the argument (ErrorHandler::handleException) to be a valid callback in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\Configure.php on line 413
[Sun Aug 27 11:16:22.484437 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(/var/www/html/tmp-new/lib/Cake/Cache/Engine/MemcacheEngine.php): failed to open stream: No such file or directory in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.484437 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(): Failed opening '/var/www/html/tmp-new/lib/Cake/Cache/Engine/MemcacheEngine.php' for inclusion (include_path='D:\\xamp\\htdocs\\tmp-new\\lib;D:\\xamp\\php\\PEAR') in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.486437 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(/var/www/html/tmp-new/lib/Cake/Core/CakePlugin.php): failed to open stream: No such file or directory in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.486437 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(): Failed opening '/var/www/html/tmp-new/lib/Cake/Core/CakePlugin.php' for inclusion (include_path='D:\\xamp\\htdocs\\tmp-new\\lib;D:\\xamp\\php\\PEAR') in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.487437 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Fatal error:  Class 'CakePlugin' not found in D:\\xamp\\htdocs\\tmp-new\\app\\Config\\bootstrap.php on line 141
[Sun Aug 27 11:16:22.489437 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(/var/www/html/tmp-new/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.489437 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning:  include(): Failed opening '/var/www/html/tmp-new/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='D:\\xamp\\htdocs\\tmp-new\\lib;D:\\xamp\\php\\PEAR') in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540
[Sun Aug 27 11:16:22.489437 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Fatal error:  Class 'ErrorHandler' not found in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 913[/color]
manni12
 
Posts: 1
Joined: 27. August 2017 06:47
XAMPP version: 5.6.31
Operating System: Windows 7 Professional SP1 32-

Re: HTTP ERROR 500

Postby Nobbie » 27. August 2017 13:57

This is the first severe error:

[Sun Aug 27 11:16:22.479436 2017] [:error] [pid 5616:tid 1632] [client ::1:52696] PHP Warning: include(/var/www/html/tmp-new/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in D:\\xamp\\htdocs\\tmp-new\\lib\\Cake\\Core\\App.php on line 540


For me it looks as if you copied an existing (already installed) version from a Linux server, which now fails to load some modules (see above), as the pathname of the modules (/var/www/html/......) does not exist on your Windows PC. If am right, you copied the whole project from Linux to Windows, but obviously that does not work, as the installer previously seems to create certain pathnames depending on the server environment. You cannot simply copy an existing installation from Linux to Windows in that case.

You should install that software from scratch under Windows instead. Or, if you have sufficient skills (what i doubt), you may try to replace all these invalid pathnames by a working pathname.
Nobbie
 
Posts: 9763
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests