Apache-SSL has been installed on our Linux server (Redhat 6.2).

Created test certificate Key and CSR.

I created a test index.html and index.php in
/home/httpd/html

https://nn.nn.nn.nn/index.php

Says Page cannot be displayed.

The error log file says :
[Fri Oct 19 10:53:07 2001]
/usr/local/apache/bin/gcache started
[Fri Oct 19 10:53:07 2001] [crit] (98)Address already
in use: make_sock: could n
ot bind to port 80

The httpd.conf file has the following Virtual host
entry

<VirtualHost nn.nn.nn.nn:443>
SSLEnable
Port 443
ServerName nn.nn.nn.nn
ServerAdmin webmaster@domain_name.com
DocumentRoot /home/httpd/html
ServerAlias domain_name.com
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
TransferLog
/usr/local/apache/logs/domain_name.com_access.log
ErrorLog
/usr/local/apache/logs/domain_name.com_error.log
SSLCACertificateFile

/usr/local/ssl/certs/domain_name.com.crt
SSLCertificateFile

/usr/local/ssl/certs/domain_name.com.crt
SSLCertificateKeyFile
/usr/local/ssl/private/domain_name.com.key
</VirtualHost>

Now, what is missing ? What am I doing wrong ?

Why the httpsdctl looks for httpd.conf and not
httpsd.conf file. Does it matter if it is httpd.conf
on a secured server - Apache-SSL ?

Thank, you.
Brij.

    [Fri Oct 19 10:53:07 2001] [crit] (98)Address
    already in use: make_sock: could not bind to
    port 80

    Sounds like apache's or another web server's already running, try stoping that and then starting apache, you should only need to start it once for both ssl and non-ssl functionality.
    To find out what has that port, run "fuser -v http/tcp" as root.

      I killed all the processes that showed http

      When I start Apache-ssl this way
      /usr/local/apache/bin//httpsdctl start

      it tells me
      Reading key for server nn.nn.nn.nn:443
      Enter PEM pass phrase:
      Launching... /usr/local/apache/bin/gcache
      pid=2932
      /usr/local/apache/bin//httpsdctl start: httpsd started

      But httpsd has not started. i can't see in the process list.

      Sample Error Log File :
      [Fri Oct 19 17:19:39 2001] [crit] (22)Invalid argument: Error reading private ke
      y file /usr/local/ssl/private/domain_name.com.key:
      [Fri Oct 19 17:19:39 2001] [crit] error:0906406D๐Ÿ˜›EM routines๐Ÿ˜ƒEF_CALLBACK:probl
      ems getting password
      [Fri Oct 19 17:19:39 2001] [crit] error:0906A068๐Ÿ˜›EM routines๐Ÿ˜›EM_do_header:bad
      password read
      [Fri Oct 19 17:29:05 2001] /usr/local/apache/bin/gcache started
      [Fri Oct 19 17:29:05 2001] [warn] pid file /usr/local/apache/logs/httpsd.pid ove
      rwritten -- Unclean shutdown of previous Apache run?
      [Fri Oct 19 17:29:05 2001] [crit] (22)Invalid argument: Error reading private ke
      y file /usr/local/ssl/private/domain_name.com.key:
      [Fri Oct 19 17:29:05 2001] [crit] error:0906406D๐Ÿ˜›EM routines๐Ÿ˜ƒEF_CALLBACK:probl
      ems getting password
      [Fri Oct 19 17:29:05 2001] [crit] error:0906A068๐Ÿ˜›EM routines๐Ÿ˜›EM_do_header:bad
      password read

      The PEM pass phrase in accepted successfully when starting httpsdctl start

      httpd.conf file

      SSLCacheServerPath /usr/local/apache/bin/gcache
      SSLCacheServerPort /var/cache/httpd/domain_name.com.cache.socket
      SSLSessionCacheTimeout 300

      What should the SSLCacheServerPort entry have, a port number or the cache like above ?

      Still the page is not being displayed on the browser thru https:// or http://

      What is the problem ?

      Thank you, for helping me out.

      Brij.

        9 months later

        i jsut caused this problem on my system, and i've yet to find a solution online.. per various tools it doesn't look like anything has the port in use... I removed my changes and restored origional config for apache... and rebooted and .. ๐Ÿ™ nada...

          apparently iff u have "Listen <port#>" multiple times in the file (copy paste mixup) it won't start cause it is already listening by the second time it is called.

            Write a Reply...