0

I'm trying to Install Apache PHP MySQL phpMyAdmin on Windows 10, so I started with Apache so I downloaded it and I installed it as a service with :

>httpd.exe -k install

and then I typed httpd.exe -k start

and this problem shows up

enter image description here

when I open httpd.config file and change it from :

enter image description here

to :

enter image description here

and run httpd.exe -k start the error's not there anymore but when I head up to my browser and type http://localhost I'm supposed to get a page saying : it works

but instead I got this : enter image description here

I read this

Apache restart causes DocumentRoot must be a directory, even though it is a directory and there seem to be no privilege issues https://forums.centos.org/viewtopic.php?t=1053

but it didn't help. How can I fix this error?

Vickel
  • 7,879
  • 6
  • 35
  • 56
Amine El were
  • 797
  • 2
  • 8
  • 21
  • 1
    You have to give Apache permissions on the directory you specified in DocumentRoot. Look at the next line ``, it does not match the directory you put in your config. And, please, never put images of code or config. here, it is text, paste it as text. – Nic3500 Dec 25 '19 at 18:46
  • Hum another thing it could be, your browser does not connect. Look at the `Listen` directive to know which port Apache listens to. You might have to connect to `http://localhost:PORT/`. Also the Windows firewall by default will block that traffic. Turn it off to test, then add specific rule to allow it. – Nic3500 Dec 25 '19 at 18:48

1 Answers1

0

you need to use / "C:/Program Files (x86)/Apache Software Foundation/Apache24" not this "C:\Program Files (x86)\Apache Software Foundation\Apache24"

sa_rocket
  • 18
  • 4