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
23f0e057
Commit
23f0e057
authored
Dec 28, 2014
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
php: adapt for pear packages
parent
d389da35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
rc.php_ini_setup
src/etc/rc.php_ini_setup
+5
-2
No files found.
src/etc/rc.php_ini_setup
View file @
23f0e057
...
...
@@ -105,7 +105,10 @@ 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
=
`
cat
/conf/config.xml | egrep
-E
'<timezone>(.*?)</timezone>'
|
awk
-F
'>'
'{print $2}'
|awk
-F
'<'
'{print $1}'
`
TIMEZONE
=
Etc/UTC
if
[
-f
/conf/config.xml
]
;
then
TIMEZONE
=
`
cat
/conf/config.xml | egrep
-E
'<timezone>(.*?)</timezone>'
|
awk
-F
'>'
'{print $2}'
|awk
-F
'<'
'{print $1}'
`
fi
# Get a loaded module list in the stock php
# Populate a dummy php.ini to avoid
...
...
@@ -129,7 +132,7 @@ post_max_size = 200M
html_errors = Off
zlib.output_compression = Off
zlib.output_compression_level = 1
include_path = ".:/usr/local/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/opnsense/mvc"
include_path = ".:/usr/local/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/opnsense/mvc
:/usr/local/share/pear
"
display_startup_errors=on
error_reporting = E_ERROR
display_errors=on
...
...
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