Solved

localhost with phpMyAdmin not working on Windows 7

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

734 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