aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-11-25 18:27:56 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-11-25 18:27:56 +0000
commitce600535776fdd03600b9c7c44bad4559c900268 (patch)
treeac7d318f9da4889b0dd360b2f43c15f3c0865378 /patches
parent65b44ec10b807791423e1ea4b723e0b1d27634b2 (diff)
downloadslackbuilds-ce600535776fdd03600b9c7c44bad4559c900268.tar.gz
slackbuilds-ce600535776fdd03600b9c7c44bad4559c900268.tar.bz2
php: added one mod_php.conf for each php and distro version
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1474 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'patches')
-rw-r--r--patches/php/conf/mod_php4-apache1.3.conf.example (renamed from patches/php/conf/mod_php4.conf.example)0
-rw-r--r--patches/php/conf/mod_php5-apache1.3.conf.example (renamed from patches/php/conf/mod_php5.conf.example)0
-rw-r--r--patches/php/conf/mod_php5-apache2.conf.example12
-rwxr-xr-xpatches/php/php.SlackBuild12
4 files changed, 23 insertions, 1 deletions
diff --git a/patches/php/conf/mod_php4.conf.example b/patches/php/conf/mod_php4-apache1.3.conf.example
index 7adf6e0b..7adf6e0b 100644
--- a/patches/php/conf/mod_php4.conf.example
+++ b/patches/php/conf/mod_php4-apache1.3.conf.example
diff --git a/patches/php/conf/mod_php5.conf.example b/patches/php/conf/mod_php5-apache1.3.conf.example
index e46a5b10..e46a5b10 100644
--- a/patches/php/conf/mod_php5.conf.example
+++ b/patches/php/conf/mod_php5-apache1.3.conf.example
diff --git a/patches/php/conf/mod_php5-apache2.conf.example b/patches/php/conf/mod_php5-apache2.conf.example
new file mode 100644
index 00000000..2707a2be
--- /dev/null
+++ b/patches/php/conf/mod_php5-apache2.conf.example
@@ -0,0 +1,12 @@
+#
+# mod_php - PHP Hypertext Preprocessor module
+#
+
+# Load the PHP module:
+LoadModule php5_module lib/httpd/modules/libphp5.so
+
+# Tell Apache to feed all *.php files through the PHP module:
+AddType application/x-httpd-php .php
+
+# This will display PHP files in colored syntax form. Use with caution.
+#AddType application/x-httpd-php-source .phps
diff --git a/patches/php/php.SlackBuild b/patches/php/php.SlackBuild
index d91cf9a2..4240d7a1 100755
--- a/patches/php/php.SlackBuild
+++ b/patches/php/php.SlackBuild
@@ -538,7 +538,17 @@ fi
mkdir -p $PKG/etc/apache
cp -a php.ini-dist php.ini-recommended $PKG/etc/apache
-cp -a $CWD/mod_php$PHP_SERIES.conf.example $PKG/etc/apache/mod_php.conf.example
+
+if [ "$PHP_SERIES" == "5" ]; then
+ if (( `default_version` >= 120 )); then
+ cp -a $CWD/mod_php$PHP_SERIES-apache2.conf.example $PKG/etc/apache/mod_php.conf.example
+ else
+ cp -a $CWD/mod_php$PHP_SERIES-apache1.3.conf.example $PKG/etc/apache/mod_php.conf.example
+ fi
+else
+ cp -a $CWD/mod_php$PHP_SERIES-apache1.3.conf.example $PKG/etc/apache/mod_php.conf.example
+fi
+
chmod 644 $PKG/etc/apache/*
chown root:root $PKG/etc/apache/*