summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-30 22:16:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-30 22:16:32 +0000
commit40e460098766ef60d12dfe2d8ea048a8da4a6db0 (patch)
tree7cecda27a0aa4c682be0d2323fa0bdca80fb9d3d /etc/rc
parent33bf93fb91d817d3fcd63455b46ece2c51f76974 (diff)
downloadpfsense-40e460098766ef60d12dfe2d8ea048a8da4a6db0.zip
pfsense-40e460098766ef60d12dfe2d8ea048a8da4a6db0.tar.gz
Move php.ini setup to its own file
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc93
1 files changed, 5 insertions, 88 deletions
diff --git a/etc/rc b/etc/rc
index bc902ae..772c197 100755
--- a/etc/rc
+++ b/etc/rc
@@ -267,97 +267,14 @@ 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
-# File generated from /etc/rc
-output_buffering = "0"
-expose_php = Off
-implicit_flush = true
-magic_quotes_gpc = Off
-max_execution_time = 99999999
-max_input_time = 99999999
-register_argc_argv = On
-file_uploads = On
-upload_tmp_dir = /tmp
-upload_max_filesize = 100M
-post_max_size = 100M
-html_errors = Off
-zlib.output_compression = On
-zlib.output_compression_level = 1
-include_path = ".:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg"
-extension_dir=/usr/local/lib/php/20060613/
-
-; add additional extensions below
-; standard PHP extension
-extension=pcre.so
-extension=bz2.so
-extension=bcmath.so
-extension=ctype.so
-extension=curl.so
-extension=gettext.so
-extension=mbstring.so
-extension=mhash.so
-;extension=openssl.so
-extension=pcntl.so
-extension=posix.so
-extension=readline.so
-extension=session.so
-;extension=simplexml.so
-extension=shmop.so
-extension=sysvmsg.so
-extension=sysvsem.so
-extension=sysvshm.so
-extension=tokenizer.so
-extension=xml.so
-extension=ldap.so
-extension=zlib.so
-extension=uploadprogress.so
-
-; standard PHP extensions currently beeing unused
-;extension=json.so
-;extension=ncurses.so
-;xmlreader.so
-;xmlwriter.so
-
-;[xdebug]
-;xdebug.remote_enable = On
-;xdebug.default_enable = On
-;xdebug.remote_mode = On
-;xdebug.remote_handler = dbgp
-;xdebug.remote_host = 127.0.0.1
-;xdebug.remote_port = 17869
-;xdebug.idekey = devphp
-
-EOF
-
-RAM=`sysctl hw.realmem | awk '{print $2/1000000}' | awk -F '.' '{print $1}'`
-export RAM
-if [ $RAM -gt 96 ]; then
-
-cat >>/usr/local/lib/php.ini <<EOF
-extension=apc.so
-apc.enabled="1"
-apc.enable_cli="1"
-apc.shm_size="25"
-
-EOF
-
-fi
-
-
-fi
-
-cp /usr/local/lib/php.ini /usr/local/etc/php.ini
-
-rm -f /cf/conf/backup/backup.cache
-
-rm -f /root/lighttpd*
+# Run the php.ini setup file and populate
+# /usr/local/etc/php.ini and /usr/local/lib/php.ini
+. /etc/rc.php_ini_setup
# let the PHP-based configuration subsystem set up the system now
echo -n "Launching PHP init system..."
+rm -f /cf/conf/backup/backup.cache
+rm -f /root/lighttpd*
/etc/rc.bootup
echo -n "Starting CRON... "
OpenPOWER on IntegriCloud