Updated PHP installation methode
This commit is contained in:
1
Configs/php.pkglist
Normal file
1
Configs/php.pkglist
Normal file
@@ -0,0 +1 @@
|
|||||||
|
php83-xml php83-fpm php83-curl php83-dom php83-zip php83-mbstring php83-openssl php83-ctype
|
||||||
16
install.sh
16
install.sh
@@ -6,8 +6,10 @@ cd "$( dirname "$0" )"
|
|||||||
#Intergration check
|
#Intergration check
|
||||||
if [ -z ${DistoBuilderINT+x} ]; then
|
if [ -z ${DistoBuilderINT+x} ]; then
|
||||||
ResourceFolder=/tmp
|
ResourceFolder=/tmp
|
||||||
|
phpVer=83
|
||||||
#Install required software
|
#Install required software
|
||||||
apk add dovecot php83-xml php83-fpm php83-curl php83-dom php83-zip php83-mbstring php83-openssl php83-ctype sudo curl openssl
|
apk add dovecot sudo curl openssl
|
||||||
|
cat Configs/php.pkglist | xargs apk add
|
||||||
#Install Nginx and Nginx Repo
|
#Install Nginx and Nginx Repo
|
||||||
wget https://nginx.org/keys/nginx_signing.rsa.pub -O /etc/apk/keys/nginx_signing.rsa.pub
|
wget https://nginx.org/keys/nginx_signing.rsa.pub -O /etc/apk/keys/nginx_signing.rsa.pub
|
||||||
echo "@nginx http://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories
|
echo "@nginx http://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories
|
||||||
@@ -17,6 +19,12 @@ if [ -z ${DistoBuilderINT+x} ]; then
|
|||||||
|
|
||||||
#Install OfflineIMAP3
|
#Install OfflineIMAP3
|
||||||
apk add offlineimap@CommunityEdge
|
apk add offlineimap@CommunityEdge
|
||||||
|
|
||||||
|
#Configure Php-fpm
|
||||||
|
echo ";Placeholder" > /etc/php$phpVer/php-fpm.d/www.conf
|
||||||
|
mv Configs/php.conf /etc/php$phpVer/php-fpm.d/mailbackup.conf
|
||||||
|
printf "[Date]\ndate.timezone = Europe/Amsterdam" >/etc/php$phpVer/conf.d/04_date_timezone.ini
|
||||||
|
rc-update add php-fpm$phpVer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Download Resources
|
#Download Resources
|
||||||
@@ -36,9 +44,6 @@ mv Configs/dovecot.conf /etc/dovecot/dovecot.conf
|
|||||||
mkdir /mail
|
mkdir /mail
|
||||||
chmod 777 /mail
|
chmod 777 /mail
|
||||||
|
|
||||||
#Configure Php-fpm
|
|
||||||
rm /etc/php83/php-fpm.d/*
|
|
||||||
mv Configs/php.conf /etc/php83/php-fpm.d/railoop.conf
|
|
||||||
|
|
||||||
#Install Webmail
|
#Install Webmail
|
||||||
mkdir -p /opt/webmail/data/_data_/_default_/configs /opt/webmail/data/_data_/_default_/domains
|
mkdir -p /opt/webmail/data/_data_/_default_/configs /opt/webmail/data/_data_/_default_/domains
|
||||||
@@ -66,10 +71,9 @@ rm -f /tmp/olim3.tar.gz /tmp/smc.tar.gz
|
|||||||
#Start and enable service
|
#Start and enable service
|
||||||
rc-update add dovecot
|
rc-update add dovecot
|
||||||
rc-update add nginx
|
rc-update add nginx
|
||||||
rc-update add php-fpm83
|
|
||||||
|
|
||||||
if [ -z ${DistoBuilderINT+x} ]; then
|
if [ -z ${DistoBuilderINT+x} ]; then
|
||||||
service dovecot start
|
service dovecot start
|
||||||
service nginx start
|
service nginx start
|
||||||
service php-fpm83 start
|
service php-fpm$phpVer start
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user