Mechanical bug in WampServer
Posted by: selnomeria (---.customer.magticom.ge)
Date: October 15, 2018 06:36PM

Under `/bin/apache/apache2.4.xx/conf/extra/httpd-ssl.conf ` there is incorrectly used variable, named `${SRVROOT} `

neither in WampServer instalaltion, that variable is not being defined. I assume that is mechanical mistake as in `conf/httpd.conf` there is:

`${APACHE_DIR}`

so, i assume it should be everywhere in `httpd-ssl.conf`, instead of `${SRVROOT} `.


you can ensure that the bug is existent. Just uncomment "Include httpd-ssl.conf" in main httpd.conf and pinging :
C:/wamp/bin/apache/apache2.4.35/bin/httpd -t

will confirm that variable doesnt exist.

Options: ReplyQuote
Re: Mechanical bug in WampServer
Posted by: selnomeria (---.customer.magticom.ge)
Date: October 15, 2018 06:36PM

or either, i assume that there should be "Define SRVROOT ${APACHE_DIR}/" in main httpd.conf.

Options: ReplyQuote
Re: Mechanical bug in WampServer
Posted by: Otomatic (Moderator)
Date: October 15, 2018 06:59PM

Hi,

It's an oversight on my part, I'm sorry.
Modify the wamp\bin\apache\apache2.4.35\conf\httpd.conf file as follows (One more line):
Duplicate and modify the new line
Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}
To obtain
Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}
Define SRVROOT ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Mechanical bug in WampServer
Posted by: selnomeria (---.customer.magticom.ge)
Date: October 28, 2018 06:43PM

yes, but ideally, you'd better to make SRVROOT already defined somewhere, so , when user includes httpd-conf-ssl` then he shouldnt worry about what is SRVROOT (which is nowhere said or documented) so we spent hours trying to find out how to "fix" that "problem" (actually, we thought there was somewhere a problem and we have been trying to find out where that variable was.... actually, it wasnt anywhere, just we had to declare it and "waht value" should it be - it took also time.

it could be good, if you just do this and sort-out those problems for us smiling smiley what if you just include that variable defined anywhere in ssl-conf or main httpd.conf?


thanks

Options: ReplyQuote
Re: Mechanical bug in WampServer
Posted by: Otomatic (Moderator)
Date: October 28, 2018 07:45PM

Hi,

SRVROOT is defined in the original Apache version 2.4.35 and 2.4.37 in httpd.conf :

Define SRVROOT "c:/Apache24"

It was an oversight on my part to redefine it correctly in Apache 2.4.35 and it is declared as a bug right here with the correction to be made.

This is fixed with Apache 2.4.37

And there is no need to define it elsewhere than in httpd.conf, since it is a global variable for everything in Apache.

> so we spent hours trying to find out how to "fix" that "problem"

Sorry for you, but, with a decent text editor, it takes less than ten seconds to find out where SRVROOT is defined among all Apache files.
Search 'Define SRVROOT' in 'J:\wamp\bin\apache\apache2.4.35\*.* :
J:\wamp\bin\apache\apache2.4.35\conf\original\httpd.conf(37): Define SRVROOT "c:/Apache24"

It is also indicated in the file \wamp\bin\apache\apache2.4.35\ReadMe_2.4.35.txt :
  When you unzip to an other location: 
  change Define SRVROOT "c:/Apache24"  in httpd.conf, for example to "E:/Apache24"

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



Edited 1 time(s). Last edit at 10/28/2018 07:56PM by Otomatic.

Options: ReplyQuote
Re: Mechanical bug in WampServer
Posted by: selnomeria (---.customer.magticom.ge)
Date: November 01, 2018 09:43PM

thanks for nice answer!
you are right, and I see my faults.
However, just my notice, if you could consider:


the idea of this topic was that, after we uncomment the "Include conf/extra/httpd-ssl.conf" in `conf/httpd.conf`, we get error from apache, that SRVROOT is not declared.



- I've checked now, and actually, the httpd.conf file (that contains SRVROOT variable) is in "/conf/original" folder, and as we see the "original" folder is not being actually used by wamp.

So, that means what i said initially, SRVROOT is not defined unless user manually copies it from "original/httpd.conf" folder. and all my idea of this topic was, if it's considerable, that you included the "Define SRVRTOO C:/install_path" in conf/httpd.conf upon installation, so no need for us to manually copy-paste that variable from "original" folder.



or:

in /extra/httpd-ssl.conf , replace `${SRVROOT}` with ${APACHE_DIR} (which is already declared in `conf/httpd.conf`), so, the problem will be solved.



btw: when we install Wamp, the installer should automatically set the install path of apache (instead of c:\apache24 ), shouldnt it?



so, my all point is that, after we uncomment the "Include conf/extra/httpd-ssl.conf" in `conf/httpd.conf`, we shouldnt need to do further modifications/manual-copy-pastes in httpd.conf, because either SRVROOT should be already declared, or instead of SRVROOT, used APACHE_DIR (which is already declared in `conf/httpd.conf`)
thanks


p.s.2. ideally, my attempt is that Wamp had this : [articlebin.michaelmilette.com] or [www.proy.info]

builtin so after installation we had a working ssl without much burden.



Edited 3 time(s). Last edit at 11/01/2018 10:07PM by selnomeria.

Options: ReplyQuote


Sorry, only registered users may post in this forum.