Solved

localhost with phpMyAdmin not working on Windows 7

Posted on 2016-11-25
3
147 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
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.

830 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