projects
/
apache2-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added PHP5 as default in new debian/postinst.
[apache2-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
086cc75
..
d2a994f
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-37,7
+37,7
@@
PORTCONF="$CONFDIR/ports.conf"
A2CNDIR=/usr/share/apache2-cn
TMPLDIR=$A2CNDIR/templates
CERTDIR=/etc/ssl/certs
A2CNDIR=/usr/share/apache2-cn
TMPLDIR=$A2CNDIR/templates
CERTDIR=/etc/ssl/certs
-A2PHPINI="/etc/php4/apache2/php.ini"
+A2PHPINI="/etc/php5/apache2/php.ini"
HOST=$(hostname)
FQDN=$(hostname --fqdn)
HOST=$(hostname)
FQDN=$(hostname --fqdn)
@@
-367,7
+367,7
@@
if [ $backup_done -eq 1 ]; then
fi
fi
-# Enable Apache2 web server modules (cgi, rewrite, userdir, suexec, php4, ssl).
+# Enable Apache2 web server modules (cgi, rewrite, userdir, suexec, php5, ssl).
#
if [ -e "$CONF" ]; then
#
if [ -e "$CONF" ]; then
@@
-395,9
+395,9
@@
if [ -e "$CONF" ]; then
need_restart=1
fi
need_restart=1
fi
- if [ ! -e "$A2MODEDIR/php4.load" ] || [ ! -e "$A2MODEDIR/php4.conf" ]; then
- cp_echo "CN: Enabling PHP4 module for Apache2 web server."
- a2enmod php4 >/dev/null || true
+ if [ ! -e "$A2MODEDIR/php5.load" ] || [ ! -e "$A2MODEDIR/php5.conf" ]; then
+ cp_echo "CN: Enabling PHP5 module for Apache2 web server."
+ a2enmod php5 >/dev/null || true
need_restart=1
fi
need_restart=1
fi