# Problems in installation a PHP application

**URL:** <https://www.phphelp.com/t/problems-in-installation-a-php-application/30298>\
**Category:** PHP Installation and Configuration\
**Created:** [October 30, 2019, 8:52pm UTC](https://www.phphelp.com/t/problems-in-installation-a-php-application/30298 "2019-10-30T20:52:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamad](https://www.phphelp.com/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@mohamad](https://www.phphelp.com/u/mohamad)\
**Post date:** [October 30, 2019, 8:52pm UTC](https://www.phphelp.com/t/problems-in-installation-a-php-application/30298/1 "2019-10-30T20:52:23Z")

</div>

Hi everyone,  
I’m trying to install a PHP-based application manually. I managed to install MySQL, Apache 2.4.41 and PHP 7.1.32. There is no problem and Apache works as well. After configuration PHP-Based application with Apache, when I write localhost:8080 in URL, I see this sentence:  
It Works!  
but when I write 127.0.0.1:8080, I see this code:  
setRootDir($rootDir); $app-\>setRequestUri($\_SERVER[‘REQUEST\_URI’]); $stat = $app-\>route(); switch ($stat) { case WebApplication::RUNNING\_WORKFLOW: include “sysGeneric.php”; break; case WebApplication::RUNNING\_API: $app-\>run(WebApplication::SERVICE\_API); break; case WebApplication::RUNNING\_OAUTH2: $app-\>run(WebApplication::SERVICE\_OAUTH2); break; case WebApplication::RUNNING\_INDEX: $response = new Response(file\_get\_contents(“index.html”), 302); $response-\>send(); break; case WebApplication::RUNNING\_DEFAULT: $response = new Response("", 302); //TODO compose this def url with configuration data from env.ini $response-\>setHeader(“location”, “/sys/en/neoclassic/login/login”); $response-\>send(); break; } } catch (RBACException $e) { G::header('location: ’ . $e-\>getPath()); } catch (Exception $e) { $view = new PhtmlView($rootDir . “framework/src/templates/Exception.phtml”); $view-\>set(“message”, $e-\>getMessage()); $view-\>set(“exception”, $e); $response = new Response($view-\>getOutput(), 503); $response-\>send(); }

I would appreciate, if you could help me with this.  
Kind Regards
