Difference between revisions of "Mars.tekkom.dk/installation"
From Teknologisk videncenter
m |
m (→Apache) |
||
| Line 30: | Line 30: | ||
echo 'accf_http_ready="YES"' >> /etc/rc.conf && kldload accf_http | echo 'accf_http_ready="YES"' >> /etc/rc.conf && kldload accf_http | ||
</source> | </source> | ||
| + | Making keys | ||
| + | <source lang=cli> | ||
| + | cd /usr/local/etc/apache22/ | ||
| + | openssl genrsa -des3 -out server.key 1024 | ||
| + | openssl req -new -key server.key -out server.csr | ||
| + | openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | ||
| + | chmod 0400 server.key server.crt | ||
| + | </source> | ||
| + | Opening server.key or apache mod.ssl will prompt for password at startup | ||
| + | <source lang=cli> | ||
| + | cd /usr/local/etc/apache22/ | ||
| + | chmod 600 server.key | ||
| + | cp server.key server.key.cryp | ||
| + | /usr/local/ssl/bin/openssl rsa -in server.key.cryp -out server.key | ||
| + | chmod 400 server.key | ||
| + | </source> | ||
| + | Uncomment httpd.conf to include | ||
| + | <source lang=cli> | ||
| + | Include etc/apache22/extra/httpd-ssl.conf | ||
| + | </source> | ||
| + | |||
{{Source cli}} | {{Source cli}} | ||
[[Category:FreeBSD]][[Category:Mediawiki]] | [[Category:FreeBSD]][[Category:Mediawiki]] | ||
Revision as of 12:33, 5 January 2011
FreeBSD
FreeBSD installed standard on RaidLevel 5EE
[root@mars /usr/local/www]# <input>df -h</input>
Filesystem Size Used Avail Capacity Mounted on
/dev/ipsd0s1a 1.9G 266M 1.5G 15% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ipsd0s1f 29G 4.0K 27G 0% /home
/dev/ipsd0s1e 7.7G 12K 7.1G 0% /tmp
/dev/ipsd0s1g 144G 1.7G 131G 1% /usr
/dev/ipsd0s1d 7.7G 95M 7.0G 1% /varGenerel setup
Follow FreeBSD installation
Additional packages
- lynx
Services
ntp
- ntp.conf to 172.16.4.16
- Enable in rc.conf
FAMP
FreeBSD Apache MySQL PHP
Apache
cd /usr/ports/www/apache22/
make config install distclean
echo 'apache2_enable="YES"' >> /etc/rc.conf
echo 'apache2ssl_enable="YES"' >> /etc/rc.conf
echo 'accf_http_ready="YES"' >> /etc/rc.conf && kldload accf_httpMaking keys
cd /usr/local/etc/apache22/
openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
chmod 0400 server.key server.crtOpening server.key or apache mod.ssl will prompt for password at startup
cd /usr/local/etc/apache22/
chmod 600 server.key
cp server.key server.key.cryp
/usr/local/ssl/bin/openssl rsa -in server.key.cryp -out server.key
chmod 400 server.keyUncomment httpd.conf to include
Include etc/apache22/extra/httpd-ssl.conf