Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

localhost with phpMyAdmin not working on Windows 7

Posted on 2016-11-25
3
Medium Priority
?
451 Views
Last Modified: 2016-12-30
I have installed Apache 2.4 on Windows 7 64 to be started in the command line by httpd.exe. When tested in the browser with http://localhost it worked. I installed PHP 7.0.13, ran a script and it worked. Then I enabled MySQL entensions, MySQL 5.7.16 winx64 followed by phpMyAdmin 4.6.4. Here is the folder structure:

C:
\Apache24\phpmyadmin\index.php
\MySQL

With httpd.exe still running in the command line, I entered http://localhost/phpmyadmin/index.php in the browser expecting the phpmyadmin username/password page. However, it returned
"The requested URL /phpmyadmin/index.php was not found on this server".

I thought that Apache24 was the root (localhost), yet it seems not.
What am I doing wrong here?
0
Comment
Question by:Torquil Beavis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 41902111
Look for a 'www' or 'htdocs' folder under the Apache folder.  The Apache root is never the web root folder.  You can create an alias to the folder you used but I would recommend moving it to the normal web root to avoid problems.
1
 

Author Comment

by:Torquil Beavis
ID: 41902470
So should the PHP and MySQL folders be under the htdocs folder also, or in C:\ like Apache?
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 41902527
So should the PHP and MySQL folders be under the htdocs folder also, or in C:\ like Apache?
No, those are the folders for the binaries and utilities for PHP and MySQL programs.  'phpMyAdmin' is written in PHP and needs to be web-accessible like any other PHP page you will write.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question