luceos So here was the problem which was happening. When I created the user in phpmyadmin, for hostname I set it to "Anyhost" but, as soon as I changed it to "Local", the process started smoothly.
Now php flaum install
process is complete and it's said DONE. Now if I visit the set url then these things show.
Warning: file_put_contents(C:\xampp\htdocs\Gurjyot\flarum/../storage/formatter/Renderer_6c37ee54953b47cf6f5f1ad093a86b70547cce3d.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Gurjyot\flarum\vendor\s9e\text-formatter\src\Configurator.php on line 5214
Warning: include(C:\xampp\htdocs\Gurjyot\flarum/../storage/formatter/Renderer_6c37ee54953b47cf6f5f1ad093a86b70547cce3d.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Gurjyot\flarum\vendor\s9e\text-formatter\src\Configurator.php on line 5217
Warning: include(): Failed opening 'C:\xampp\htdocs\Gurjyot\flarum/../storage/formatter/Renderer_6c37ee54953b47cf6f5f1ad093a86b70547cce3d.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\Gurjyot\flarum\vendor\s9e\text-formatter\src\Configurator.php on line 5217
Warning: file_put_contents(C:\xampp\htdocs\Gurjyot\flarum/../storage/views/3d7d9348be1f6f94cdd18dc5efb62938ac7a0522.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Gurjyot\flarum\vendor\illuminate\filesystem\Filesystem.php on line 122
Fatal error: Uncaught Zend\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in C:\xampp\htdocs\Gurjyot\flarum\vendor\zendframework\zend-httphandlerrunner\src\Exception\EmitterException.php:23 Stack trace: #0 C:\xampp\htdocs\Gurjyot\flarum\vendor\zendframework\zend-httphandlerrunner\src\Emitter\SapiEmitterTrait.php(33): Zend\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 C:\xampp\htdocs\Gurjyot\flarum\vendor\zendframework\zend-httphandlerrunner\src\Emitter\SapiEmitter.php(26): Zend\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 C:\xampp\htdocs\Gurjyot\flarum\vendor\zendframework\zend-httphandlerrunner\src\RequestHandlerRunner.php(97): Zend\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Zend\Diactoros\Response\HtmlResponse)) #3 C:\xampp\htdocs\Gurjyot\flarum\vendor\flarum\core\src\Http\Server.php(46): Zend\HttpHandlerRunner\RequestHandlerRunner->run() #4 C:\xampp\htdocs\Gurjyot\flarum\index.php(22): Flarum\Http\Server->listen() # in C:\xampp\htdocs\Gurjyot\flarum\vendor\zendframework\zend-httphandlerrunner\src\Exception\EmitterException.php on line 23