mirror of
https://git.icinga.com/packaging/rpm-icingaweb2.git
synced 2025-07-30 17:34:13 +02:00
icingaweb2: Configure apache2 for SUSE in testing
This commit is contained in:
parent
ebca543354
commit
3e4092f0f5
@ -15,12 +15,22 @@ fi
|
||||
sudo sh -c "echo 'date.timezone = UTC' >${php_d}/timezone.ini"
|
||||
|
||||
# Start apache in background
|
||||
if [ -x /usr/sbin/httpd ]; then
|
||||
if [ -x /usr/sbin/start_apache2 ]; then
|
||||
# newer SUSE
|
||||
sudo a2enmod rewrite
|
||||
sudo a2enmod php5
|
||||
|
||||
sudo /usr/sbin/start_apache2 -t
|
||||
sudo /usr/sbin/start_apache2 -k start
|
||||
elif [ -x /usr/sbin/apache2ctl ]; then
|
||||
# older SUSE
|
||||
sudo a2enmod rewrite
|
||||
sudo a2enmod php5
|
||||
|
||||
sudo /etc/init.d/apache2 start
|
||||
elif [ -x /usr/sbin/httpd ]; then
|
||||
sudo httpd -t
|
||||
sudo httpd -k start
|
||||
elif [ -x /usr/sbin/apache2 ]; then
|
||||
sudo apache2 -t
|
||||
sudo apache2 -k start
|
||||
else
|
||||
echo "Can not detect how to start Apache!" >&2
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user