• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 48
  • Last Modified:

Error using Apache 2.4

Hello experts
recently i did set up a new home pc for testing. I installed Apache 2.4
Trying to use it with virtual host i have some errors.
One of them is using phpmyadmin.
I can go trough the login page to the main panel.
If i submit a form for action , to make a change or upload .sql files... i get an error like:
Not Found
The requested URL /search.php was not found on this server.

My virtual host settings are:
<VirtualHost *:80>
    ServerAdmin test@test-host.example.com
    DocumentRoot "C:/Inetpub/wwwroot/phpmyadmin"
    ServerName phpmyadmin.selfip.com
    ServerAlias *.phpmyadmin.selfip.com
     <Directory C:/Inetpub/wwwroot>
      AllowOverride none
      Require all granted
    ErrorLog logs/phpmyadmin.loc-error.log
    CustomLog logs/phpmyadmin.loc-access.log common

Any help?
  • 5
  • 4
1 Solution
Dave BaldwinFixer of ProblemsCommented:
"C:/Inetpub/wwwroot/" is for IIS, not Apache.
PanosAuthor Commented:
Thank you for your response.
What is the right syntax?
Dave BaldwinFixer of ProblemsCommented:
I don't know, you have me confused.  Where did you install Apache?
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

PanosAuthor Commented:
All the details:
Operating system Windows 10
Apache folder C:/Apache24
DocumentRoot "C:/Inetpub/wwwroot/phpmyadmin"
C:/windows/system32/drivers/etc/hosts file add line: phpmyadmin.selfip.com
attached httpd file:
Dave BaldwinFixer of ProblemsCommented:
According to your 'httpd.conf' file, your DocumentRoot for Apache is at "c:/Apache24/htdocs".  ??
PanosAuthor Commented:
According to the conf file yes.... but i have the phpmyadmin folder in  C:/Inetpub/wwwroot  folder.
Hmmm...Something is wrong in my setup.
PanosAuthor Commented:
Thank you for your help.
I changed the DocumentRoot folder in the httpd.conf file and it is working.
PanosAuthor Commented:
Thank you
regards Panos
Dave BaldwinFixer of ProblemsCommented:
You're welcome, glad to help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now