Server/srs27: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
Zeile 16: | Zeile 16: | ||
*** (https://www.stura-dresden.de) | *** (https://www.stura-dresden.de) | ||
--> | --> | ||
== Allgemein == | |||
pkg upgrade -y | |||
pkg install -y zsh bash | |||
<pre> | |||
Message from bash-4.3.42_1: | |||
====================================================================== | |||
bash requires fdescfs(5) mounted on /dev/fd | |||
If you have not done it yet, please do the following: | |||
mount -t fdescfs fdesc /dev/fd | |||
To make it permanent, you need the following lines in /etc/fstab: | |||
fdesc /dev/fd fdescfs rw 0 0 | |||
====================================================================== | |||
</pre> | |||
pkg install -y tmux | |||
pkg install -y vim-lite nano | |||
== Webserver == | |||
pkg install -y apache24 | |||
<pre> | |||
Message from apache24-2.4.20_1: | |||
To run apache www server from startup, add apache24_enable="yes" | |||
in your /etc/rc.conf. Extra options can be found in startup script. | |||
Your hostname must be resolvable using at least 1 mechanism in | |||
/etc/nsswitch.conf typically DNS or /etc/hosts or apache might | |||
have issues starting depending on the modules you are using. | |||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |||
- apache24 default build changed from static MPM to modular MPM | |||
- more modules are now enabled per default in the port | |||
- icons and error pages moved from WWWDIR to DATADIR | |||
If build with modular MPM and no MPM is activated in | |||
httpd.conf, then mpm_prefork will be activated as default | |||
MPM in etc/apache24/modules.d to keep compatibility with | |||
existing php/perl/python modules! | |||
Please compare the existing httpd.conf with httpd.conf.sample | |||
and merge missing modules/instructions into httpd.conf! | |||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |||
</pre> | |||
sysrc apache24_enable=yes | |||
<pre> | |||
apache24_enable: -> yes | |||
</pre> | |||
: <code>service apache24 start</code> | |||
: <code>cd /tmp && fetch -q http://141.56.50.27/index.html && cat index.html | grep "It works" && rm index.html</code> | |||
<pre> | |||
<html><body><h1>It works!</h1></body></html> | |||
</pre> | |||
: <code>service apache24 start</code> | |||
== Candy == | == Candy == |
Version vom 21. Mai 2016, 12:33 Uhr
Spielwiese!
Betriebssystem
- Server/srs1337
- Jail FreeNAS
- FreeBSD
Verwendungszweck
- (verschiedener einfacher) Web-foo (ohne Datenbank)
- Server/Candy
- WUI zum Zugang zum Chat vom StuRa
- Server/Candy
Allgemein
pkg upgrade -y
pkg install -y zsh bash
Message from bash-4.3.42_1: ====================================================================== bash requires fdescfs(5) mounted on /dev/fd If you have not done it yet, please do the following: mount -t fdescfs fdesc /dev/fd To make it permanent, you need the following lines in /etc/fstab: fdesc /dev/fd fdescfs rw 0 0 ======================================================================
pkg install -y tmux
pkg install -y vim-lite nano
Webserver
pkg install -y apache24
Message from apache24-2.4.20_1: To run apache www server from startup, add apache24_enable="yes" in your /etc/rc.conf. Extra options can be found in startup script. Your hostname must be resolvable using at least 1 mechanism in /etc/nsswitch.conf typically DNS or /etc/hosts or apache might have issues starting depending on the modules you are using. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - apache24 default build changed from static MPM to modular MPM - more modules are now enabled per default in the port - icons and error pages moved from WWWDIR to DATADIR If build with modular MPM and no MPM is activated in httpd.conf, then mpm_prefork will be activated as default MPM in etc/apache24/modules.d to keep compatibility with existing php/perl/python modules! Please compare the existing httpd.conf with httpd.conf.sample and merge missing modules/instructions into httpd.conf! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
sysrc apache24_enable=yes
apache24_enable: -> yes
service apache24 start
cd /tmp && fetch -q http://141.56.50.27/index.html && cat index.html | grep "It works" && rm index.html
<html><body><h1>It works!</h1></body></html>
service apache24 start