Slitaz cooking apache start error

近日因為自己部 server 又唔生性咁 down 咗, 唯有又由頭安裝過. 不過始終都想找到一個較簡單既方案, 所以從網上找一些輕量既 linux distro. 雖然一般既 linux distro 功能好強, 但輕量的 linux distro 對硬件要求較低, 所以對要求低既用戶 (我 :P) 仍有發展空間.

Slitaz 係其中一個輕量既 linux distro 而又提供 server application. 不過發現佢個 cooking version 因為 ssl cert 有問題, 所以啟動 apache 時會有 error. 要解決依個問題就要自己動手做一張 ssl cert. 過程如下:

1. Go to /etc/ssl/misc
2. Type ./CA.sh -newca
3. Fill-in proper information
4. openssl rsa -in ./demoCA/private/cakey.pem -out ./demoCA/private/cakey.pem
5. openssl x509 -in ./demoCA/cacert.pem -out ./demoCA/cacert.crt
6. openssl x509 -inform pem -in ./demoCA/cacert.pem -outform der -out ./demoCA/cacert.der
7. cp ./demoCA/cacert.crt /etc/ssl/apache/apache.crt
8. cp ./demoCA/private/cakey.pem /etc/ssl/apache/apache.pem
9. Edit /etc/apache/extra/httpd-ssl.conf
– SSLCertificateFile /etc/apache2/ssl/apache.crt
– SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
10. /etc/init.d/apache stop
11. /etc/init.d/apache start

Join the Conversation

2 Comments

Please leave your comment on the topic

This site uses Akismet to reduce spam. Learn how your comment data is processed.