Help - Search - Member List - Calendar
Full Version: Re-starting Apache
WorkTheWeb Forums > Webmaster Resources > Perl Beginner Help
Support our Sponsors!
Ron Smith
Hi everyone,

My OS stats are:

Apache/2.0.52 (Win32) PHP/4.3.10 mod_perl/1.99_18 Perl/v5.8.6 Server at localhost Port 80

This is running on "Win XP Pro". When I try to create a user-defined ENV variable in 'httpd.conf', I'm unable to do a re-start of Apache. The server just won't come back up untill I've removed the offending lines. Does anyone know of a workaround?

TIA
Ron

Chris Devers
On Tue, 5 Jul 2005, Ron Smith wrote:

QUOTE
My OS stats are:

Apache/2.0.52 (Win32) PHP/4.3.10 mod_perl/1.99_18 Perl/v5.8.6 Server
at localhost Port 80

This is running on "Win XP Pro". When I try to create a user-defined
ENV variable in 'httpd.conf', I'm unable to do a re-start of Apache.
The server just won't come back up untill I've removed the offending
lines. Does anyone know of a workaround?

Please demonstrate how you're trying to declare this variable.

Please explain how you're trying to restart Apache. (I'm a Unix/Mac guy,
so I'm used to using the apachectl command line tool; I've seen several
ways to get the same result on Windows, but I can't be more helpful
without a clearer idea of what tools you're using.)

Isn't the "right" way to define environment variables on Windows to go
into My Computer -> Properties -> Environment [?] -> Variables ? I
forget how to get to it, but I thought you had to go through the System
dialog window and find the Environment Variables button in there that,
in turn, lets you specify per-user or system-wide environment variables.
(Alternately, you should be able to use the `set` command in from within
cmd.exe, but I'm not clear if variables set that way are persistent
across reboots or have meaning outside of that particular shell.)

In any case, setting environment variables in httpd.conf isn't typically
how things are done with Unix versions of Apache. What variable are you
trying to set ? Have you tried setting it in any other ways ?



--
Chris Devers

Dave W Turner
Yeh, if you put a problematic line in the config files, the server
won't restart until you fix it, and on windows, due to the stupid
(imho) GUIs, etc. it doesn't show you the error message until you
open a dos prompt, learn a foreign language, and do a double backflip
whilst whistling the "star spangled banner"

(yes, that is a reference to H2G2)
(no, don't try it - I was joking)

On 7/5/05, Chris Devers <[Email Removed]> wrote:
QUOTE
On Tue, 5 Jul 2005, Ron Smith wrote:

My OS stats are:

Apache/2.0.52 (Win32) PHP/4.3.10 mod_perl/1.99_18 Perl/v5.8.6 Server
at localhost Port 80

This is running on "Win XP Pro". When I try to create a user-defined
ENV variable in 'httpd.conf', I'm unable to do a re-start of Apache.
The server just won't come back up untill I've removed the offending
lines. Does anyone know of a workaround?

Please demonstrate how you're trying to declare this variable.

Please explain how you're trying to restart Apache. (I'm a Unix/Mac guy,
so I'm used to using the apachectl command line tool; I've seen several
ways to get the same result on Windows, but I can't be more helpful
without a clearer idea of what tools you're using.)

Isn't the "right" way to define environment variables on Windows to go
into My Computer -> Properties -> Environment [?] -> Variables ? I
forget how to get to it, but I thought you had to go through the System
dialog window and find the Environment Variables button in there that,
in turn, lets you specify per-user or system-wide environment variables.
(Alternately, you should be able to use the `set` command in from within
cmd.exe, but I'm not clear if variables set that way are persistent
across reboots or have meaning outside of that particular shell.)

In any case, setting environment variables in httpd.conf isn't typically
how things are done with Unix versions of Apache. What variable are you
trying to set ? Have you tried setting it in any other ways ?



--
Chris Devers

--
To unsubscribe, e-mail: [Email Removed]
For additional commands, e-mail: [Email Removed]
<http://learn.perl.org/> <http://learn.perl.org/first-response





--

Dave
All us base are belong to you.


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2005 Invision Power Services, Inc.