Apache fails to start after updating to Laragon 2.2.1
-
Laragon has been working fine but after updating to laragon 2.2.1 apache fails to start.
How do i fix it.
-
Just switch PHP version
Menu > PHP > Version
& Apache Version inMenu -> Apache -> Version
-
@Mocking-Bird... i did wat u said and now this is the error i get...
-
Strange. Mine is Apache httpd-2.4.25-win32-VC14
-
and PHP is
php-7.1.1-Win32-VC14-x86
Btw, Check your Document Root on
Menu -> www -> Switch Document Root
-
@Mocking-Bird... switched php and apache versions to match urs but still not starting and the document root is the right 1...
-
Btw, Check your Document Root on
Menu -> www -> Switch Document Root
-
@Mocking-Bird... i've checked the document root and its the right one
-
@niilighter: Did you click on the Menu Item
C:\laragon\www
-
@Mocking-Bird.... yes i clicked on the right 1
-
Does it work for you?
-
@Mocking-Bird... no it didnt
-
@niilighter: Any error?
You can check manually by going toMenu -> Apache -> httpd.conf
Search for:Document Root
. Mine is on line 246
Should be something like this:DocumentRoot "C:/laragon/www"
-
@Mocking-Bird... the document root is the right 1... the problem i think is the path to the php version, that extra "php-" shouldn't be there...
-
@niilighter: You're right. I wonder why upgrading to 2.2.1 causing this.
You can open httpd.conf and fix line 531.However, I wonder what is the error when you switch to Apache 2.4.25 and check Document Root?
Just follow the error message (it has line) and you will find way to fix it.
-
Another simple way is:
Install Laragon to another dir, then copydata
,www
,usr
to the new directory.
-
@leokhoa... i've tried fixing it lot of times but after i restart apache then it adds "php-" to the path again. i even duplicated that line and commented it out before fixing it and the commented line path became "php-php-" after restarting apache
-
@niilighter : Did you? I still see Apache 2.4.17 on the last image. Show me the image that show Apache 2.4.25 please and the Document Root on httpd.conf
-
@leokhoa... after changing it to Apache 2.4.25 it displayed the error below
then i went to edit the line which had da error (246) and by entering da correct document root (which was empty) and it wasn't overwritten this time.
Apache works now
-
Cool, I've marked it as Solved. However, I will find out why it put "Document Root" empty even when you click Switch to Document Root as @Mocking-Bird suggested.