[CC-5248] Configure PHP during airtime-full-install on Apache server
This commit is contained in:
parent
c2e9f90eb9
commit
436c74124d
2 changed files with 20 additions and 5 deletions
5
install_full/php5/airtime.ini
Normal file
5
install_full/php5/airtime.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[PHP]
|
||||
memory_limit = 512M
|
||||
magic_quotes_gpc = Off
|
||||
file_uploads = On
|
||||
upload_tmp_dir = /tmp
|
|
@ -121,20 +121,30 @@ else
|
|||
apt-get -y --force-yes install apache2 libapache2-mod-php5
|
||||
# Apache Config File
|
||||
echo "----------------------------------------------------"
|
||||
echo "2. Apache Config File"
|
||||
echo "2.1 Apache Config File"
|
||||
echo "----------------------------------------------------"
|
||||
if [ ! -f /etc/apache2/sites-available/airtime ]; then
|
||||
cp $SCRIPTPATH/../apache/airtime-vhost /etc/apache2/sites-available/airtime
|
||||
a2dissite default
|
||||
a2ensite airtime
|
||||
a2enmod rewrite php5
|
||||
service apache2 restart
|
||||
else
|
||||
echo "Apache config for Airtime already exists..."
|
||||
fi
|
||||
|
||||
# PHP Config File for Apache
|
||||
echo "----------------------------------------------------"
|
||||
echo "2.2 PHP Config File for Apache"
|
||||
echo "----------------------------------------------------"
|
||||
if [ ! -f /etc/php5/apache2/airtime.ini ]; then
|
||||
cp $SCRIPTPATH/../php5/airtime.ini /etc/php5/apache2/airtime.ini
|
||||
else
|
||||
echo "Airtime PHP config for Apache already exists..."
|
||||
fi
|
||||
|
||||
|
||||
# Enable modules and restart Apache to enable any configuration changes
|
||||
a2enmod rewrite php5
|
||||
service apache2 restart
|
||||
fi
|
||||
|
||||
# Enable Icecast
|
||||
echo "----------------------------------------------------"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue