Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

checking my httpd.conf

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


florent.larose at hotmail

Feb 14, 2012, 1:13 AM

Post #1 of 11 (1301 views)
Permalink
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)
Attachments: httpd.conf (33.9 KB)


fedora at ayni

Feb 14, 2012, 5:16 AM

Post #2 of 11 (1280 views)
Permalink
Re: checking my httpd.conf [In reply to]

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 [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd

---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


florent.larose at hotmail

Feb 14, 2012, 9:44 AM

Post #3 of 11 (1277 views)
Permalink
checking my httpd.conf [In reply to]

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 [at] ayni
> To: users [at] httpd
> Subject: Re: [users [at] http] 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 [at] httpd
> > " from the digest: users-digest-unsubscribe [at] httpd
> > For additional commands, e-mail: users-help [at] httpd
>
> ---------------------------------------------------------------------
> 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 [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>


yehuda at ymkatz

Feb 14, 2012, 9:47 AM

Post #4 of 11 (1273 views)
Permalink
Re: checking my httpd.conf [In reply to]

On Tue, Feb 14, 2012 at 12:44 PM, florent larose <florent.larose [at] hotmail
> 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


florent.larose at hotmail

Feb 14, 2012, 9:53 AM

Post #5 of 11 (1281 views)
Permalink
checking my httpd.conf [In reply to]

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 [at] ymkatz
Date: Tue, 14 Feb 2012 12:47:28 -0500
To: users [at] httpd
Subject: Re: [users [at] http] checking my httpd.conf

On Tue, Feb 14, 2012 at 12:44 PM, florent larose <florent.larose [at] hotmail> 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


yehuda at ymkatz

Feb 14, 2012, 9:54 AM

Post #6 of 11 (1272 views)
Permalink
Re: checking my httpd.conf [In reply to]

On Tue, Feb 14, 2012 at 12:47 PM, Yehuda Katz <yehuda [at] ymkatz> wrote:

> On Tue, Feb 14, 2012 at 12:44 PM, florent larose <
> florent.larose [at] hotmail> 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>


florent.larose at hotmail

Feb 14, 2012, 10:55 AM

Post #7 of 11 (1274 views)
Permalink
checking my httpd.conf [In reply to]

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 [at] hotmail
To: users [at] httpd
Date: Tue, 14 Feb 2012 17:44:32 +0000
Subject: [users [at] http] 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 [at] ayni
> To: users [at] httpd
> Subject: Re: [users [at] http] 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 [at] httpd
> > " from the digest: users-digest-unsubscribe [at] httpd
> > For additional commands, e-mail: users-help [at] httpd
>
> ---------------------------------------------------------------------
> 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 [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>


yehuda at ymkatz

Feb 14, 2012, 11:04 AM

Post #8 of 11 (1269 views)
Permalink
Re: checking my httpd.conf [In reply to]

On Tue, Feb 14, 2012 at 1:55 PM, florent larose
<florent.larose [at] hotmail>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?


florent.larose at hotmail

Feb 14, 2012, 11:22 AM

Post #9 of 11 (1288 views)
Permalink
checking my httpd.conf [In reply to]

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 [at] ymkatz
Date: Tue, 14 Feb 2012 14:04:55 -0500
To: users [at] httpd
Subject: Re: [users [at] http] checking my httpd.conf

On Tue, Feb 14, 2012 at 1:55 PM, florent larose <florent.larose [at] hotmail> 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?


yehuda at ymkatz

Feb 14, 2012, 11:28 AM

Post #10 of 11 (1271 views)
Permalink
Re: checking my httpd.conf [In reply to]

On Tue, Feb 14, 2012 at 2:22 PM, florent larose
<florent.larose [at] hotmail>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


florent.larose at hotmail

Feb 14, 2012, 11:48 AM

Post #11 of 11 (1272 views)
Permalink
checking my httpd.conf [In reply to]

ok that works!
Thanks a lot.

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

On Tue, Feb 14, 2012 at 2:22 PM, florent larose <florent.larose [at] hotmail> 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

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.