Link to home
Start Free TrialLog in
Avatar of Panos
PanosFlag for Germany

asked on

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
     </Directory>
    ErrorLog logs/phpmyadmin.loc-error.log
    CustomLog logs/phpmyadmin.loc-access.log common
</VirtualHost>

Any help?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

"C:/Inetpub/wwwroot/" is for IIS, not Apache.
Avatar of Panos

ASKER

Hi.
Thank you for your response.
What is the right syntax?
I don't know, you have me confused.  Where did you install Apache?
Avatar of Panos

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Panos

ASKER

According to the conf file yes.... but i have the phpmyadmin folder in  C:/Inetpub/wwwroot  folder.
Hmmm...Something is wrong in my setup.
Avatar of Panos

ASKER

Thank you for your help.
I changed the DocumentRoot folder in the httpd.conf file and it is working.
Avatar of Panos

ASKER

Thank you
regards Panos
You're welcome, glad to help.