Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
3256e66d
Commit
3256e66d
authored
May 31, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: a bit more pruning; we know what we are doing!
parent
a173ea37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
24 deletions
+7
-24
rc.php_ini_setup
src/etc/rc.php_ini_setup
+7
-24
No files found.
src/etc/rc.php_ini_setup
View file @
3256e66d
...
...
@@ -34,19 +34,16 @@ fi
# Define php modules. Do not add .so, it will
# be done automatically by the script below.
PHPMODULES
=
"standard"
# Config read/write
PHPMODULES
=
"
$PHPMODULES
dom xml simplexml"
PHPMODULES
=
"dom xml simplexml"
# Downloading via HTTP/FTP (pkg mgr, etc)
PHPMODULES
=
"
$PHPMODULES
curl
date
"
PHPMODULES
=
"
$PHPMODULES
curl"
# Internationalization
PHPMODULES
=
"
$PHPMODULES
gettext"
# User manager
PHPMODULES
=
"
$PHPMODULES
ldap openssl pcntl"
PHPMODULES
=
"
$PHPMODULES
hash"
PHPMODULES
=
"
$PHPMODULES
mcrypt"
# Regexs, PERL style!
PHPMODULES
=
"
$PHPMODULES
pcre"
PHPMODULES
=
"
$PHPMODULES
hash mcrypt"
# Login sessions
PHPMODULES
=
"
$PHPMODULES
session"
# Extra sanity seatbelts
...
...
@@ -58,7 +55,6 @@ PHPMODULES="$PHPMODULES mbstring"
# Page compression
PHPMODULES
=
"
$PHPMODULES
zlib"
# SQLlite & Database
PHPMODULES
=
"
$PHPMODULES
spl"
PHPMODULES
=
"
$PHPMODULES
pdo"
PHPMODULES
=
"
$PHPMODULES
pdo_sqlite"
PHPMODULES
=
"
$PHPMODULES
sqlite3"
...
...
@@ -81,8 +77,6 @@ rm -f /usr/local/etc/php/extensions.ini
rm
-f
/usr/local/etc/php.ini
rm
-f
/usr/local/lib/php.ini
LOADED_MODULES
=
`
/usr/local/bin/php
-m
| /usr/bin/grep
-v
"
\[
"
`
# Fetch the timezone from the XML and set it here. We set it later too in the running scripts
TIMEZONE
=
Etc/UTC
if
[
-f
/conf/config.xml
]
;
then
...
...
@@ -122,20 +116,9 @@ date.timezone="${TIMEZONE}"
EOF
# Loop through and generate modules to load.
# Take into account modules built into php.
for
EXT
in
$PHPMODULES
;
do
SHOULDADD
=
"true"
# Check to see if module is compiled into php statically
for
LM
in
$LOADED_MODULES
;
do
if
[
"
$EXT
"
=
"
$LM
"
]
;
then
SHOULDADD
=
"false"
fi
done
if
[
"
$SHOULDADD
"
=
"true"
]
;
then
# Ensure extension exists before adding.
if
[
-f
"
${
EXTENSIONSDIR
}${
EXT
}
.so"
]
;
then
echo
"extension=
${
EXT
}
.so"
>>
/usr/local/etc/php/extensions.ini
fi
for
EXT
in
${
PHPMODULES
}
;
do
if
[
-f
"
${
EXTENSIONSDIR
}${
EXT
}
.so"
]
;
then
echo
"extension=
${
EXT
}
.so"
>>
/usr/local/etc/php/extensions.ini
fi
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment