Solved

localhost with phpMyAdmin not working on Windows 7

Posted on 2016-11-25
3
31 Views
Last Modified: 2016-11-26
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 82

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 82

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

746 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

13 Experts available now in Live!

Get 1:1 Help Now