Always getting blank page on all Laravel routes












0















I am always getting blank page while accessing my Laravel project given below. Please advise how this problem can be resolved. Thanks!



http://1.231.118.4:9000/



http://1.231.118.4:9000/admin/login



Apache 2.4
PHP 7.2
MySQL 5.7



phpinfo: http://1.231.118.4:9000/info.php



vhost:



<VirtualHost *:9000>
ServerName 1.231.118.4
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/ico/public
<Directory /var/www/html/ico/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/html/ico/error.log
</VirtualHost>


.htaccess:



<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>









share|improve this question


















  • 1





    Nothing in your storage/logs/laravel.log?

    – kerbholz
    Jan 2 at 9:32











  • It is empty. No error log anywhere.

    – Ahmed Numaan
    Jan 2 at 9:33











  • Obviously, some things work like for example your 404 page is not a typical boilerplate webserver 404 page and PHP is running based on your server configuration, so I'm guessing that is your own code, therefore, I don't think this is a server configuration issue but rather a code issue.

    – apokryfos
    Jan 2 at 9:37













  • I am deploying the same code on different version. The same version of code is running on other server. Is there any way to figure out the problem?

    – Ahmed Numaan
    Jan 2 at 9:40











  • Can you upload your project folder structure screenshot ?

    – Md.Sukel Ali
    Jan 2 at 9:51
















0















I am always getting blank page while accessing my Laravel project given below. Please advise how this problem can be resolved. Thanks!



http://1.231.118.4:9000/



http://1.231.118.4:9000/admin/login



Apache 2.4
PHP 7.2
MySQL 5.7



phpinfo: http://1.231.118.4:9000/info.php



vhost:



<VirtualHost *:9000>
ServerName 1.231.118.4
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/ico/public
<Directory /var/www/html/ico/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/html/ico/error.log
</VirtualHost>


.htaccess:



<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>









share|improve this question


















  • 1





    Nothing in your storage/logs/laravel.log?

    – kerbholz
    Jan 2 at 9:32











  • It is empty. No error log anywhere.

    – Ahmed Numaan
    Jan 2 at 9:33











  • Obviously, some things work like for example your 404 page is not a typical boilerplate webserver 404 page and PHP is running based on your server configuration, so I'm guessing that is your own code, therefore, I don't think this is a server configuration issue but rather a code issue.

    – apokryfos
    Jan 2 at 9:37













  • I am deploying the same code on different version. The same version of code is running on other server. Is there any way to figure out the problem?

    – Ahmed Numaan
    Jan 2 at 9:40











  • Can you upload your project folder structure screenshot ?

    – Md.Sukel Ali
    Jan 2 at 9:51














0












0








0








I am always getting blank page while accessing my Laravel project given below. Please advise how this problem can be resolved. Thanks!



http://1.231.118.4:9000/



http://1.231.118.4:9000/admin/login



Apache 2.4
PHP 7.2
MySQL 5.7



phpinfo: http://1.231.118.4:9000/info.php



vhost:



<VirtualHost *:9000>
ServerName 1.231.118.4
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/ico/public
<Directory /var/www/html/ico/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/html/ico/error.log
</VirtualHost>


.htaccess:



<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>









share|improve this question














I am always getting blank page while accessing my Laravel project given below. Please advise how this problem can be resolved. Thanks!



http://1.231.118.4:9000/



http://1.231.118.4:9000/admin/login



Apache 2.4
PHP 7.2
MySQL 5.7



phpinfo: http://1.231.118.4:9000/info.php



vhost:



<VirtualHost *:9000>
ServerName 1.231.118.4
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/ico/public
<Directory /var/www/html/ico/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/html/ico/error.log
</VirtualHost>


.htaccess:



<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>






php laravel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 9:30









Ahmed NumaanAhmed Numaan

5601522




5601522








  • 1





    Nothing in your storage/logs/laravel.log?

    – kerbholz
    Jan 2 at 9:32











  • It is empty. No error log anywhere.

    – Ahmed Numaan
    Jan 2 at 9:33











  • Obviously, some things work like for example your 404 page is not a typical boilerplate webserver 404 page and PHP is running based on your server configuration, so I'm guessing that is your own code, therefore, I don't think this is a server configuration issue but rather a code issue.

    – apokryfos
    Jan 2 at 9:37













  • I am deploying the same code on different version. The same version of code is running on other server. Is there any way to figure out the problem?

    – Ahmed Numaan
    Jan 2 at 9:40











  • Can you upload your project folder structure screenshot ?

    – Md.Sukel Ali
    Jan 2 at 9:51














  • 1





    Nothing in your storage/logs/laravel.log?

    – kerbholz
    Jan 2 at 9:32











  • It is empty. No error log anywhere.

    – Ahmed Numaan
    Jan 2 at 9:33











  • Obviously, some things work like for example your 404 page is not a typical boilerplate webserver 404 page and PHP is running based on your server configuration, so I'm guessing that is your own code, therefore, I don't think this is a server configuration issue but rather a code issue.

    – apokryfos
    Jan 2 at 9:37













  • I am deploying the same code on different version. The same version of code is running on other server. Is there any way to figure out the problem?

    – Ahmed Numaan
    Jan 2 at 9:40











  • Can you upload your project folder structure screenshot ?

    – Md.Sukel Ali
    Jan 2 at 9:51








1




1





Nothing in your storage/logs/laravel.log?

– kerbholz
Jan 2 at 9:32





Nothing in your storage/logs/laravel.log?

– kerbholz
Jan 2 at 9:32













It is empty. No error log anywhere.

– Ahmed Numaan
Jan 2 at 9:33





It is empty. No error log anywhere.

– Ahmed Numaan
Jan 2 at 9:33













Obviously, some things work like for example your 404 page is not a typical boilerplate webserver 404 page and PHP is running based on your server configuration, so I'm guessing that is your own code, therefore, I don't think this is a server configuration issue but rather a code issue.

– apokryfos
Jan 2 at 9:37







Obviously, some things work like for example your 404 page is not a typical boilerplate webserver 404 page and PHP is running based on your server configuration, so I'm guessing that is your own code, therefore, I don't think this is a server configuration issue but rather a code issue.

– apokryfos
Jan 2 at 9:37















I am deploying the same code on different version. The same version of code is running on other server. Is there any way to figure out the problem?

– Ahmed Numaan
Jan 2 at 9:40





I am deploying the same code on different version. The same version of code is running on other server. Is there any way to figure out the problem?

– Ahmed Numaan
Jan 2 at 9:40













Can you upload your project folder structure screenshot ?

– Md.Sukel Ali
Jan 2 at 9:51





Can you upload your project folder structure screenshot ?

– Md.Sukel Ali
Jan 2 at 9:51












2 Answers
2






active

oldest

votes


















0














i had the same issue and it turned out that all codes in my index.php file in public directory was commented ! you can give it a try






share|improve this answer































    0














    In my appProvidersRouteServiceProvider.php file, the routes were serviced on 443 port that's why I was getting 404 on all routes. Thanks everybody anyways.



        public function map()
    {
    switch(request()->getPort()){

    case 9001:
    //exit;
    break;
    case 443:
    $this->mapAdminWebRoutes();
    $this->mapApiRoutes();
    $this->mapWebRoutes();
    break;
    // choose a port that is not used by another server
    default:
    $this->mapAdminWebRoutes();
    $this->mapApiRoutes();
    $this->mapWebRoutes();
    break;
    }
    }





    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003945%2falways-getting-blank-page-on-all-laravel-routes%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      i had the same issue and it turned out that all codes in my index.php file in public directory was commented ! you can give it a try






      share|improve this answer




























        0














        i had the same issue and it turned out that all codes in my index.php file in public directory was commented ! you can give it a try






        share|improve this answer


























          0












          0








          0







          i had the same issue and it turned out that all codes in my index.php file in public directory was commented ! you can give it a try






          share|improve this answer













          i had the same issue and it turned out that all codes in my index.php file in public directory was commented ! you can give it a try







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 2 at 16:02









          Kamal BehboudiKamal Behboudi

          1




          1

























              0














              In my appProvidersRouteServiceProvider.php file, the routes were serviced on 443 port that's why I was getting 404 on all routes. Thanks everybody anyways.



                  public function map()
              {
              switch(request()->getPort()){

              case 9001:
              //exit;
              break;
              case 443:
              $this->mapAdminWebRoutes();
              $this->mapApiRoutes();
              $this->mapWebRoutes();
              break;
              // choose a port that is not used by another server
              default:
              $this->mapAdminWebRoutes();
              $this->mapApiRoutes();
              $this->mapWebRoutes();
              break;
              }
              }





              share|improve this answer




























                0














                In my appProvidersRouteServiceProvider.php file, the routes were serviced on 443 port that's why I was getting 404 on all routes. Thanks everybody anyways.



                    public function map()
                {
                switch(request()->getPort()){

                case 9001:
                //exit;
                break;
                case 443:
                $this->mapAdminWebRoutes();
                $this->mapApiRoutes();
                $this->mapWebRoutes();
                break;
                // choose a port that is not used by another server
                default:
                $this->mapAdminWebRoutes();
                $this->mapApiRoutes();
                $this->mapWebRoutes();
                break;
                }
                }





                share|improve this answer


























                  0












                  0








                  0







                  In my appProvidersRouteServiceProvider.php file, the routes were serviced on 443 port that's why I was getting 404 on all routes. Thanks everybody anyways.



                      public function map()
                  {
                  switch(request()->getPort()){

                  case 9001:
                  //exit;
                  break;
                  case 443:
                  $this->mapAdminWebRoutes();
                  $this->mapApiRoutes();
                  $this->mapWebRoutes();
                  break;
                  // choose a port that is not used by another server
                  default:
                  $this->mapAdminWebRoutes();
                  $this->mapApiRoutes();
                  $this->mapWebRoutes();
                  break;
                  }
                  }





                  share|improve this answer













                  In my appProvidersRouteServiceProvider.php file, the routes were serviced on 443 port that's why I was getting 404 on all routes. Thanks everybody anyways.



                      public function map()
                  {
                  switch(request()->getPort()){

                  case 9001:
                  //exit;
                  break;
                  case 443:
                  $this->mapAdminWebRoutes();
                  $this->mapApiRoutes();
                  $this->mapWebRoutes();
                  break;
                  // choose a port that is not used by another server
                  default:
                  $this->mapAdminWebRoutes();
                  $this->mapApiRoutes();
                  $this->mapWebRoutes();
                  break;
                  }
                  }






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 3 at 4:28









                  Ahmed NumaanAhmed Numaan

                  5601522




                  5601522






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003945%2falways-getting-blank-page-on-all-laravel-routes%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      MongoDB - Not Authorized To Execute Command

                      in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

                      How to fix TextFormField cause rebuild widget in Flutter