You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by florent larose <fl...@hotmail.com> on 2012/02/14 10:13:33 UTC

[users@httpd] checking my httpd.conf


hello,
i 'm installing ZendFrameworkans i need to check my httpd.conf
here is my file for checking
Note : I did modifications on the following line codes :
line 945 and line 959 to line 969
(indded i want to have my localhost redirect to a virtual host
: the servername is "quickstat.local" with a redirection to entry 
"127.0.0.1" at port 80)
is there a problem with my httpd.conf file ?
Thanks for your help.

(my apache version : 2.0.63)
 		 	   		  

[users@httpd] checking my httpd.conf

Posted by florent larose <fl...@hotmail.com>.
ok that works!
Thanks a lot.

From: yehuda@ymkatz.net
Date: Tue, 14 Feb 2012 14:28:07 -0500
To: users@httpd.apache.org
Subject: Re: [users@httpd] checking my httpd.conf

On Tue, Feb 14, 2012 at 2:22 PM, florent larose <fl...@hotmail.com> wrote:






well apache_error.log ->
[Tue Feb 14 20:05:05 2012] [notice] Apache/2.0.63 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Feb 14 20:05:05 2012] [notice] Server built: Jan 17 2008 22:58:29
[Tue Feb 14 20:05:06 2012] [notice] Parent: Created child process 2488


[Tue Feb 14 20:05:06 2012] [notice] Child 2488: Child process is running
[Tue Feb 14 20:05:06 2012] [notice] Child 2488: Acquired the start mutex.
[Tue Feb 14 20:05:06 2012] [notice] Child 2488: Starting 250 worker threads.


[Tue Feb 14 20:05:09 2012] [alert] [client 127.0.0.1] C:/Program Files/Zend/ZendFramework-1.11.11/quick/public/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration



That is the message I obtain after i launch Apache for the last time.

You need to enable mod_rewrite:Around line 164 of httpd.conf, remove the '#' at the beginning of the line so that it says

LoadModule rewrite_module modules/mod_rewrite.so

Then restart the webserver.
- Y 		 	   		  

Re: [users@httpd] checking my httpd.conf

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Tue, Feb 14, 2012 at 2:22 PM, florent larose
<fl...@hotmail.com>wrote:

>  well apache_error.log ->
> [Tue Feb 14 20:05:05 2012] [notice] Apache/2.0.63 (Win32) PHP/5.2.6
> configured -- resuming normal operations
> [Tue Feb 14 20:05:05 2012] [notice] Server built: Jan 17 2008 22:58:29
> [Tue Feb 14 20:05:06 2012] [notice] Parent: Created child process 2488
> [Tue Feb 14 20:05:06 2012] [notice] Child 2488: Child process is running
> [Tue Feb 14 20:05:06 2012] [notice] Child 2488: Acquired the start mutex.
> [Tue Feb 14 20:05:06 2012] [notice] Child 2488: Starting 250 worker
> threads.
> [Tue Feb 14 20:05:09 2012] [alert] [client 127.0.0.1] C:/Program
> Files/Zend/ZendFramework-1.11.11/quick/public/.htaccess: Invalid command
> 'RewriteEngine', perhaps mis-spelled or defined by a module not included in
> the server configuration
>
> That is the message I obtain after i launch Apache for the last time.
>

You need to enable mod_rewrite:
Around line 164 of httpd.conf, remove the '#' at the beginning of the line
so that it says

> LoadModule rewrite_module modules/mod_rewrite.so

Then restart the webserver.

- Y

[users@httpd] checking my httpd.conf

Posted by florent larose <fl...@hotmail.com>.
well apache_error.log ->
[Tue Feb 14 20:05:05 2012] [notice] Apache/2.0.63 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Feb 14 20:05:05 2012] [notice] Server built: Jan 17 2008 22:58:29
[Tue Feb 14 20:05:06 2012] [notice] Parent: Created child process 2488
[Tue Feb 14 20:05:06 2012] [notice] Child 2488: Child process is running
[Tue Feb 14 20:05:06 2012] [notice] Child 2488: Acquired the start mutex.
[Tue Feb 14 20:05:06 2012] [notice] Child 2488: Starting 250 worker threads.
[Tue Feb 14 20:05:09 2012] [alert] [client 127.0.0.1] C:/Program Files/Zend/ZendFramework-1.11.11/quick/public/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration

That is the message I obtain after i launch Apache for the last time.

Concerning httpd.conf, here the line codes I modified :

<VirtualHost 127.0.0.1>
    ServerName quickstart.local
    DocumentRoot "c:\Program Files\Zend\ZendFramework-1.11.11\quick\public"
    
    SetEnv APPLICATION_ENV "development"
    
    <Directory "c:\Program Files\Zend\ZendFramework-1.11.11\quick\public">
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from All
    </Directory>
</VirtualHost>



From: yehuda@ymkatz.net
Date: Tue, 14 Feb 2012 14:04:55 -0500
To: users@httpd.apache.org
Subject: Re: [users@httpd] checking my httpd.conf

On Tue, Feb 14, 2012 at 1:55 PM, florent larose <fl...@hotmail.com> wrote:






ok for precedent checking...  -> Apache -t (syntax ok)
Now that my httpd .conf file is well configured, I launch 
my server and i have the internal Server Error 500 :
"The server encountered an internal error or
misconfiguration and was unable to complete
your request"

So it still no good... (the redirection of my localhost does not work despite my httpd.conf file is good !)
So what does your error_log (c:/wamp/logs/apache_error.log according to your httpd.conf) say?

 		 	   		  

Re: [users@httpd] checking my httpd.conf

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Tue, Feb 14, 2012 at 1:55 PM, florent larose
<fl...@hotmail.com>wrote:

>  ok for precedent checking...  -> Apache -t (syntax ok)
> Now that my httpd .conf file is well configured, I launch
> my server and i have the internal Server Error 500 :
> "The server encountered an internal error or misconfiguration and was
> unable to complete your request"
>
> So it still no good... (the redirection of my localhost does not work
> despite my httpd.conf file is good !)
>

So what does your error_log (c:/wamp/logs/apache_error.log according to
your httpd.conf) say?

[users@httpd] checking my httpd.conf

Posted by florent larose <fl...@hotmail.com>.
ok for precedent checking...  -> Apache -t (syntax ok)
Now that my httpd .conf file is well configured, I launch 
my server and i have the internal Server Error 500 :
"The server encountered an internal error or
misconfiguration and was unable to complete
your request"

So it still no good... (the redirection of my localhost does not work despite my httpd.conf file is good !)





From: florent.larose@hotmail.com
To: users@httpd.apache.org
Date: Tue, 14 Feb 2012 17:44:32 +0000
Subject: [users@httpd] checking my httpd.conf







Well, 
I try to check my httpd.conf file with the command:
Apache -t
Now i obtain the following error message :
"syntax error on line 961 of c:\wamp\bin\apache\apache2.0.63\conf\httpd.conf -- it is my httpd.conf path
: DocumentRoot takes one argument, Root directory of the document tree"

What does it mean ? what must I do ?
Thanks for your help.


> Date: Tue, 14 Feb 2012 14:16:17 +0100
> From: fedora@ayni.com
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] checking my httpd.conf
> 
> Hi Florent
> give your apache-binary the -t parameter, and it will check your config 
> files for correctnes. e.g.
> 
> httpd -t
> or
> apache2 -t
> 
> suomi
> 
> On 02/14/2012 10:13 AM, florent larose wrote:
> >
> > hello,
> > i 'm installing ZendFrameworkans i need to check my httpd.conf
> > here is my file for checking
> > Note : I did modifications on the following line codes :
> > line 945 and line 959 to line 969
> > (indded i want to have my localhost redirect to a virtual host
> > : the servername is "quickstat.local" with a redirection to entry
> > "127.0.0.1" at port 80)
> > is there a problem with my httpd.conf file ?
> > Thanks for your help.
> >
> > (my apache version : 2.0.63)
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> 
> ---------------------------------------------------------------------
> 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
> 
 		 	   		   		 	   		  

[users@httpd] checking my httpd.conf

Posted by florent larose <fl...@hotmail.com>.
Thanks for your rapid response
to answer your question my DocumentRoot as it appears in my httpd.conf file :
DocumentRoot c:\Program Files\Zend\ZendFramework-1.11.11\quick\public

Is it correct?
Thanks for your help.

From: yehuda@ymkatz.net
Date: Tue, 14 Feb 2012 12:47:28 -0500
To: users@httpd.apache.org
Subject: Re: [users@httpd] checking my httpd.conf

On Tue, Feb 14, 2012 at 12:44 PM, florent larose <fl...@hotmail.com> wrote:






Well, 
I try to check my httpd.conf file with the command:
Apache -t
Now i obtain the following error message :
"syntax error on line 961 of c:\wamp\bin\apache\apache2.0.63\conf\httpd.conf -- it is my httpd.conf path


: DocumentRoot takes one argument, Root directory of the document tree"

What does it mean ? what must I do ?
Thanks for your help.

What does that line in httpd.conf actually say? (Hint: use a program like Notepad++ that has a Go-To-Line-Number___ feature.)


If I had to guess, your DocumentRoot has a space in it, so you need to make sure the whole thing is in quotes.
- Y  		 	   		  

Re: [users@httpd] checking my httpd.conf

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Tue, Feb 14, 2012 at 12:47 PM, Yehuda Katz <ye...@ymkatz.net> wrote:

> On Tue, Feb 14, 2012 at 12:44 PM, florent larose <
> florent.larose@hotmail.com> wrote:
>
>>  Well,
>> I try to check my httpd.conf file with the command:
>> Apache -t
>> Now i obtain the following error message :
>> "syntax error on line 961 of
>> c:\wamp\bin\apache\apache2.0.63\conf\httpd.conf -- it is my httpd.conf path
>> : DocumentRoot takes one argument, Root directory of the document tree"
>>
>> What does it mean ? what must I do ?
>> Thanks for your help.
>>
>
> What does that line in httpd.conf actually say? (Hint: use a program like
> Notepad++ that has a Go-To-Line-Number___ feature.)
>
> If I had to guess, your DocumentRoot has a space in it, so you need to
> make sure the whole thing is in quotes.
>

Forget the guess, my anti-virus had removed your original attachment
because it had a "Unknown Type".
Usually on Windows, you convert the backslashes to forward slashes and put
the whole thing in quotes:

<VirtualHost 127.0.0.1>
>     ServerName quickstart.local
> DocumentRoot "C:/Program Files/Zend/ZendFramework-1.11.11/quick/public"
>  SetEnv APPLICATION_ENV "development"
> <Directory  "C:/Program Files/Zend/ZendFramework-1.11.11/quick/public" >
> DirectoryIndex index.php
>  AllowOverride All
> Order allow, deny
> Allow from All
>  </Directory>
> </VirtualHost>

Re: [users@httpd] checking my httpd.conf

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Tue, Feb 14, 2012 at 12:44 PM, florent larose <florent.larose@hotmail.com
> wrote:

>  Well,
> I try to check my httpd.conf file with the command:
> Apache -t
> Now i obtain the following error message :
> "syntax error on line 961 of
> c:\wamp\bin\apache\apache2.0.63\conf\httpd.conf -- it is my httpd.conf path
> : DocumentRoot takes one argument, Root directory of the document tree"
>
> What does it mean ? what must I do ?
> Thanks for your help.
>

What does that line in httpd.conf actually say? (Hint: use a program like
Notepad++ that has a Go-To-Line-Number___ feature.)

If I had to guess, your DocumentRoot has a space in it, so you need to make
sure the whole thing is in quotes.

- Y

[users@httpd] checking my httpd.conf

Posted by florent larose <fl...@hotmail.com>.
Well, 
I try to check my httpd.conf file with the command:
Apache -t
Now i obtain the following error message :
"syntax error on line 961 of c:\wamp\bin\apache\apache2.0.63\conf\httpd.conf -- it is my httpd.conf path
: DocumentRoot takes one argument, Root directory of the document tree"

What does it mean ? what must I do ?
Thanks for your help.


> Date: Tue, 14 Feb 2012 14:16:17 +0100
> From: fedora@ayni.com
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] checking my httpd.conf
> 
> Hi Florent
> give your apache-binary the -t parameter, and it will check your config 
> files for correctnes. e.g.
> 
> httpd -t
> or
> apache2 -t
> 
> suomi
> 
> On 02/14/2012 10:13 AM, florent larose wrote:
> >
> > hello,
> > i 'm installing ZendFrameworkans i need to check my httpd.conf
> > here is my file for checking
> > Note : I did modifications on the following line codes :
> > line 945 and line 959 to line 969
> > (indded i want to have my localhost redirect to a virtual host
> > : the servername is "quickstat.local" with a redirection to entry
> > "127.0.0.1" at port 80)
> > is there a problem with my httpd.conf file ?
> > Thanks for your help.
> >
> > (my apache version : 2.0.63)
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> 
> ---------------------------------------------------------------------
> 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] checking my httpd.conf

Posted by fedora <fe...@ayni.com>.
Hi Florent
give your apache-binary the -t parameter, and it will check your config 
files for correctnes. e.g.

httpd -t
or
apache2 -t

suomi

On 02/14/2012 10:13 AM, florent larose wrote:
>
> hello,
> i 'm installing ZendFrameworkans i need to check my httpd.conf
> here is my file for checking
> Note : I did modifications on the following line codes :
> line 945 and line 959 to line 969
> (indded i want to have my localhost redirect to a virtual host
> : the servername is "quickstat.local" with a redirection to entry
> "127.0.0.1" at port 80)
> is there a problem with my httpd.conf file ?
> Thanks for your help.
>
> (my apache version : 2.0.63)
>
>
>
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
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