summaryrefslogtreecommitdiff
path: root/source/n/php/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/php/doinst.sh')
-rw-r--r--source/n/php/doinst.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/n/php/doinst.sh b/source/n/php/doinst.sh
new file mode 100644
index 00000000..15f611b5
--- /dev/null
+++ b/source/n/php/doinst.sh
@@ -0,0 +1,8 @@
+if [ ! -r etc/httpd/mod_php.conf ]; then
+ cp -a etc/httpd/mod_php.conf.example etc/httpd/mod_php.conf
+elif [ "`cat etc/httpd/mod_php.conf 2> /dev/null`" = "" ]; then
+ cp -a etc/httpd/mod_php.conf.example etc/httpd/mod_php.conf
+fi
+if [ ! -r etc/httpd/php.ini ]; then
+ cp -a etc/httpd/php.ini-recommended etc/httpd/php.ini
+fi