Page 1 of 1

Trying to install SSL, please help. scratching head!!

Posted: Tue Nov 16, 2004 12:47 am
by myleow
I installing Apache 1.3.29 and mod_ssl 2.8.x (whichever is latest with FreeBSD 4.10)

I am getting error saying the php5.so will crash in EAPI.

Code: Select all

їMon Nov 15 22:44:55 2004] їwarn] Loaded DSO libexec/apache/libphp5.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
At first i had Apache 1.3.33, PHP5, OpenSSL installed. Then i read a Tutorial if i want SSL, i would need to use Apache 1.3.29+Mod SSL and that i would need to reinstall. Don't think that is true now, but i done that. Now i get this warning.

I install through ports by make install in their respective ports directory.

+++++++++++++++

Using my old httpd.conf, even with the warning Apache still runs.

After i entered the SSL related settings into the conf file, it fails to run.

Could you look and see what is wrong with it please.

Code: Select all

##
##  SSL Support
##
##  When we also provide SSL we have to listen to the
##  standard HTTP port (see above) and to the HTTPS port
##
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

##
##  SSL Global Context
##
##  All SSL configuration in this context applies both to
##  the main server and all SSL-enabled virtual hosts.
##

#
#   Some MIME-types for downloading Certificates and CRLs
#
<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
</IfDefine>

<IfModule mod_ssl.c>
SSLPassPhraseDialog  builtin
SSLSessionCache         dbm:/var/log/ssl_scache
SSLSessionCacheTimeout  300
SSLMutex  file:logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog      /var/log/ssl_engine_log
SSLLogLevel info
</IfModule>

<IfDefine SSL>

##
## SSL Virtual Host Context
##

<VirtualHost www.company.com:443>

DocumentRoot "/usr/local/www/data"
ServerName www.company.com
ServerAdmin webmaster@company.com
ErrorLog /var/log/ssl_error_log
TransferLog /var/log/ssl_access_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/etc/apache/ssl.crt/www.company.com.crt
SSLCertificateKeyFile /usr/local/etc/apache/ssl.key/www.company.com.key

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/www/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog /var/log/ssl_request_log \
          "%t %h %&#123;SSL_PROTOCOL&#125;x %&#123;SSL_CIPHER&#125;x "%r" %b"

</VirtualHost>

</IfDefine>
Thank you in advance.

Regards
Mian

Posted: Tue Nov 16, 2004 12:48 am
by myleow
If anyone uses Apache + SSL + PHP5 on FreeBSD, please give me some advise on how to install the thing.

Posted: Tue Nov 16, 2004 12:47 pm
by myleow
no one can help?