logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: auth and SSL prevent httpd 2.4 (win64) from starting
Author
BillAngus



Joined: 20 May 2012
Posts: 7
Location: Maple Ridge, BC Canada

PostPosted: Mon 21 May '12 8:20    Post subject: auth and SSL prevent httpd 2.4 (win64) from starting Reply with quote

httpd (win 64 binaries distro downloaded today) fails to start on windows 7 box when it encounters the following lines... commenting all the auth lines out out allows httpd to parse to the SSL lines in the conf file before failing. Commenting both out does away with auth and SSL... which i need.

I had to reload apache 2.2 which works fine.

-------------
fails when it hits "authtype basic" (yes i loaded the module).
-------------
<Directory "C:/mydir">
require valid-user
AuthType Basic
AuthName "RESTRICTED AREA - LOGIN REQUIRED"
AuthUserFile /.htpasswd
Options all multiviews ExecCGI
Order allow,deny
Allow from all
</Directory>

-----------
fails when it hits SSLSessionCache "shmcb:C:/Php/logs/ssl_scache(512000)"
-----------
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
#Below std entry "builtin" does not work with win32 binaries (solution is to use tiny program to copy
#passphrase to stdout or to decrypt cert using passphrase
# SSLPassPhraseDialog builtin
#
#Hunter's solution for apache2 supports passphrase with exec
SSLPassPhraseDialog "exec:C:/Php/bin/sslinit.exe"
SSLSessionCache "shmcb:C:/Php/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLMutex default

SSLMutex default
</IfModule>
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Mon 21 May '12 11:04    Post subject: Reply with quote

Always good (see forum rules) to give us errors/warnings from the logs ?

What you get when you check the config in a DOS window with: >httpd.exe -t

Do you load mod_socache_shmcb ?

Steffen
Back to top
BillAngus



Joined: 20 May 2012
Posts: 7
Location: Maple Ridge, BC Canada

PostPosted: Mon 21 May '12 18:14    Post subject: Reply with quote

Thanks Steffen: When I checked the config in DOS window it reported failure in line ## of the config file which was the line "authbasic" was on... when i commented out all the auth directives... it died at the SSL statement as listed in the message above..., reporting the line number and quoting the statement

The moduloes were present and were loaded in previous statements in the conf file.

BUT i would agree with you that the behavior of httpd was pretty much what is expected if the requested modules were not being loaded.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Mon 21 May '12 20:21    Post subject: Reply with quote

Not clear in your post if all is working now for you.

With >httpd.exe -t what exact error message did you get ?

Steffen
Back to top


Reply to topic   Topic: auth and SSL prevent httpd 2.4 (win64) from starting View previous topic :: View next topic
Post new topic   Forum Index -> Apache