Incorrect format parameter / Error c:/wamp64 or PHP on PATH
Posted by: Anonymouse703 (180.191.114.---)
Date: February 15, 2019 09:57AM

Hello everyone, Upon installing new version of wamp I got two errors even if the ICON is GREEN.

Wamp version: 3.1.7

Errors:
1. Error c:/wamp64 or PHP on PATH - under the Icon when you click
2. Incorrect format parameter - upon importing database

What I've done so far.

1. I already change the php version I desired in my environmental variable.
2. I set the below code in my php.ini

upload_max_filesize=64M
post_max_size=64M

Options: ReplyQuote
Re: Incorrect format parameter / Error c:/wamp64 or PHP on PATH
Posted by: RiggsFolly (Moderator)
Date: February 15, 2019 10:05AM

Hi,

The "Error c:/wamp64 or PHP on PATH - under the Icon when you click" is a WARNING and not an error.

The check that is being made and reported on the WAMPServer homepage can be turned off At Your Own Risk
- Right click WampManager Icon -> Wamp Settings -> Do not verify PATH


Incorrect format parameter - upon importing database

This sounds like a problem with the backup that you are trying to install.
If you are using phpMyAdmin to do the RESTORE and you think it is failing because of the size of your restore file then you can alter the limits applied to phpMyAdmin specifically by amending

File = wamp64\alias\phpmyadmin.conf

In that file you will find these parameters at the bottom of that file

# To import big file you can increase values
  php_admin_value upload_max_filesize 128M
  php_admin_value post_max_size 128M
  php_admin_value max_execution_time 360
  php_admin_value max_input_time 360

Amend these parameter as these are specific to phpMyAdmin AND WILL OVERRIDE anything you do to these parameters in the `php.ini` file.
Oh and dont forget to restart Apache after making these changes.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.8 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 1 time(s). Last edit at 02/15/2019 10:16AM by RiggsFolly.

Options: ReplyQuote
Re: Incorrect format parameter / Error c:/wamp64 or PHP on PATH
Posted by: Anonymouse703 (180.191.114.---)
Date: February 16, 2019 04:11AM

If I will not put php in environment variable then I cannot use php in cmd... it will promp an error `php command not specified`... so how to deal with it?

Options: ReplyQuote
Re: Incorrect format parameter / Error c:/wamp64 or PHP on PATH
Posted by: Otomatic (Moderator)
Date: February 16, 2019 08:54AM

Hi,

Do you read the answers that made you?
Apparently not! Otherwise you would have understood that this is only a warning and does not change your configuration at all.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.39 - PHP 7.3.5/7.2.18/7.1.29/7.0.33/5.6.40 - MySQL 5.7.26 - MariaDB 10.3.15
Wampserver 3.1.9 64 bit - Apache 2.4.39 - PHP 7.3.5/7.2.18/7.1.29/7.0.33/5.6.40 - MySQL 5.7.26/8.0.16 - MariaDB 10.3.15
PhPMyadmin 4.8.5 - 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: Incorrect format parameter / Error c:/wamp64 or PHP on PATH
Posted by: RiggsFolly (Moderator)
Date: February 16, 2019 10:00AM

Read this answer on StackOverflow

That describes a simple batch file you can place in a folder that is already on your path. That will allow you to add PHP (any of the versions you may have installed on your WAMPServer) to the path when you open a command windows in order to run PHP CLI.

It also incorporates `composer` and `PEAR` if you want it to

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.8 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 1 time(s). Last edit at 02/16/2019 10:02AM by RiggsFolly.

Options: ReplyQuote
Re: Incorrect format parameter / Error c:/wamp64 or PHP on PATH
Posted by: supaman2u (---.static.ftgn.ga.charter.com)
Date: February 18, 2019 07:28PM

We were in a similar situation of needing to use php commandline scripts without embedding real paths in batch files (requiring changes for every environment), and I wanted to provide the solution I used that may work better for the OP.

The problem is that with PHP on the path, the webserver will load the wrong INI file (it is relying on the fallback to look in the webserver folder, but PATH is higher priority to PHP).

I modified modified my apache http.conf file to add the PHPIniDir directive before loading the PHP module (example I'm using PHP 7.2 but should work with other versions):

PHPIniDir "${APACHE_DIR}/bin"
LoadModule php7_module "${INSTALL_DIR}/bin/php/php7.2.10/php7apache2_4.dll"

This should prevent the concern where WAMP is relying on no PHP PATH environmental variable in order to correctly load the php.ini symlink from the apache bin directory, which would have caused issues if you switch php versions.

I tested both with and without PHP path and the correct symlink ini file is being loaded. At that point, once I confirmed the "Loaded Configuration File" with phpinfo(), I disabled the warning with right-click wamp icon, "Wamp Settings", "Do not verify PATH".

If you do this, just make sure you remember to update your PATH variable if your switch versions.

Options: ReplyQuote
Re: Incorrect format parameter / Error c:/wamp64 or PHP on PATH
Posted by: Otomatic (Moderator)
Date: February 18, 2019 09:24PM

Hi,

> PHPIniDir "${APACHE_DIR}/bin"
Thank you. Very interesting. I will study this proposal for future versions.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.39 - PHP 7.3.5/7.2.18/7.1.29/7.0.33/5.6.40 - MySQL 5.7.26 - MariaDB 10.3.15
Wampserver 3.1.9 64 bit - Apache 2.4.39 - PHP 7.3.5/7.2.18/7.1.29/7.0.33/5.6.40 - MySQL 5.7.26/8.0.16 - MariaDB 10.3.15
PhPMyadmin 4.8.5 - 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


Sorry, only registered users may post in this forum.