http://domain/phpmyadmin login page not loading - error 403 forbidden

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












http://domain/phpmyadmin login page not loading - error 403 forbidden



Setup



Default Ubuntu 18.04 server
added nginx & php using apt-get



Installed the latest version of phpmyadmin manually to avoid bug in the 18.04 release.
(https://stackoverflow.com/questions/48001569/phpmyadmin-count-parameter-must-be-an-array-or-an-object-that-implements-co/48682873#48682873)



http:/domain/index.php worked fine and from there other php pages would load, via the website menu, so I assumed php was working correctly.
A php page with phpinfo(); worked as expected.



I had just done the setup on an identical server without a problem. What had I forgotten?
As phpmyadin was outside the /var/www/html folder I thought it was a folders permissions issue.







share|improve this question


























    up vote
    0
    down vote

    favorite












    http://domain/phpmyadmin login page not loading - error 403 forbidden



    Setup



    Default Ubuntu 18.04 server
    added nginx & php using apt-get



    Installed the latest version of phpmyadmin manually to avoid bug in the 18.04 release.
    (https://stackoverflow.com/questions/48001569/phpmyadmin-count-parameter-must-be-an-array-or-an-object-that-implements-co/48682873#48682873)



    http:/domain/index.php worked fine and from there other php pages would load, via the website menu, so I assumed php was working correctly.
    A php page with phpinfo(); worked as expected.



    I had just done the setup on an identical server without a problem. What had I forgotten?
    As phpmyadin was outside the /var/www/html folder I thought it was a folders permissions issue.







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      http://domain/phpmyadmin login page not loading - error 403 forbidden



      Setup



      Default Ubuntu 18.04 server
      added nginx & php using apt-get



      Installed the latest version of phpmyadmin manually to avoid bug in the 18.04 release.
      (https://stackoverflow.com/questions/48001569/phpmyadmin-count-parameter-must-be-an-array-or-an-object-that-implements-co/48682873#48682873)



      http:/domain/index.php worked fine and from there other php pages would load, via the website menu, so I assumed php was working correctly.
      A php page with phpinfo(); worked as expected.



      I had just done the setup on an identical server without a problem. What had I forgotten?
      As phpmyadin was outside the /var/www/html folder I thought it was a folders permissions issue.







      share|improve this question














      http://domain/phpmyadmin login page not loading - error 403 forbidden



      Setup



      Default Ubuntu 18.04 server
      added nginx & php using apt-get



      Installed the latest version of phpmyadmin manually to avoid bug in the 18.04 release.
      (https://stackoverflow.com/questions/48001569/phpmyadmin-count-parameter-must-be-an-array-or-an-object-that-implements-co/48682873#48682873)



      http:/domain/index.php worked fine and from there other php pages would load, via the website menu, so I assumed php was working correctly.
      A php page with phpinfo(); worked as expected.



      I had just done the setup on an identical server without a problem. What had I forgotten?
      As phpmyadin was outside the /var/www/html folder I thought it was a folders permissions issue.









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 20 at 9:49

























      asked May 20 at 9:47









      johnc

      1014




      1014




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Analysis



          Looked in /var/log/nginx/error.log



          eg 403 error http://domain/phpmyadmin
          eg "GET /phpmyadmin/ HTTP/1.1" 403 152 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"



          http://domain/phpmyadmin/index.php worked, bringing up the login page.



          However, http://domain on its own would give a 403 error even though index.php was present.



          Fix
          /etc/nginx/sites-available/default, added index.php, restarted the website



          faulty version



           # Add index.php to the list if you are using PHP
          index index.html index.htm index.nginx-debian.html;


          corrected version



           # Add index.php to the list if you are using PHP
          index index.php index.html index.htm index.nginx-debian.html;





          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038330%2fhttp-domain-phpmyadmin-login-page-not-loading-error-403-forbidden%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Analysis



            Looked in /var/log/nginx/error.log



            eg 403 error http://domain/phpmyadmin
            eg "GET /phpmyadmin/ HTTP/1.1" 403 152 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"



            http://domain/phpmyadmin/index.php worked, bringing up the login page.



            However, http://domain on its own would give a 403 error even though index.php was present.



            Fix
            /etc/nginx/sites-available/default, added index.php, restarted the website



            faulty version



             # Add index.php to the list if you are using PHP
            index index.html index.htm index.nginx-debian.html;


            corrected version



             # Add index.php to the list if you are using PHP
            index index.php index.html index.htm index.nginx-debian.html;





            share|improve this answer
























              up vote
              0
              down vote













              Analysis



              Looked in /var/log/nginx/error.log



              eg 403 error http://domain/phpmyadmin
              eg "GET /phpmyadmin/ HTTP/1.1" 403 152 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"



              http://domain/phpmyadmin/index.php worked, bringing up the login page.



              However, http://domain on its own would give a 403 error even though index.php was present.



              Fix
              /etc/nginx/sites-available/default, added index.php, restarted the website



              faulty version



               # Add index.php to the list if you are using PHP
              index index.html index.htm index.nginx-debian.html;


              corrected version



               # Add index.php to the list if you are using PHP
              index index.php index.html index.htm index.nginx-debian.html;





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Analysis



                Looked in /var/log/nginx/error.log



                eg 403 error http://domain/phpmyadmin
                eg "GET /phpmyadmin/ HTTP/1.1" 403 152 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"



                http://domain/phpmyadmin/index.php worked, bringing up the login page.



                However, http://domain on its own would give a 403 error even though index.php was present.



                Fix
                /etc/nginx/sites-available/default, added index.php, restarted the website



                faulty version



                 # Add index.php to the list if you are using PHP
                index index.html index.htm index.nginx-debian.html;


                corrected version



                 # Add index.php to the list if you are using PHP
                index index.php index.html index.htm index.nginx-debian.html;





                share|improve this answer












                Analysis



                Looked in /var/log/nginx/error.log



                eg 403 error http://domain/phpmyadmin
                eg "GET /phpmyadmin/ HTTP/1.1" 403 152 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"



                http://domain/phpmyadmin/index.php worked, bringing up the login page.



                However, http://domain on its own would give a 403 error even though index.php was present.



                Fix
                /etc/nginx/sites-available/default, added index.php, restarted the website



                faulty version



                 # Add index.php to the list if you are using PHP
                index index.html index.htm index.nginx-debian.html;


                corrected version



                 # Add index.php to the list if you are using PHP
                index index.php index.html index.htm index.nginx-debian.html;






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 20 at 9:48









                johnc

                1014




                1014






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038330%2fhttp-domain-phpmyadmin-login-page-not-loading-error-403-forbidden%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Which professions warranted travel in Medieval times?

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error