Enviroment variable
Posted by: krebsen33@gmail.com (---.rev.stofanet.dk)
Date: September 08, 2023 04:34PM

I have just installed wamp3.3.0. It com with a warning :

In the Main window on my Windows11 comes this message:
WARNING Apache error log
Warning c:/wamp64 or PHP in PATH
---------------------

I have made a configuration Wampserver report:
1694182390
------ Wampserver configuration report
fredag 8 september 2023 - 14:13
- Windows NT 6.0 build 6002 (Windows Vista Business Edition Service Pack 2)
- Text_Encoding = Array
(
[IsSingleByte] => True
[BodyName] => iso-8859-1
[EncodingName] => Vesteurop‘isk (Windows)
[HeaderName] => Windows-1252
[WebName] => Windows-1252
[WindowsCodePage] => 1252
[CodePage] => 1252
[LocaleCtype] => 1252
)
- Windows Charset: Windows-1252
- Wampserver version 3.3.0 - 64bit
- Wampserver install version 3.3.0 installed on 2023-09-07
- Update
- Install directory: c:/wamp64
- Default browser: C:/Program Files/Google/Chrome/Application/chrome.exe
- Default text editor: C:/Windows/System32/notepad.exe
- Default log viewer: C:/Windows/System32/notepad.exe
- Apache 2.4.54.2 - Port 8080
- Additional Apache listening ports:
- PHP 7.4.33
MySQL versions seen by refresh listDir:
8.0.31
MariaDB versions seen by refresh listDir:
10.10.2
PHP versions seen by refresh listDir:
7.4.33 - 8.0.26 - 8.1.13 - 8.2.0
Apache versions seen by refresh listDir:
2.4.54.2
- MySQL 8.0.31 Port 3306
MySQL basedir = c:/wamp64/bin/mysql/mysql8.0.31
MySQL datadir = c:/wamp64/bin/mysql/mysql8.0.31/data
- MariaDB 10.10.2 Port 3307
MariaDB basedir = c:/wamp64/bin/mariadb/mariadb10.10.2
MariaDB datadir = c:/wamp64/bin/mariadb/mariadb10.10.2/data
- PHP 7.4.33 for Internal Wampserver PHP scripts
------ Wampserver configuration ------
---------- Section [main]
language = english wampserverVersion = 3.3.0
installDir = c:/wamp64 installVersion = 3.3.0
navigator = C:/Program Files/Google/Chrome/Application/chrome.exeeditor = C:/Windows/System32/notepad.exe
logviewer = C:/Windows/System32/notepad.exedefaultLanguage = english
wampserverMode = 64bit installDate = 2023-09-07
wampStartDate = 2023-09-8 13:36:34
---------- Section [options]
AliasSubmenu = off NotCheckVirtualHost = off
NotCheckDuplicate = off VirtualHostSubMenu = on
HomepageAtStartup = off VhostAllLocalIp = off
SupportMySQL = on SupportMariaDB = on
ShowphmyadMenu = on ShowadminerMenu = on
NotVerifyPATH = off HostsLinesLimit = 5000
NotVerifyHosts = off NotVerifyTLD = off
AutoCleanLogs = on AutoCleanLogsMax = 1000
AutoCleanLogsMin = 50 AutoCleanTmp = on
AutoCleanTmpMax = 1000 BackupHosts = off
ShowWWWdirMenu = off MysqlMariaChangePrompt = off
LinksOnProjectsHomePage = off LinksOnProjectsHomeByIp = off
LocalTest = off CreateSymlink = symlink
ScrollListsHomePage = on
---------- Section [apacheoptions]
apacheUseOtherPort = on apachePortUsed = 8080
apacheCompareVersion = off apacheRestoreFiles = off
apacheGracefulRestart = on apachePhpCurlDll = off
---------- Section [mysqloptions]
mysqlPortUsed = 3306 mysqlUseOtherPort = off
mysqlUseConsolePrompt = off mysqlConsolePrompt = \U-MySQL\v-['\d']>
mysqlPortOptionsMenu = on
---------- Section [mariadboptions]
mariaPortUsed = 3307 mariaUseOtherPort = on
mariadbUseConsolePrompt = off mariadbConsolePrompt = \U-\v-['\d']>
mariadbPortOptionsMenu = on
---------------------------------------------
------ C:/WINDOWS/system32/drivers/etc/hosts file contents ------
------ Limited to the first 30 lines ------
192.168.1.12 tompc
127.0.0.1 localhost
::1 localhost
----------------------------------------------
-- c:/wamp64/bin/apache/apache2.4.54.2/conf/extra/httpd-vhosts.conf file contents --
------ Limited to the first 40 lines ------
# Virtual Hosts
#
<VirtualHost *:8080>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
----------------------------------------------
THIS IS THE WARNIG:

Warning: There is Wampserver path (c:/wamp64)
into Windows PATH environnement variable: (C:\wamp64\bin\php\php7.4.26)
Warning: It seems that a PHP installation is declared in the environment variable PATH
C:\wamp64\bin\php\php7.4.26

Wampserver does not use, modify or require the PATH environment variable.
Using a PATH on Wampserver or PHP version
may be detrimental to the proper functioning of Wampserver.



-- PHP Configuration values
allow_url_fopen = On allow_url_include = Off
auto_append_file = auto_globals_jit = On
auto_prepend_file = date.timezone = UTC
default_charset = UTF-8 default_mimetype = text/html
disable_classes = disable_functions =
display_errors = On display_startup_errors = On
enable_dl = Off error_reporting = E_ALL
expose_php = On file_uploads = On
ignore_repeated_errors = Off ignore_repeated_source = Off
implicit_flush = Off log_errors = On
max_execution_time = 120 max_input_time = 60
max_input_vars = 2500 memory_limit = 128M
output_buffering = 4096 post_max_size = 8M
register_argc_argv = Off report_memleaks = On
request_order = GP session.save_path = c:/wamp64/tmp
short_open_tag = Off upload_max_filesize = 2M
upload_tmp_dir = c:/wamp64/tmp variables_order = GPCS
xdebug.log_level = 7 xdebug.mode = develop
xdebug.show_local_vars = 0 zend.enable_gc = On
zlib.output_compression = Off
--------------------------------------------------
--------- wampmanager.ini (Last 4 lines) --------
[Options]
AeTrayMode=64 Bits
AeTrayOldMode=64bit
AeTrayVersion=3.2.4.9
--------------------------------------------------
State of services:
The service 'wampapache64' is started
Start type : DEMAND_START
Service Session : LocalSystem
The service 'wampmysqld64' is started
Start type : DEMAND_START
Service Session : LocalSystem
The service 'wampmariadb64' is started
Start type : DEMAND_START
Service Session : LocalSystem
all services are started - it is OK
all services BINARY_PATH_NAME are OK
all services START_TYPE are OK
--------------------------------------------------
*** Checking the DNS search order ***
Values of registry keys for
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider
are in correct order
--------------------------------------------------
Wampmanager (Aestan Tray Menu) 3.2.4.9 - 64bit
Compiler Visual C++ versions used:
........

........

I have changed the port to 8080 and the test say it'OK

One more thing: when i write [localhost] it just comes width an "server not found" but when i use [localhost] it is correct.
Hope you can help.

Options: ReplyQuote
Re: Enviroment variable
Posted by: Otomatic (Moderator)
Date: September 09, 2023 08:57AM

Right-Click -> Wamp settings -> Caution risky - Only for experts -> NotVerifyPATH to check it

This warning will disappear with Wampserver 3.3.2 :
Removal of PHP path checking in environment variables. No longer necessary with PHPIniDir in httpd.conf

> One more thing: when i write 'http://localhost/phpinfo.php' it just comes width an "server not found"
> but when i use 'http://localhost:8080/phpinfo.php' it is correct.

This is perfectly normal, since you've changed the Apache port to 8080!

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Enviroment variable
Posted by: Otomatic (Moderator)
Date: September 09, 2023 09:48AM

I am very intrigued by the Windows version of the configuration report:

> - Windows NT 6.0 build 6002 (Windows Vista Business Edition Service Pack 2)

These are the values returned by the PHP code:
$WinVer = php_uname('s').' '.php_uname('r').' '.php_uname('v');

Wampserver 3.3.0 can only be installed on Windows 7 or later:
; W7 sp1 minimum
MinVersion=6.1sp1

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Enviroment variable
Posted by: krebsen33@gmail.com (---.rev.stofanet.dk)
Date: September 09, 2023 11:07AM

I'm sorry i forgot to tell that its Windows11.

Options: ReplyQuote


Sorry, only registered users may post in this forum.