You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-13
Original file line number
Diff line number
Diff line change
@@ -14,28 +14,30 @@ At just over 7kB the CLI Changer script is small enough to be saved anywhere in
14
14
**Tip:** Once you have save the CLI Changer script, create a desktop shortcut to it for quick and easy access.
15
15
16
16
## Configuration
17
-
If using a WampServer 32-bit version with default settings, then no configuration is necessary.
17
+
No configuration is necessary if your installed WampServer in its default directory.
18
18
19
-
If using a WampServer 64-bit version **OR** a different install path was used during installation, then follow the steps below:
20
-
21
-
1. Open the CLI Changer script in your preferred text editor.
22
-
2. Change the value of the `$pathToInstall` variable to match that of your WampServer installation path. **Note:** If your path has spaces in it then the line should look like this: `"$pathToInstall=C:\wamp server"`
23
-
3. Once you have changed the value, save and close your editor.
24
-
25
-
For your reference, the default WampServer install paths are:
19
+
The default installation directories are:
26
20
-`C:\wamp` - For 32-bit installations.
27
21
-`C:\wamp64` - For 64-bit installations.
28
22
23
+
If you installed WampServer in a custom directory, then follow the steps below:
24
+
25
+
1. Open the CLI Changer script in your preferred text editor.
26
+
2. Append your custom install path to the `$customInstallPath` variable.
27
+
3. Save the file and close your editor.
28
+
29
29
Example: A customised WampServer install path.
30
30
```
31
31
rem +------------------------------------------------+
32
32
rem | User Defined Variable(s) |
33
33
rem +------------------------------------------------+
34
34
35
-
rem WampServer install path.
36
-
set $pathToInstall=D:\WampServer64
35
+
rem WampServer custom install path.
36
+
set $customInstallPath=D:\WampServer 64-Bit
37
37
```
38
38
39
+
**IMPORTANT:** Do not add quotation marks around your custom installation path, even if the path contains spaces.
40
+
39
41
## How To Use
40
42
There are two ways you can use the CLI Changer script.
41
43
@@ -94,7 +96,7 @@ From a Bash or Powershell prompt:
94
96
$ start "C:\path\to\cli_changer.bat" php7.2.3
95
97
```
96
98
97
-
**Note 1:** You will need to enclose the CLI Changer script path in double quotation marks if the path contains any spaces.
99
+
**Note 1:** You will need to enclose the CLI Changer script path in quotes if the path contains any spaces.
98
100
99
101
**Note 2:** You will need to know the available PHP CLI version(s) in advance prior to using this command.
100
102
@@ -110,7 +112,7 @@ Following execution, an exit code will be given:
110
112
As of WampServer v3.1.2 the below error message may be displayed.
111
113
112
114
```
113
-
ERROR C:/wamp or PHP in PATH"
115
+
Error C:/wamp or PHP in PATH
114
116
```
115
117
116
118
Clicking on this error will open a command window displaying the below message.
@@ -130,7 +132,7 @@ Wampserver does not use, modify or require the PATH environmental variable.
130
132
Using a PATH on Wampserver or PHP version
131
133
is detrimental to the proper functioning of Wampserver.
132
134
133
-
Press ENTER top continue...
135
+
Press ENTER to continue...
134
136
```
135
137
136
138
This error can be suppressed by right-clicking the WampServer icon in the taskbar notification area and selecting: _Wamp Settings -> Do not verify PATH_
0 commit comments