Solved

Error  using Apache 2.4

Posted on 2016-07-27
9
19 Views
Last Modified: 2016-07-27
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
     </Directory>
    ErrorLog logs/phpmyadmin.loc-error.log
    CustomLog logs/phpmyadmin.loc-access.log common
</VirtualHost>

Any help?
0
Comment
Question by:Panos
  • 5
  • 4
9 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
"C:/Inetpub/wwwroot/" is for IIS, not Apache.
1
 
LVL 2

Author Comment

by:Panos
Comment Utility
Hi.
Thank you for your response.
What is the right syntax?
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
I don't know, you have me confused.  Where did you install Apache?
0
 
LVL 2

Author Comment

by:Panos
Comment Utility
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:
127.0.0.1 phpmyadmin.selfip.com
attached httpd file:
httpd.txt
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
According to your 'httpd.conf' file, your DocumentRoot for Apache is at "c:/Apache24/htdocs".  ??
0
 
LVL 2

Author Comment

by:Panos
Comment Utility
According to the conf file yes.... but i have the phpmyadmin folder in  C:/Inetpub/wwwroot  folder.
Hmmm...Something is wrong in my setup.
0
 
LVL 2

Author Comment

by:Panos
Comment Utility
Thank you for your help.
I changed the DocumentRoot folder in the httpd.conf file and it is working.
0
 
LVL 2

Author Closing Comment

by:Panos
Comment Utility
Thank you
regards Panos
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
You're welcome, glad to help.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

771 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

10 Experts available now in Live!

Get 1:1 Help Now