Solved

localhost with phpMyAdmin not working on Windows 7

Posted on 2016-11-25
3
76 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:krotb
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 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:krotb
ID: 41902470
So should the PHP and MySQL folders be under the htdocs folder also, or in C:\ like Apache?
0
 
LVL 83

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now