Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5940699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:00:18+00:00 2026-05-22T16:00:18+00:00

I’m trying to set up a web application for the first time on Amazon

  • 0

I’m trying to set up a web application for the first time on Amazon ec2 and everything is working except for remote access of PHPMyAdmin from the webserver instance. I’ve set up two ‘Basic 64-bit Amazon Linux AMI 2011.02.1 Beta’ instances of which one is acting as the webserver and the other as the MySQL server. Apache is installed on the webserver together with php and mysql, and the MySQL only has mysql server installed.

I have set these two servers up by following these instructions :here and setup PHPmyAdmin following these: here. I have installed PHPmyAdmin on the webserver. Now the problem is that whatever I try I get a ‘1045 Cannot log in to the MySQL server’ warning while trying to log in. However I do get access when executing normal php-scripts fom the webserver or when I login through mysql while being logged in into the webserver.

I’ve granted the root user all privileges on the public IP, on the public DNS, on the ip written as ‘ip-111-222-333-444’, on ‘%.internal’, the internal ip and even on ‘%’, but it still doesn’t work(see mysql.user tabel below). Also included below is the config file from PHPMyAdmin.

I hope to hear what I’m doing wrong and how I can fix it. Am I using the wrong ip’s for the GRANTS or for the mysql server, or is there something else? If more information is needed please let me know.

| host | user | password
—–+——+——————————————-+
localhost | root | PASSWORD |
ip-own-server-ip | root |
127.0.0.1 | root |
localhost | |
ip-‘own-server-ip’ | |
ip-‘public-dns-webserver’.compute.internal | root | PASSWORD |
% | root | PASSWORD|
‘PUBLIC IP’ | root | PASSWORD |
ip-‘PUBLIC IP’ | root | PASSWORD
%.internal | root | PASSWORD
ip-‘public-dns-MySQLserver’.compute.amazonaws.com | root |PASSWORD
| ip-‘LOCAL IP-ADDRESS’ | root | PASSWORD|

PHPMyAdmin config.ing.php file

<?php
 /*
 * Generated configuration file
 * Generated by: phpMyAdmin 3.4.0 setup script
 * Date: Sun, 22 May 2011 11:01:18 +0000
 */

 /* Servers configuration */
 $i = 0;

 /* Server: HipHop [1] */
 $i++;
 $cfg['Servers'][$i]['verbose'] = 'HipHop';
 $cfg['Servers'][$i]['host'] = 'ec2ip-xxx-xxx-xxx-xxx.compute.amazonaws.com';
 $cfg['Servers'][$i]['port'] = '';
 $cfg['Servers'][$i]['socket'] = '';
 $cfg['Servers'][$i]['connect_type'] = 'tcp';
 $cfg['Servers'][$i]['extension'] = 'mysqli';
 $cfg['Servers'][$i]['auth_type'] = 'cookie';
 $cfg['Servers'][$i]['user'] = 'root';
 $cfg['Servers'][$i]['password'] = '';

/* End of servers configuration */    

 $cfg['DefaultLang'] = 'en';
 $cfg['ServerDefault'] = 1;
 $cfg['blowfish_secret'] = '4dd8eb378ebd13.46094950';
 $cfg['UploadDir'] = '';
 $cfg['SaveDir'] = '';
 ?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:00:19+00:00Added an answer on May 22, 2026 at 4:00 pm

    I am assuming http://localhost/phpmyadmin/ works. My suggestion is to redownloaded the latest version to get a copy of the sample inc file (config file) and used that as the base for inc file. Now enter your configuration settings in the new file. Seems to be something problem with the config file itself.

    Good Luck 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i want to parse a xhtml file and display in UITableView. what is the
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.