You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Evan Platt <ev...@espphotography.com> on 2006/12/07 04:05:56 UTC

[users@httpd] Apache quit on me all of a sudden?

Had a good working Apache 2.2.3 on os/x..

Won't start now.

Error:
# httpd -dssl -k start
httpd: Could not open configuration file ssl/conf/httpd.conf: No such
file or directory

No indication of where ssl/conf is - ie my docroot is /Library/Apache2
.Tried every possibility I could think of.

Upon reboot now, I get

Syntax error on line 38 of /Library/Apache2/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module
not included in the server configuration

(Full line is SSLEngine On'.)

Reinstalled Apache with
./configure --enable-mods-shared=most --prefix=/Library/Apache2
--enable-ssl

Any idea what happened? Was running fine a few days ago with no
changes (that I know of)..

Thanks.


Evan


---------------------------------------------------------------------
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] Apache quit on me all of a sudden?

Posted by Sander Temme <sc...@apache.org>.
On Dec 7, 2006, at 11:19 PM, Evan Platt wrote:

> Now, error is httpd: Syntax error on line 327 of /Library/Apache2/ 
> conf/httpd.conf: Cannot load /Library/Apache2/modules/mod_access.so  
> into server: cannot create object file image or add library
> mod_access.so is missing.

Mod_access has been renamed to mod_authz_host. See:

http://httpd.apache.org/docs/2.2/upgrading.html

When you install a new version over an existing installation, the  
existing configuration files are preserved, incompatibilities and all.

S.

-- 
sctemme@apache.org            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



Re: [users@httpd] Apache quit on me all of a sudden?

Posted by Evan Platt <ev...@espphotography.com>.
At 08:34 AM 12/7/2006, you wrote:
>At 10:33 PM 12/6/2006, you wrote:
>>That'll run the first httpd found in your PATH. On a plain vanilla
>>MacOSX installation, that is the httpd 1.3.33 that Apple supplies.
>>However, you must have something else there since 1.3.33 doesn't
>>recognize the -k flag.
>
>AFAIK, I've removed the Apple version. I'm using 2.2.3.
>
>
>>When you run /Library/Apache2/bin/httpd -l, is mod_ssl.c in the list?
>
>Hmm.. No.
>Compiled in modules:
>   core.c
>   prefork.c
>   http_core.c
>   mod_so.c
>
>
>>If not, is there a mod_ssl.so in the modules subdirectory? Do you
>>have a LoadModule line for that?
>
>Yep: 776 mod_ssl.so
>LoadModule ssl_module modules/mod_ssl.so

Reinstalled 2.2.3 from source.

Now, error is httpd: Syntax error on line 327 of 
/Library/Apache2/conf/httpd.conf: Cannot load 
/Library/Apache2/modules/mod_access.so into server: cannot create 
object file image or add library
mod_access.so is missing.

I ./configured with
>--enable-mods-shared=most --prefix=/Library/Apache2 --enable-ssl

Is there a better configure options I should be using? 


---------------------------------------------------------------------
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] Apache quit on me all of a sudden?

Posted by Evan Platt <ev...@espphotography.com>.
At 10:33 PM 12/6/2006, you wrote:
>That'll run the first httpd found in your PATH. On a plain vanilla
>MacOSX installation, that is the httpd 1.3.33 that Apple supplies.
>However, you must have something else there since 1.3.33 doesn't
>recognize the -k flag.

AFAIK, I've removed the Apple version. I'm using 2.2.3.


>When you run /Library/Apache2/bin/httpd -l, is mod_ssl.c in the list?

Hmm.. No.
Compiled in modules:
   core.c
   prefork.c
   http_core.c
   mod_so.c


>If not, is there a mod_ssl.so in the modules subdirectory? Do you
>have a LoadModule line for that?

Yep: 776 mod_ssl.so
LoadModule ssl_module modules/mod_ssl.so



>What do you get when you run /Library/Apache2/bin/httpd -V ? Feel
>free to paste us the output.

Server version: Apache/2.2.3
Server built:   Dec  7 2006 07:46:10
Server's Module Magic Number: 20051115:3
Server loaded:  APR 1.2.2, APR-Util 1.2.2
Compiled using: APR 1.2.2, APR-Util 1.2.2
Architecture:   32-bit
Server MPM:     Prefork
   threaded:     no
     forked:     yes (variable process count)
Server compiled with....
  -D APACHE_MPM_DIR="server/mpm/prefork"
  -D APR_HAS_MMAP
  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
  -D APR_USE_SYSVSEM_SERIALIZE
  -D APR_USE_PTHREAD_SERIALIZE
  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  -D APR_HAS_OTHER_CHILD
  -D AP_HAVE_RELIABLE_PIPED_LOGS
  -D DYNAMIC_MODULE_LIMIT=128
  -D HTTPD_ROOT="/Library/Apache2"
  -D SUEXEC_BIN="/Library/Apache2/bin/suexec"
  -D DEFAULT_PIDLOG="logs/httpd.pid"
  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
  -D DEFAULT_LOCKFILE="logs/accept.lock"
  -D DEFAULT_ERRORLOG="logs/error_log"
  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
  -D SERVER_CONFIG_FILE="conf/httpd.conf"



>How about otool -L /Library/Apache2/bin/ httpd ?

otool: can't map file: /Library/Apache2/bin/ ((os/kern) invalid argument)
otool: can't open file: httpd (No such file or directory)

>And otool -L /Library/Apache2/modules/mod_ssl.so (if you have
>it)? I to my dismay realize that I'm linking against a libssl and
>libcrypto that Fink plonked into /sw/lib, and would like to know HtH
>that got in my link path... Some autoconf-fu must prefer /sw over / 
>usr or something.


/Library/Apache2/modules/mod_ssl.so:
         /opt/local/lib/libssl.0.9.8.dylib (compatibility version 
0.9.8, current version 0.9.8)
         /opt/local/lib/libcrypto.0.9.8.dylib (compatibility version 
0.9.8, current version 0.9.8)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, 
current version 88.1.7)

Thanks. :)

Evan 


---------------------------------------------------------------------
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] Apache quit on me all of a sudden?

Posted by Sander Temme <sc...@apache.org>.
Evan,

On Dec 6, 2006, at 10:11 PM, Evan Platt wrote:

> now when I run httpd -DSSL -k start, I get
>
> httpd: Could not open configuration file ssl/conf/httpd.conf: No  
> such file or directory

That'll run the first httpd found in your PATH. On a plain vanilla  
MacOSX installation, that is the httpd 1.3.33 that Apple supplies.  
However, you must have something else there since 1.3.33 doesn't  
recognize the -k flag.

> If I specify the directory, I get:
> # /Library/Apache2/bin/httpd -DSSL -k start
> Syntax error on line 38 of /Library/Apache2/conf/httpd.conf:
> Invalid command 'SSLEngine', perhaps misspelled or defined by a  
> module not included in the server configuration.

When you run /Library/Apache2/bin/httpd -l, is mod_ssl.c in the list?  
If not, is there a mod_ssl.so in the modules subdirectory? Do you  
have a LoadModule line for that?

What do you get when you run /Library/Apache2/bin/httpd -V ? Feel  
free to paste us the output. How about otool -L /Library/Apache2/bin/ 
httpd ? And otool -L /Library/Apache2/modules/mod_ssl.so (if you have  
it)? I to my dismay realize that I'm linking against a libssl and  
libcrypto that Fink plonked into /sw/lib, and would like to know HtH  
that got in my link path... Some autoconf-fu must prefer /sw over / 
usr or something.

S.

-- 
sctemme@apache.org            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



Re: [users@httpd] Apache quit on me all of a sudden?

Posted by Evan Platt <ev...@espphotography.com>.
At 09:35 PM 12/6/2006, you wrote:
>You replaced your installed version of OpenSSL, or are trying to start
>the wrong copy of httpd.  You might want to do some searching for
>multiple occurances of the httpd binary.
>
>The fact that SSLEngine isn't recognized indicates a pre-0.9.7 version
>of OpenSSL, or a different build of httpd.

Reinstalled Openssl,

now when I run httpd -DSSL -k start, I get

httpd: Could not open configuration file ssl/conf/httpd.conf: No such 
file or directory

If I specify the directory, I get:
# /Library/Apache2/bin/httpd -DSSL -k start
Syntax error on line 38 of /Library/Apache2/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a 
module not included in the server configuration.


---------------------------------------------------------------------
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] Apache quit on me all of a sudden?

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
You replaced your installed version of OpenSSL, or are trying to start
the wrong copy of httpd.  You might want to do some searching for
multiple occurances of the httpd binary.

The fact that SSLEngine isn't recognized indicates a pre-0.9.7 version
of OpenSSL, or a different build of httpd.

Evan Platt wrote:
> Had a good working Apache 2.2.3 on os/x..
> 
> Won't start now.
> 
> Error:
> # httpd -dssl -k start
> httpd: Could not open configuration file ssl/conf/httpd.conf: No such
> file or directory
> 
> No indication of where ssl/conf is - ie my docroot is /Library/Apache2
> .Tried every possibility I could think of.
> 
> Upon reboot now, I get
> 
> Syntax error on line 38 of /Library/Apache2/conf/httpd.conf:
> Invalid command 'SSLEngine', perhaps misspelled or defined by a module
> not included in the server configuration
> 
> (Full line is SSLEngine On'.)
> 
> Reinstalled Apache with
> ./configure --enable-mods-shared=most --prefix=/Library/Apache2
> --enable-ssl
> 
> Any idea what happened? Was running fine a few days ago with no
> changes (that I know of)..
> 
> Thanks.
> 
> 
> Evan
> 
> 
> ---------------------------------------------------------------------
> 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