Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Subject: change PATH without restarting

Original Message
Name: widetnetproject
Date: May 1, 2008 at 14:00:49 Pacific
Subject: change PATH without restarting
OS: Win2K Server
CPU/Ram: P4/512MB
Model/Manufacturer: Dell
Comment:
I want to change and update the PATH environment variable in Win2K server without restarting my computer. But I can't find a way to do it. Could any of you give me any idea.
Thank you.

Report Offensive Message For Removal

Response Number 1
Name: FishMonger
Date: May 1, 2008 at 14:16:09 Pacific
Subject: change PATH without restarting
Reply: (edit)
========================================================
Right-Click "My Computer" icon on deskstop
Select Properties -> Advanced -> Environment Variables
Under "System varables" select PATH and then click on the "Edit" button

Report Offensive Follow Up For Removal

Response Number 2
Name: widetnetproject
Date: May 1, 2008 at 15:09:27 Pacific
Subject: change PATH without restarting
Reply: (edit)
Yes, I did that. But it doesn't have effect until you reboot. So here is the situation: I need PHP working with Apache. I don't want to install in, just unzip the program. I need to put C:\PHP in the PATH, so that Apache will know where to find PHP. But Apache keeps reporting errors until I restart my computer. My guess is the PATH isn't updated until you reboot. That is my problem with PATH variable. Do you have any more thought.

Report Offensive Follow Up For Removal

Response Number 3
Name: RTAdams89
Date: May 1, 2008 at 15:21:20 Pacific
Subject: change PATH without restarting
Reply: (edit)
I'm not sure about the PATH issue. I would assume you need to restart to have the change take effect. As an alternative, you should be able to define the location of PHP in the Apache configuration and then just restart Apache. I don't think it is necessary to have the PHP directory in the Windows PATH environment.

-Ryan Adams
http://RyanTAdams.com


Report Offensive Follow Up For Removal

Response Number 4
Name: widetnetproject
Date: May 1, 2008 at 15:40:29 Pacific
Subject: change PATH without restarting
Reply: (edit)
I'm not sure what you meant about "the location of PHP". In my Apache Conf file I have these lines:
PHPIniDir "C:/PHP"
LoadModule php5_module "C:/PHP/php5apache2.dll"

Is it what you meant. I restart Apache after adding these above lines and this:

AddType application/x-httpd-php .php

It display an error saying that it can't find the php's dll files. But if I reboot, the problem is gone (with the new change in PATH variable).
Do you have any idea?


Report Offensive Follow Up For Removal

Response Number 5
Name: Rambler
Date: May 1, 2008 at 19:06:48 Pacific
Subject: change PATH without restarting
Reply: (edit)
If you can restart Apache from a command-line window, you can make a temporary addition to PATH first, using the command SET PATH=%PATH%;C:\PHP

If not, use the Resource Kit tool SETX.EXE to make the change permanent before restarting Apache. Details here and download here


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: change PATH without restarting

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software



Version Tracker Pro
Keep your software current and secure, effortlessly

Click Here for a Free Scan

Driver Agent
Automatically find the latest drivers for your computer.
Click Here for a Free Scan



The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC