C drive not primary but program installed there
Posted by: student driver (---.hsd1.ga.comcast.net)
Date: March 22, 2013 01:30AM

I unknowingly allowed Wamp to install in C: which is NOT primary drive. Unusual yes, but true.
Primary Drive is another drive letter. Discovered this immediately after install, when Cmd Line 'php' request would not start PHP program. Other wise, program seems to display all it's functions, even though it's in a "storage" Drive for files.

Should I do an Add/Remove and wipe wamp and start over, this time placing it manually in the correct OS Drive? XP 32bit

Thanks

Options: ReplyQuote
Re: C drive not primary but program installed there
Posted by: stevenmartin99 (Moderator)
Date: March 22, 2013 09:03AM

The default path is c:\wamp but its not locked , it can be changed on install


however there is no reason why it cant run from the non-OS drive so you can just leave it there.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: C drive not primary but program installed there
Posted by: student driver (---.hsd1.ga.comcast.net)
Date: March 22, 2013 03:43PM

Steven thank you for your guidance on this.

The one thing I can't do, that was suggested in a PHP Book I'm reading, is a simple test of a sample php file using the Command Line, while in the same directory as the 'test' file. (or sitting in any directory)

When I attempt, it says: " 'psp' is not recognized as an internal or external command, operable program or batch file."

My command is: psp hellotest.php

I has assumed that the reason for the failure was the different Drives, but apparently it must be some other reason. Maybe I haven't setup Wamp properly (although it's very straight forward).

Thanks again.

Options: ReplyQuote
Re: C drive not primary but program installed there
Posted by: stevenmartin99 (Moderator)
Date: March 22, 2013 03:54PM

Firstly it's not psp, it's php so that's definitely why it's not working

But even if you try php it may not work because that would require an environmental variable to be added to windows for the php-win.exe

If u want to get Teamviewer i will help you

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: C drive not primary but program installed there
Posted by: RiggsFolly (---.as13285.net)
Date: March 22, 2013 04:48PM

For what its worth,

I do this all the time, and in order to make it easy, and not have to add the php folder to my path permanantly becasue I have more than one version of php on my system most of the time i have a batch file that I keep in a folder that is on the PATH.
When I want to run php from a command line I open a command promt and run this batch file to setup any environment variables that are required to run my php scripts . It also adds the mysql folder to the path so I can use he mysql.exe command line tool as well if I want.

Here it is

echo off

if %1.==php5.4. GOTO PHP54
GOTO defaultPHP

tongue sticking out smileyHP54
path=%path%;d:\wamp\bin\php\php5.4.11
ECHO Adding settings for PEAR and PHPUNIT php5.4.11
set PHP_PEAR_SYSCONF_DIR=D:\wamp\bin\php\php5.4.11
set PHP_PEAR_INSTALL_DIR=D:\wamp\bin\php\php5.4.11\pear
set PHP_PEAR_DOC_DIR=D:\wamp\bin\php\php5.4.11\docs
set PHP_PEAR_BIN_DIR=D:\wamp\bin\php\php5.4.11
set PHP_PEAR_DATA_DIR=D:\wamp\bin\php\php5.4.11\data
set PHP_PEAR_PHP_BIN=D:\wamp\bin\php\php5.4.11\php.exe
set PHP_PEAR_TEST_DIR=D:\wamp\bin\php\php5.4.11\tests
GOTO EndPHP

:defaultPHP
path=%path%;d:\wamp\bin\php\php5.3.17;d:\wamp\bin\mysql\mysql5.5.28\bin
ECHO Adding settings for PEAR and PHPUNIT php5.3.17
set PHP_PEAR_SYSCONF_DIR=D:\wamp\bin\php\php5.3.17
set PHP_PEAR_INSTALL_DIR=D:\wamp\bin\php\php5.3.17\pear
set PHP_PEAR_DOC_DIR=D:\wamp\bin\php\php5.3.17\docs
set PHP_PEAR_BIN_DIR=D:\wamp\bin\php\php5.3.17
set PHP_PEAR_DATA_DIR=D:\wamp\bin\php\php5.3.17\data
set PHP_PEAR_PHP_BIN=D:\wamp\bin\php\php5.3.17\php.exe
set PHP_PEAR_TEST_DIR=D:\wamp\bin\php\php5.3.17\tests

:EndPHP
php -v

REM ADD MYSQL
path=%path%;d:\wamp\bin\mysql\mysql5.5.28\bin
mysql -V

Options: ReplyQuote


Sorry, only registered users may post in this forum.