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

Clash 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.
18.04 nginx phpmyadmin
add a comment |Â
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.
18.04 nginx phpmyadmin
add a comment |Â
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.
18.04 nginx phpmyadmin
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.
18.04 nginx phpmyadmin
edited May 20 at 9:49
asked May 20 at 9:47
johnc
1014
1014
add a comment |Â
add a comment |Â
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;
add a comment |Â
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;
add a comment |Â
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;
add a comment |Â
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;
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;
answered May 20 at 9:48
johnc
1014
1014
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password