You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Xpert Advice <xp...@yahoo.com> on 2008/09/20 01:09:33 UTC
[users@httpd] Configuration Problems
Hello,
I recently downloaded this version of Apache:
Win32 Binary without crypto (no mod_ssl) (MSI Installer): apache_2.2.9-win32-x86-no_ssl-r2.msi[PGP] [MD5]
I am currently using windows vista and im trying to add the following 2 php lines to the configuration ( in notepad ) because they didnt show up automatically:
LoadModule php5_module c:/php/php5apache2_2.dll
AddType application/x-httpd-php .php .html
However, every time i try to save the changes I get the following message:
"Cannot create the C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf file." Make sure that the path and file name are correct.
After I clock ok the save window pops up asking me where i want to save it....I pick the same location that is listed above adn it tells me:
httpd.conf already exists. Do you want to replace it?
I hit ok and it starts all over again Can not creat error message above.
I checked my error log and honestly can not make sense of it but here it is:
Starting the Apache2.2 service
The Apache2.2 service is running.
] Apache/2.2.9 (Win32) configured -- resuming normal operations
[Fri Sep 19 12:59:20 2008] [notice] Server built: Jun 13 2008 04:04:59
[Fri Sep 19 12:59:20 2008] [notice] Parent: Created child process 4388
[Fri Sep 19 12:59:21 2008] [notice] Child 4388: Child process is running
[Fri Sep 19 12:59:21 2008] [notice] Child 4388: Acquired the start mutex.
[Fri Sep 19 12:59:21 2008] [notice] Child 4388: Starting 64 worker threads.
[Fri Sep 19 12:59:21 2008] [notice] Child 4388: Starting thread to listen on port 80..
[Fri Sep 19 13:13:25 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Sep 19 13:13:25 2008] [notice] Child 4388: Exit event signaled. Child process is ending.
[Fri Sep 19 13:13:26 2008] [notice] Child 4388: Released the start mutex
[Fri Sep 19 13:13:27 2008] [notice] Child 4388: All worker threads have exited.
[Fri Sep 19 13:13:27 2008] [notice] Child 4388: Child process is exiting
[Fri Sep 19 13:13:27 2008] [notice] Parent: Child process exited successfully.
Starting the Apache2.2 service
The Apache2.2 service is running.
] Apache/2.2.9 (Win32) configured -- resuming normal operations
[Fri Sep 19 13:30:03 2008] [notice] Server built: Jun 13 2008 04:04:59
[Fri Sep 19 13:30:03 2008] [notice] Parent: Created child process 4468
[Fri Sep 19 13:30:05 2008] [notice] Child 4468: Child process is running
[Fri Sep 19 13:30:05 2008] [notice] Child 4468: Acquired the start mutex.
[Fri Sep 19 13:30:05 2008] [notice] Child 4468: Starting 64 worker threads.
[Fri Sep 19 13:30:05 2008] [notice] Child 4468: Starting thread to listen on port 80.
[Fri Sep 19 16:50:39 2008] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Sep 19 16:50:39 2008] [notice] Apache/2.2.9 (Win32) configured -- resuming normal operations
[Fri Sep 19 16:50:39 2008] [notice] Server built: Jun 13 2008 04:04:59
[Fri Sep 19 16:50:39 2008] [notice] Parent: Created child process 3096
[Fri Sep 19 16:50:39 2008] [notice] Child 3096: Child process is running
[Fri Sep 19 16:50:39 2008] [notice] Child 3096: Acquired the start mutex.
[Fri Sep 19 16:50:39 2008] [notice] Child 3096: Starting 64 worker threads.
[Fri Sep 19 16:50:39 2008] [notice] Child 3096: Starting thread to listen on port 80.
[Fri Sep 19 17:11:53 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Sep 19 17:11:54 2008] [notice] Child 3096: Exit event signaled. Child process is ending.
[Fri Sep 19 17:11:55 2008] [notice] Child 3096: Released the start mutex
[Fri Sep 19 17:11:56 2008] [notice] Child 3096: All worker threads have exited.
[Fri Sep 19 17:11:56 2008] [notice] Child 3096: Child process is exiting
[Fri Sep 19 17:11:57 2008] [notice] Parent: Child process exited successfully.
Starting the Apache2.2 service
The Apache2.2 service is running.
] Apache/2.2.9 (Win32) configured -- resuming normal operations
[Fri Sep 19 17:16:30 2008] [notice] Server built: Jun 13 2008 04:04:59
[Fri Sep 19 17:16:30 2008] [notice] Parent: Created child process 2184
[Fri Sep 19 17:16:31 2008] [notice] Child 2184: Child process is running
[Fri Sep 19 17:16:31 2008] [notice] Child 2184: Acquired the start mutex.
[Fri Sep 19 17:16:31 2008] [notice] Child 2184: Starting 64 worker threads.
[Fri Sep 19 17:16:31 2008] [notice] Child 2184: Starting thread to listen on port 80.
[Fri Sep 19 17:53:43 2008] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Sep 19 17:53:43 2008] [notice] Apache/2.2.9 (Win32) configured -- resuming normal operations
[Fri Sep 19 17:53:43 2008] [notice] Server built: Jun 13 2008 04:04:59
[Fri Sep 19 17:53:43 2008] [notice] Parent: Created child process 2872
[Fri Sep 19 17:53:44 2008] [notice] Child 2872: Child process is running
[Fri Sep 19 17:53:44 2008] [notice] Child 2872: Acquired the start mutex.
[Fri Sep 19 17:53:44 2008] [notice] Child 2872: Starting 64 worker threads.
[Fri Sep 19 17:53:44 2008] [notice] Child 2872: Starting thread to listen on port 80.
If anyone can offer any assistance in my problem please help! Thank You in advance!!
Tianja Samuel-George
President
Re: [users@httpd] Configuration Problems
Posted by Eric Covener <co...@gmail.com>.
On Sat, Sep 20, 2008 at 9:10 AM, André Warnier <aw...@ice-sa.com> wrote:
> The fact the MS uses a conventional MS way to do things, does not
> necessarily mean that everyone else has to blindly follow it.
> Particularly open-source packages and particularly for such packages as
> Apache, where the audience almost by default is the world at large.
IMO when someone takes the time to create a binary distribution for a
platform, it should follow the platforms filesystem standard as much
as possible. Why would a larger audience dictate installing the
software in a non-standard path?
> And spaces in paths will give you headaches, as soon as you start doing more advanced things such a rewriting URLs for instance.
Shouldn't be different then any other directive -- If you embed a
space in an argument, quote the argument.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Configuration Problems
Posted by André Warnier <aw...@ice-sa.com>.
Dragon wrote:
>
>> I am waiting impatiently for the Windows Apache version's "cute
>> paperclip popup assistant" to show up.
>
> Apache isn't a Microsoft product, this statement is just absurd and I
> think a bit insulting to the Apache developers.
>
> Dragon
>
Without the preceding bit, it is taken a bit out of context.
Nevertheless, you are right.
The statement above was out of line and unjustified by anything Apache I
have seen so far.
I did not mean it that way, and I really apologise to the Apache
developers for any such perception.
Apache is a package which I have used as a fundamental tool for at least
10 years, on more platforms than I can remember, and with no serious
problem that I can remember. I could not have done without, and still
could not.
It is definitely the greatest general-usage open-source application in
existence, and I want to express my thanks for it, and reiterate my
deepest apologies to the entire Apache team for even suggesting the
stupid thing above.
I my own defense, I think it was a knee-jerk reaction to a previous
comment, and to some things I have lately seen appearing in Windows
versions of some (other) open-source packages in their Windows
incarnations, such as the by-default settings that download and install
updates without asking.
André
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Configuration Problems
Posted by Dragon <dr...@crimson-dragon.com>.
André Warnier did speak thusly:
>You might not be aware that in non-US/UK
>versions of Windows, this will also be
>different, such as "Dokumente und Einstellunge",
>"Documentos y Parametros", and so on.
>Also "Program Files" becomes variously
>"Programme", "Archivos de Programa", "Fichiers
>de Programmes", and "Application Data" becomes
>"Datos de Programa", "Anwendungsdaten" and so on.
>I do not know where your classroom work takes
>places, nor if there is any concern about
>distributing these settings or instructions to a
>multi-lingual audience that might be using other
>that US/UK versions of Windows. But if there
>is, you might want to take this into account, or it might well confuse some.
The localization issues should be handled by
using the correct tokens in the installation
script that represent the proper directories in
the installation hierarchy. All of the current
Windows installation tools (either Microsoft
written or third party) have tools to properly
handle the installation if these are used. The
issue comes more so in documenting things in
print than in installing them. I can only assume
that the Apache developers have done the right
thing so it gets installed where it should and there is no issue with this.
While some people may not like Microsoft's
conventional file layout, it is well supported in
the tools used to package distributions. Not to
mention that most installation scripts I have
seen give you the option of placing it in the
default location or in a location you choose if you don't like the default.
>The fact the MS uses a conventional MS way to do
>things, does not necessarily mean that everyone else has to blindly follow it.
No, it doesn't, but when the expectation of the
majority of users is that certain things will be
found in certain places, why should you surprise
them? The principal of "least surprise" is a good one to follow.
I use Windows on my own machines both at home and
for work, I EXPECT programs to be installed in
the Program Files directory and not in the root
directory or any non-standard location. I also
work on a variety of other servers on other
platforms and I generally leave things in their
default locations to make support easier. The
only times I don't do this is if I have a damn good reason to make changes.
>Particularly open-source packages and
>particularly for such packages as Apache, where
>the audience almost by default is the world at large.
A moot point if the installation script in the
distribution was properly set up. Again, I expect
the developers publiching the Apache Windows
distribution were savvy enough to do so.
>There is a creeping tendency to do so however.
Let me ask you this... if you are running a
distribution like Ubuntu or RHEL, are you going
to follow their file hierarchy or are you going
to decide it is all wrong and do it your own way?
Each OS has a standard for where things live,
Microsoft is no different from any other OS
vendor in that they too have a standard. Whether
you like how they do it or not is all personal preference.
>I am waiting impatiently for the Windows Apache
>version's "cute paperclip popup assistant" to show up.
Apache isn't a Microsoft product, this statement
is just absurd and I think a bit insulting to the Apache developers.
Dragon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Configuration Problems
Posted by André Warnier <aw...@ice-sa.com>.
William A. Rowe, Jr. wrote:
> André Warnier wrote:
>>
>> Not knowing Vista, I have not much to contribute,
>
> the bit of information you are missing is file permissions and UAC (User
> Access Control). Clearly a file permission problem, because it didn't
> silently accept their change as a private copy that the system would
> ignore. Run notepad (for example) "as administrator" and the file can
> be modified; alternately run
>
>> but a little bit of advice :
>>
>> Re : C:\Program Files\Apache Software
>> Foundation\Apache2.2\conf\httpd.conf
>>
>> If you are really at the beginning, and if this is not forbidden in
>> Vista, I would suggest to de-install your Apache package, and
>> re-install it in a directory such as "C:\Apache2.2" or even "C:\Apache2".
>> That will take you 5 minutes now, and save you later many keystrokes,
>> many typos and many headaches.
>
> No argument. I've determined to do this for my classroom work, since
> students copying from an overhead are prone to mistype. The permissions
> may be prickly though,
>
>> Paths with spaces in them bite you sooner or later, and that one is
>> really terrible. Can't even paste it into an email without wrapping it
>> around.
>> And think of your <Directory> sections in your httpd.conf later..
>
> Two points. Quote the pathnames, it's trivial. Secondly, try ^C/^V,
> it spares you a ton of embarrassment. (It has for me.)
I was thinking of sections like
<Directory "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs">
do something
</Directory>
<Directory "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/public">
do something else
</Directory>
<Directory "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/private/BankData">
do something else
</Directory>
etc.... Even with copy-and-paste and quotes, it quickly becomes a pain.
And spaces in paths will give you headaches, as soon as you start doing
more advanced things such a rewriting URLs for instance.
>
>> I really don't know why the Apache Windows package creators embed such
>> a terrible path by default in that installer.
>
> Because c:\ pollution is even worse, and MS choose the convention, not us.
> Give me a break and complain to them.
>
> The next solution will be worse. The proper solution is that the actual
> configuration is a per-user mess living in a tree that is named;
>
> c:\Users[*]\Application Data\Apache Software Foundation\Apache2.2\
>
> [*] Documents and Settings for all you poor XP/2003/NT users
>
You might not be aware that in non-US/UK versions of Windows, this will
also be different, such as "Dokumente und Einstellunge", "Documentos y
Parametros", and so on.
Also "Program Files" becomes variously "Programme", "Archivos de
Programa", "Fichiers de Programmes", and "Application Data" becomes
"Datos de Programa", "Anwendungsdaten" and so on.
I do not know where your classroom work takes places, nor if there is
any concern about distributing these settings or instructions to a
multi-lingual audience that might be using other that US/UK versions of
Windows. But if there is, you might want to take this into account, or
it might well confuse some.
The fact the MS uses a conventional MS way to do things, does not
necessarily mean that everyone else has to blindly follow it.
Particularly open-source packages and particularly for such packages as
Apache, where the audience almost by default is the world at large.
There is a creeping tendency to do so however. I am waiting impatiently
for the Windows Apache version's "cute paperclip popup assistant" to
show up.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Configuration Problems
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
André Warnier wrote:
>
> Not knowing Vista, I have not much to contribute,
the bit of information you are missing is file permissions and UAC (User
Access Control). Clearly a file permission problem, because it didn't
silently accept their change as a private copy that the system would
ignore. Run notepad (for example) "as administrator" and the file can
be modified; alternately run
> but a little bit of advice :
>
> Re : C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
>
> If you are really at the beginning, and if this is not forbidden in
> Vista, I would suggest to de-install your Apache package, and re-install
> it in a directory such as "C:\Apache2.2" or even "C:\Apache2".
> That will take you 5 minutes now, and save you later many keystrokes,
> many typos and many headaches.
No argument. I've determined to do this for my classroom work, since
students copying from an overhead are prone to mistype. The permissions
may be prickly though,
> Paths with spaces in them bite you sooner or later, and that one is
> really terrible. Can't even paste it into an email without wrapping it
> around.
> And think of your <Directory> sections in your httpd.conf later..
Two points. Quote the pathnames, it's trivial. Secondly, try ^C/^V,
it spares you a ton of embarrassment. (It has for me.)
> I really don't know why the Apache Windows package creators embed such a
> terrible path by default in that installer.
Because c:\ pollution is even worse, and MS choose the convention, not us.
Give me a break and complain to them.
The next solution will be worse. The proper solution is that the actual
configuration is a per-user mess living in a tree that is named;
c:\Users[*]\Application Data\Apache Software Foundation\Apache2.2\
[*] Documents and Settings for all you poor XP/2003/NT users
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Configuration Problems
Posted by André Warnier <aw...@ice-sa.com>.
Xpert Advice wrote:
[...]
Hi.
Not knowing Vista, I have not much to contribute, but a little bit of
advice :
Re : C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
If you are really at the beginning, and if this is not forbidden in
Vista, I would suggest to de-install your Apache package, and re-install
it in a directory such as "C:\Apache2.2" or even "C:\Apache2".
That will take you 5 minutes now, and save you later many keystrokes,
many typos and many headaches.
Paths with spaces in them bite you sooner or later, and that one is
really terrible. Can't even paste it into an email without wrapping it
around.
And think of your <Directory> sections in your httpd.conf later..
I really don't know why the Apache Windows package creators embed such a
terrible path by default in that installer.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org