summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-22 19:14:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-22 19:14:49 +0000
commit469d68939b0c694c9dab526e2c7d4ed3dcf69739 (patch)
tree136ba5c2846cad96ec3d8bb849870730980a77fa /etc/rc
parent418a8484a94a4a5702215311b1dfb6a769eb25d1 (diff)
downloadpfsense-469d68939b0c694c9dab526e2c7d4ed3dcf69739.zip
pfsense-469d68939b0c694c9dab526e2c7d4ed3dcf69739.tar.gz
Bootstrap php.ini on non-cdrom platforms to *GUARANTEE* that we can invoke php correctly.
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc27
1 files changed, 27 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index ed68b4c..90927a2 100755
--- a/etc/rc
+++ b/etc/rc
@@ -205,6 +205,33 @@ echo "done."
# Recreate capabilities DB
cap_mkdb /etc/login.conf
+if [ "$PLATFORM" != "cdrom" ]; then
+# Populate a dummy php.ini to avoid
+# the file being clobbered and the firewall
+# not being able to boot back up.
+cat >/usr/local/lib/php.ini <<EOF
+output_buffering = "0"
+implicit_flush = true
+magic_quotes_gpc = Off
+max_execution_time = 99999999
+max_input_time = 99999999
+register_argc_argv = Off
+file_uploads = On
+upload_tmp_dir = /tmp
+upload_max_filesize = 90M
+post_max_size = 90M
+html_errors = Off
+include_path = ".:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg"
+apc.enabled="1"
+apc.enable_cli="1"
+apc.shm_size="30"
+extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/
+extension=apc.so
+extension=radius.so
+
+EOF
+fi
+
# let the PHP-based configuration subsystem set up the system now
echo -n "Launching PHP init system..."
/etc/rc.bootup
OpenPOWER on IntegriCloud