Apache
1.1. SSL
Provided in: https://github.com/schmto/nmsprime/blob/dev/Install/after_install.sh
#
# SSL
# Self Signed Certificat
#
mkdir /etc/httpd/ssl
openssl req -new -x509 -days 365 -nodes -batch -out /etc/httpd/ssl/httpd.pem -keyout /etc/httpd/ssl/httpd.key1.2. Configuration for Laravel Webspace
/etc/httpd/conf.d/nmsprime-admin.conf
RewriteBase in laravel public/.htaccess must match with apache mods config
# add the following line to /var/www/lara/public/.htaccess to change the root directory for the webbrowser
RewriteBase /lara/
php_flag safe_mode off # disables some functionalities for security purposes (deprecated)This is already done in GIT Repo and should be only relevant for new projects and maybe debug problems
1.3. Allow Apache to do flood pings and set a new hostname
This is provided in:
ProvBase
https://github.com/schmto/nmsprime/blob/dev/modules/ProvBase/Install/files/sudo-nmsprime-hostnamectl
ProvMon
echo "Defaults:apache !requiretty
apache ALL=(root) NOPASSWD: /usr/bin/ping
apache ALL=(root) NOPASSWD: /usr/bin/hostnamectl
" > /etc/sudoers.d/sudo-nms-lara