Installation in arch Linux is very easy, as long as you execute:
# Pacman-sy Apache PHP MySQL OpenSSL
Select y as prompted to install it!
1. Modify the Apache configuration file
By default, Apache does not support PHP. modify the configuration file:
VI/etc/httpd/CONF/httpd. conf
Set
# Loadmodule php5_module lib/Apache/libphp5.so
# Remove:
Loadmodule php5_module lib/Apache/libphp5.so
Because SSL is not enabled by Apache by default, you must:
1) Modify/etc/CONF. d/httpd
Put: httpd_use_ssl = "no"
Changed to: httpd_use_ssl = "yes"
2) generate the key of the CA
# Cd/etc/httpd/Conf
# OpenSSL req-New-X509-newkey RSA: 1024-days 3650-keyout server. Key-out server. CRT
# OpenSSL RSA-in server. Key-out server. Key
3) Modify/etc/httpd/CONF/SSL. conf.
Sslcertificatefile/etc/httpd/CONF/server. CRT
Sslcertificatekeyfile/etc/httpd/CONF/server. Key
Start Apache
/Etc/rc. d/httpd start
2. Start MySQL
/Etc/rc. d/mysqld start
Finally, you can test the Web:
Simple?
Below is my SSL file:
Listen 443.
Addtype application/x-x509-ca-cert. CRT
Addtype applications/x-pkcs7-crl. CRL
Sslpassphrasedialog builtin
Sslsessioncache DBM:/var/log/httpd/ssl_scache
Sslsessioncachetimeout 300
Sslmutex file:/var/log/httpd/ssl_mutex
Sslrandomseed startup builtin
Sslrandomseed connect builtin
# Here I write a direct IP Address
DocumentRoot "/data/blog"
Servername blog.ourlinux.net: 443
Serveradmin bixuan@ourlinux.net
Errorlog/var/log/httpd/blog.ourlinux.net _ 443_error_log
Transferlog/var/log/httpd/blog.ourlinux.net _ 443_access_log
Sslengine on
Sslciphersuite all :! ADH :! Export56: RC4 + RSA: + high: + medium: + low: + SSLv2: + exp: + enull
Sslcertificatefile/etc/httpd/CONF/server. CRT
Sslcertificatekeyfile/etc/httpd/CONF/server. Key
Sslcacertificatepath/etc/httpd/CONF/ssl_blog.ourlinux.net
Sslcacertificatefile/etc/httpd/CONF/server. CRT
Sslverifyclient require
Sslverifydepth 1
Ssloptions + stdenvvars
Ssloptions + stdenvvars
Setenvif User-Agent ". * MSIE .*"\
Nokeepalive SSL-unclean-Shutdown \
Downgrade-1.0 force-response-1.0
Customlog/var/log/httpd/ssl_request_log \
"% T % H % {ssl_protocol} X % {ssl_cipher} X \" % R \ "% B"
Note: Because I have a virtual host in SSL, add the following to httpd. conf:
Namevirtualhost IP: 443
This sentence!
Every time you modify the configuration file, remember: Reload
#/Etc/rc. d/httpd reload
Demo address: http://blog.ourlinux.net
Address: http://www1.ourlinux.net/bbs/showforum.php? Showtopic = 459 If You Want To reprint Please note: bixuan Ju-(http://www.ourlinux.net)