setup_xampp.bat misses some renames in http-xampp.conf

Problems with the Windows version of XAMPP, questions, comments, and anything related.

setup_xampp.bat misses some renames in http-xampp.conf

Postby rlma2 » 09. February 2019 11:39

Setup-xampp.bat does a great job of switching the default install from the default 'xampp' directory to the currently installed directory when, as required, it is executed in the new directory. It knows to not rename sub directories and conf files containing 'xampp' referenced in various configuration files it processes. In all a wonderful tool !

I'm seeing, what looks to me that there a limited few missed renames in apache\conf\extras\httpd-xampp.conf.

I''d like others to review what I'm seeing and confirm that these too should be renamed by setup-xampp.bat.

Here's the area in apache\conf\httpd-xampp.conf before and after moving the install to the 'C:\xampp_7_3_1' directory.
Before:
<IfModule env_module>
SetEnv MIBDIRS "C:/xampp/php/extras/mibs"
SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"
SetEnv OPENSSL_CONF "C:/xampp/apache/bin/openssl.cnf"
SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"
SetEnv PHPRC "\\xampp\\php"
SetEnv TMP "\\xampp\\tmp"
</IfModule>

After:
<IfModule env_module>
SetEnv MIBDIRS "C:/xampp_7_3_1/php/extras/mibs"
SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"
SetEnv OPENSSL_CONF "C:/xampp_7_3_1/apache/bin/openssl.cnf"
SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"
SetEnv PHPRC "\\xampp\\php"
SetEnv TMP "\\xampp\\tmp"
</IfModule>


Notice in the 'After' the green text showing the made expected changes and the red text marking the unmade but expected changes.

On starting the install and browsing to http:\\localhost to bring up the dashboard and clicking through to PHPinfo it can been seen in the 'PHP Variables' area that the original 'xampp' directory is referenced instead of the 'xampp_7_3_1' directory as required. Not unexpected because of the missed rename by setup-xampp.bat et al.

Here's a screen shot of the PHPinfo area.
Image

I haven't dug into the php and awk scripting yet to understand and gage the effort to correct the missed renames pending confirmation by others that these too should be renamed.

Does it seem like an omission that these directories aren't also renamed ?
rlma2
 
Posts: 1
Joined: 09. February 2019 09:21
XAMPP version: 7.3.1
Operating System: Windows 10 1803 Pro x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 107 guests