Laragon 400 Bad Request Laravel 5.1 - php

just now i install laragon and getting 400 bad request, i have no idea how to fix.
Laragon full 2.2.2 php-7.1.1
Access log --
127.0.0.1 - - [03/Apr/2017:15:42:44 +0300] "GET / HTTP/1.1" 400 347
127.0.0.1 - - [03/Apr/2017:15:42:44 +0300] "GET /favicon.ico HTTP/1.1" 400 347
Error log --
Apache server interrupted...
[Mon Apr 03 15:42:38.008826 2017] [mpm_winnt:notice] [pid 11704:tid 580] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Apr 03 15:42:42.686208 2017] [core:warn] [pid 16048:tid 548] AH00098: pid
file C:/laragon/bin/apache/httpd-2.4.25-win32-VC14/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Apr 03 15:42:42.827314 2017] [mpm_winnt:notice] [pid 16048:tid 548] AH00455: Apache/2.4.25 (Win32) OpenSSL/1.0.2k PHP/7.1.1 configured -- resuming normal operations
[Mon Apr 03 15:42:42.827314 2017] [mpm_winnt:notice] [pid 16048:tid 548] AH00456: Apache Lounge VC14 Server built: Dec 17 2016 10:42:52
[Mon Apr 03 15:42:42.827314 2017] [core:notice] [pid 16048:tid 548] AH00094: Command line: 'C:\\laragon\\bin\\apache\\httpd-2.4.25-win32-VC14\\bin\\httpd -d C:/laragon/bin/apache/httpd-2.4.25-win32-VC14'
[Mon Apr 03 15:42:42.829314 2017] [mpm_winnt:notice] [pid 16048:tid 548] AH00418: Parent: Created child process 14292
[Mon Apr 03 15:42:44.474536 2017] [mpm_winnt:notice] [pid 14292:tid 612] AH00354: Child: Starting 64 worker threads.

Make sure your ServerName contains only alphanumerical characters.
Eg: http://dummy_domain.local produces 400 Bad Request (with Apache 2.4) while http://dummy-domain.local works as expected.

Related

PHP 7, huge array not loading

Alright, I use WAMP and I have this massive array. When using PHP 5.6.40, it loads no problem. When using PHP 7.4.0, the page does not load and I get this error: ERR_CONNECTION_RESET. Then I reduce my array to a few lines and it loads then. What's the problem? I am very much sure there is no incorrect syntax in my code. Any ideas? Please share
Apache error log:
[Sat Jul 11 10:07:00.171208 2020] [mpm_winnt:notice] [pid 10472:tid
416] AH00428: Parent: child process 12132 exited with status
3221225725 -- Restarting.
[Sat Jul 11 10:07:00.296215 2020] [mpm_winnt:notice] [pid 10472:tid
416] AH00455: Apache/2.4.41 (Win64) PHP/7.4.0 configured -- resuming
normal operations
[Sat Jul 11 10:07:00.296215 2020] [mpm_winnt:notice] [pid 10472:tid
416] AH00456: Apache Lounge VS16 Server built: Aug 9 2019 16:46:32
[Sat Jul 11 10:07:00.296215 2020] [core:notice] [pid 10472:tid 416]
AH00094: Command line:
'c:\wamp64\bin\apache\apache2.4.41\bin\httpd.exe -d
C:/wamp64/bin/apache/apache2.4.41'
[Sat Jul 11 10:07:00.298216 2020] [mpm_winnt:notice] [pid 10472:tid
416] AH00418: Parent: Created child process 9976
[Sat Jul 11 10:07:01.231269 2020] [mpm_winnt:notice] [pid 9976:tid
332] AH00354: Child: Starting 64 worker threads.
[Sat Jul 11 10:07:01.831303 2020] [mpm_winnt:notice] [pid 10472:tid
416] AH00428: Parent: child process 9976 exited with status 3221225725
-- Restarting.
[Sat Jul 11 10:07:01.971311 2020] [mpm_winnt:notice] [pid 10472:tid
416] AH00455: Apache/2.4.41 (Win64) PHP/7.4.0 configured -- resuming
normal operations
[Sat Jul 11 10:07:01.972311 2020] [mpm_winnt:notice] [pid 10472:tid
416] AH00456: Apache Lounge VS16 Server built: Aug 9 2019 16:46:32
[Sat Jul 11 10:07:01.972311 2020] [core:notice] [pid 10472:tid 416]
AH00094: Command line:
'c:\wamp64\bin\apache\apache2.4.41\bin\httpd.exe -d
C:/wamp64/bin/apache/apache2.4.41'
[Sat Jul 11 10:07:01.974311 2020] [mpm_winnt:notice] [pid 10472:tid
416] AH00418: Parent: Created child process 10388
[Sat Jul 11 10:07:02.813359 2020] [mpm_winnt:notice] [pid 10388:tid
332] AH00354: Child: Starting 64 worker threads.
If you are confident that you have allocated enough memory, you can also try increasing the stack size in the Apache config. For example like so:
<IfModule mpm_winnt_module>
ThreadStackSize 6553600
</IfModule>

Apache Stop Working - AH00428 -- Restarting

I need help.
I can not solve this problem.
My configs:
Intel Core I5 - 3,2 GHz
8 GB RAM
Windows 7 Enterprise x64 SP1
Versions:
httpd-2.4.23-win32-VC11
php-5.6.24-Win32-VC11-x86
instantclient-basic-win32-11.2.0.1.0
php_oci8-2.0.8-5.6-ts-vc11-x86.zip
What happens is that, I start the service without any error.
But when I open a page that contains PHP, the Apache resets (AH00428: Parent: child process 4608 exited with status 3958377386 -- Restarting.).
Windows returns me the error message: "Apache HTTPD Server stopped working."
Follow the apache error.log:
[Tue Aug 16 09:35:22.320400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00455: Apache/2.4.23 (Win32) configured -- resuming normal operations
[Tue Aug 16 09:35:22.320400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00456: Apache Lounge VC11 Server built: Jul 7 2016 11:13:22
[Tue Aug 16 09:35:22.320400 2016] [core:notice] [pid 4864:tid 616] AH00094: Command line: 'httpd.exe -d C:/Apache24'
[Tue Aug 16 09:35:22.336400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00418: Parent: Created child process 4608
[Tue Aug 16 09:35:22.914400 2016] [mpm_winnt:notice] [pid 4608:tid 632] AH00354: Child: Starting 64 worker threads.
[Tue Aug 16 09:35:50.895400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00428: Parent: child process 4608 exited with status 3958377386 -- Restarting.
[Tue Aug 16 09:35:51.035400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00455: Apache/2.4.23 (Win32) configured -- resuming normal operations
[Tue Aug 16 09:35:51.035400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00456: Apache Lounge VC11 Server built: Jul 7 2016 11:13:22
[Tue Aug 16 09:35:51.035400 2016] [core:notice] [pid 4864:tid 616] AH00094: Command line: 'httpd.exe -d C:/Apache24'
[Tue Aug 16 09:35:51.051400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00418: Parent: Created child process 5172
[Tue Aug 16 09:35:51.661400 2016] [mpm_winnt:notice] [pid 5172:tid 632] AH00354: Child: Starting 64 worker threads.
[Tue Aug 16 09:35:52.388400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00428: Parent: child process 5172 exited with status 3958377386 -- Restarting.
[Tue Aug 16 09:35:52.491400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00455: Apache/2.4.23 (Win32) configured -- resuming normal operations
[Tue Aug 16 09:35:52.491400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00456: Apache Lounge VC11 Server built: Jul 7 2016 11:13:22
[Tue Aug 16 09:35:52.491400 2016] [core:notice] [pid 4864:tid 616] AH00094: Command line: 'httpd.exe -d C:/Apache24'
[Tue Aug 16 09:35:52.506400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00418: Parent: Created child process 1120
[Tue Aug 16 09:35:53.062400 2016] [mpm_winnt:notice] [pid 1120:tid 628] AH00354: Child: Starting 64 worker threads.
Apache server interrupted...
[Tue Aug 16 09:36:22.150400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Aug 16 09:36:24.151400 2016] [mpm_winnt:notice] [pid 1120:tid 628] AH00364: Child: All worker threads have exited.
[Tue Aug 16 09:36:24.214400 2016] [mpm_winnt:notice] [pid 4864:tid 616] AH00430: Parent: Child process 1120 exited successfully.
access.log is empty.
I can not fix this.
Any tips?
Thanks.
Edit
I looked at windows event log and found this:
Application Error
EventRecordID 72126
Channel Application
EventData:
httpd.exe
2.4.23.0
577e1b96
KERNELBASE.dll
6.1.7601.18229
51fb1116
ebf00baa
0000c41f
e2c
01d1f7de4709ca89
C:\Apache24\bin\httpd.exe
C:\WINDOWS\syswow64\KERNELBASE.dll
9238afff-63d1-11e6-bca1-641c67645206
I managed to solve the problem.
I disable all PHP extensions and looked at the windows event log.
Was giving error as follows:
Application name: httpd.exe, version: 2.4.23.0
Module: php5apache2_4.dll, versão: 0.0.0.0
Exception Code: 0xc0000005
Application path failed: C:\Apache24\bin\httpd.exe
Fault module path: C:\PHP\php5apache2_4.dll
Report Identification: cae5d4a7-6486-11e6-bca1-641c67645206
I deleted the PHP folder, wiped the register, downloaded again, and enabled the extensions needed.
And now is functioning normally.

Wamp x64 won't work with php 5.6.16

I have installed WAMP 3, the x64 bits version that comes with both PHP 7 and PHP 5.6.16.
Thing is, it only works with version 7, but not with version 5.6.16.
If I'm on version 7 I can open localhost just fine, if I switch to version 5.6, it says "This site can’t be reached".
Apache error log:
[Fri Jul 08 18:59:42.721292 2016] [mpm_winnt:notice] [pid 8776:tid 652] AH00428: Parent: child process 8788 exited with status 255 -- Restarting.
[Fri Jul 08 18:59:42.859839 2016] [auth_digest:notice] [pid 8776:tid 652] AH01757: generating secret for digest authentication ...
[Fri Jul 08 18:59:42.936418 2016] [mpm_winnt:notice] [pid 8776:tid 652] AH00455: Apache/2.4.17 (Win64) PHP/5.6.16 configured -- resuming normal operations
[Fri Jul 08 18:59:42.936418 2016] [mpm_winnt:notice] [pid 8776:tid 652] AH00456: Apache Lounge VC14 Server built: Oct 11 2015 11:49:07
[Fri Jul 08 18:59:42.936418 2016] [core:notice] [pid 8776:tid 652] AH00094: Command line: 'C:\\wamp64\\bin\\apache\\apache2.4.17\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.17'
[Fri Jul 08 18:59:43.007482 2016] [mpm_winnt:notice] [pid 8776:tid 652] AH00418: Parent: Created child process 5336
[Fri Jul 08 18:59:43.647394 2016] [auth_digest:notice] [pid 5336:tid 420] AH01757: generating secret for digest authentication ...
[Fri Jul 08 18:59:43.728167 2016] [mpm_winnt:notice] [pid 5336:tid 420] AH00354: Child: Starting 64 worker threads.
[Fri Jul 08 18:59:45.162617 2016] [mpm_winnt:notice] [pid 8776:tid 652] AH00428: Parent: child process 5336 exited with status 255 -- Restarting.
[Fri Jul 08 18:59:45.368338 2016] [auth_digest:notice] [pid 8776:tid 652] AH01757: generating secret for digest authentication ...
[Fri Jul 08 18:59:45.436406 2016] [mpm_winnt:notice] [pid 8776:tid 652] AH00455: Apache/2.4.17 (Win64) PHP/5.6.16 configured -- resuming normal operations
[Fri Jul 08 18:59:45.436406 2016] [mpm_winnt:notice] [pid 8776:tid 652] AH00456: Apache Lounge VC14 Server built: Oct 11 2015 11:49:07
[Fri Jul 08 18:59:45.436406 2016] [core:notice] [pid 8776:tid 652] AH00094: Command line: 'C:\\wamp64\\bin\\apache\\apache2.4.17\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.17'
[Fri Jul 08 18:59:45.534501 2016] [mpm_winnt:notice] [pid 8776:tid 652] AH00418: Parent: Created child process 7404
[Fri Jul 08 18:59:46.217823 2016] [auth_digest:notice] [pid 7404:tid 156] AH01757: generating secret for digest authentication ...
[Fri Jul 08 18:59:46.276887 2016] [mpm_winnt:notice] [pid 7404:tid 156] AH00354: Child: Starting 64 worker threads.
What could be the reason?
First:
Check the apache logs, or run httpd.exe manually and see error response.

net::ERR_CONNECTION_RESET error when requesting HTML content from php

Issue
When sending a request to a PHP script I am receiving net::ERR_CONNECTION_RESET if the content is a moderate size. This script works fine on all of my smaller files, but blows up with that error on my larger files.
PHP Script
<?php
include('Parsedown.php');
function update($url){
set_time_limit(0);
$prefix="/doc/";
$Parsedown = new Parsedown();
$body = file_get_contents(str_replace($prefix, "", $url, $count));
$content = $Parsedown->text($body);
echo $content;
}
if (isset($_REQUEST['action'])) {
switch ($_REQUEST['action']) {
case 'update':
$path = $_REQUEST['path'];
update($path);
break;
}
}
?>
I am using WAMP on my local machine and I have no errors inside of my PHP error log.
Apache Logs
D:/DevelopmentPrograms/wamp/bin/apache/apache2.4.9'
[Mon Jul 27 22:04:44.492523 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00418: Parent: Created child process 1100
[Mon Jul 27 22:04:45.098933 2015] [mpm_winnt:notice] [pid 1100:tid 312] AH00354: Child: Starting 64 worker threads.
[Mon Jul 27 22:04:49.007005 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00428: Parent: child process 1100 exited with status 255 -- Restarting.
[Mon Jul 27 22:04:49.162014 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Mon Jul 27 22:04:49.162014 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Mon Jul 27 22:04:49.162014 2015] [core:notice] [pid 8060:tid 388] AH00094: Command line: 'D:\\DevelopmentPrograms\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d D:/DevelopmentPrograms/wamp/bin/apache/apache2.4.9'
[Mon Jul 27 22:04:49.164014 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00418: Parent: Created child process 7256
[Mon Jul 27 22:04:49.755828 2015] [mpm_winnt:notice] [pid 7256:tid 312] AH00354: Child: Starting 64 worker threads.
[Mon Jul 27 22:04:50.937481 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00428: Parent: child process 7256 exited with status 255 -- Restarting.
[Mon Jul 27 22:04:51.107491 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Mon Jul 27 22:04:51.108491 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Mon Jul 27 22:04:51.108491 2015] [core:notice] [pid 8060:tid 388] AH00094: Command line: 'D:\\DevelopmentPrograms\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d D:/DevelopmentPrograms/wamp/bin/apache/apache2.4.9'
[Mon Jul 27 22:04:51.110491 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00418: Parent: Created child process 6848
[Mon Jul 27 22:04:51.705702 2015] [mpm_winnt:notice] [pid 6848:tid 312] AH00354: Child: Starting 64 worker threads.
[Mon Jul 27 22:06:44.944044 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00428: Parent: child process 6848 exited with status 255 -- Restarting.
[Mon Jul 27 22:06:45.187653 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Mon Jul 27 22:06:45.187653 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Mon Jul 27 22:06:45.187653 2015] [core:notice] [pid 8060:tid 388] AH00094: Command line: 'D:\\DevelopmentPrograms\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d D:/DevelopmentPrograms/wamp/bin/apache/apache2.4.9'
[Mon Jul 27 22:06:45.187653 2015] [mpm_winnt:notice] [pid 8060:tid 388] AH00418: Parent: Created child process 8908
[Mon Jul 27 22:06:45.841664 2015] [mpm_winnt:notice] [pid 8908:tid 312] AH00354: Child: Starting 64 worker threads.
Any help is very much appreciated.
EDIT: I went into Windows Event Viewer and this is what I found.
Faulting application name: httpd.exe, version: 2.4.9.0, time stamp: 0x53258cd5
Faulting module name: php5ts.dll, version: 5.5.12.0, time stamp: 0x53614545
Exception code: 0xc00000fd
Fault offset: 0x0000000000139344
Faulting process id: 0x1720
Faulting application start time: 0x01d0c8e57ed9d544
Faulting application path: D:\DevelopmentPrograms\wamp\bin\apache\apache2.4.9\bin\httpd.exe
Faulting module path: D:\DevelopmentPrograms\wamp\bin\apache\apache2.4.9\bin\php5ts.dll
Report Id: bceb2687-34d8-11e5-bae9-00248c605386
I resolved this issue by running the 32-bit version of WAMP instead of 64-bit.

Apache works but the page does not load

I have installed on my PC: Apache 2.4.9, PHP 5.4.0, MySQL 5.5.
So I did not get any mistakes from Apache or PHP but, when I'm trying to load my local projects something wrong. Sometimes projects run, but sometimes Web page is not available.
Sometimes localhost working other not working. I don't know how to solve this problem, I didn't get mistake on my logs/error.
So anybody know what is this? I can put here any information if need.
This what logs show me.
[Wed Apr 30 11:12:02.765532 2014] [mpm_winnt:notice] [pid 3748:tid 584] AH00428: Parent: child process 5960 exited with status 255 -- Restarting.
[Wed Apr 30 11:12:02.877538 2014] [mpm_winnt:notice] [pid 3748:tid 584] AH00455: Apache/2.4.9 (Win64) PHP/5.4.0 configured -- resuming normal operations
[Wed Apr 30 11:12:02.877538 2014] [mpm_winnt:notice] [pid 3748:tid 584] AH00456: Apache Lounge VC10 Server built: Mar 17 2014 12:11:31
[Wed Apr 30 11:12:02.877538 2014] [core:notice] [pid 3748:tid 584] AH00094: Command line: 'C:\server\Apache24\bin\httpd.exe -d C:/server/Apache24'
[Wed Apr 30 11:12:02.879538 2014] [mpm_winnt:notice] [pid 3748:tid 584] AH00418: Parent: Created child process 5964
[Wed Apr 30 11:12:03.332564 2014] [mpm_winnt:notice] [pid 5964:tid 524] AH00354: Child: Starting 64 worker threads.
[Wed Apr 30 11:12:03.556577 2014] [mpm_winnt:notice] [pid 3748:tid 584] AH00428: Parent: child process 5964 exited with status 255 -- Restarting.
[Wed Apr 30 11:12:03.695585 2014] [mpm_winnt:notice] [pid 3748:tid 584] AH00455: Apache/2.4.9 (Win64) PHP/5.4.0 configured -- resuming normal operations
[Wed Apr 30 11:12:03.695585 2014] [mpm_winnt:notice] [pid 3748:tid 584] AH00456: Apache Lounge VC10 Server built: Mar 17 2014 12:11:31
[Wed Apr 30 11:12:03.695585 2014] [core:notice] [pid 3748:tid 584] AH00094: Command line: 'C:\server\Apache24\bin\httpd.exe -d C:/server/Apache24'
[Wed Apr 30 11:12:03.696585 2014] [mpm_winnt:notice] [pid 3748:tid 584] AH00418: Parent: Created child process 1808 [Wed Apr 30**strong text**

Categories