Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Web Hosting EKS - PHP 8.4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OTDI Web Hosting
Container Images
Web Hosting EKS - PHP 8.4
Commits
590aeba6
Commit
590aeba6
authored
1 year ago
by
Edward Hicks
Browse files
Options
Downloads
Patches
Plain Diff
cleanup & restructure php.ini settings
parent
96af195a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
usr/local/etc/php/conf.d/03_osuwebhosting.ini
+19
-21
19 additions, 21 deletions
usr/local/etc/php/conf.d/03_osuwebhosting.ini
usr/local/etc/php/php.ini
+32
-34
32 additions, 34 deletions
usr/local/etc/php/php.ini
with
51 additions
and
55 deletions
usr/local/etc/php/conf.d/03_osuwebhosting.ini
+
19
−
21
View file @
590aeba6
; Custom settings for OSU Web Hosting
[PHP]
safe_mode
=
off
register_globals
=
off
expose_php
=
off
memory_limit
=
512M
date.timezone
=
"America/New_York"
include_path
=
".:/var/www/privatedata"
sys_temp_dir
=
"/var/www/sharedtmp"
upload_tmp_dir
=
"/var/www/privatedata"
soap.wsdl_cache_dir
=
"/var/www/sharedtmp"
memory_limit
=
512M
realpath_cache_size
=
1M
max_execution_time
=
60
max_input_time
=
60
post_max_size
=
19M
upload_max_filesize
=
18M
; Sessions
session.save_handler
=
"files"
;session.save_handler=memcached
session.save_path
=
"/var/www/sharedtmp"
;session.save_path="localhost:11211"
; Error output
log_errors
=
on
error_reporting
=
E_ALL & ~E_NOTICE & ~E_STRICT
error_log
=
"/var/log/httpd/php_error_log"
variables_order
=
"EGPCS"
[soap]
soap.wsdl_cache_dir
=
"/var/www/sharedtmp"
[Session]
session.save_path
=
"/var/www/sharedtmp"
session.cookie_lifetime
=
600
session.gc_maxlifetime
=
28800
url_rewriter.tags
=
"a=href,area=href,frame=src,input=src,form=fakeentry"
[PostgreSQL]
pgsql.max_persistent
=
5
pgsql.max_links
=
250
; APC compatibility support
[apc]
apc.enabled
=
1
apc.enable_cli
=
1
apc.shm_segments
=
1
...
...
@@ -75,18 +78,13 @@ memcached.store_retry_count = 2
; Zend OpCache
[opcache]
opcache.enable
=
1
opcache.enable_cli
=
0
opcache.memory_consumption
=
256
opcache.interned_strings_buffer
=
32
opcache.max_accelerated_files
=
20000
opcache.max_file_size
=
10485760
opcache.revalidate_freq
=
10
opcache.fast_shutdown
=
1
opcache.save_comments
=
1
;;opcache.huge_code_pages=1
opcache.blacklist_filename
=
"/var/www/privatedata/opcache*.blacklist"
; Default XHProf logging directory
[xhprof]
xhprof.output_dir
=
"/var/log/httpd/
xhprof/
"
xhprof.output_dir
=
"/var/log/httpd/"
This diff is collapsed.
Click to expand it.
usr/local/etc/php/php.ini
+
32
−
34
View file @
590aeba6
...
...
@@ -416,7 +416,7 @@ expose_php = On
; Maximum execution time of each script, in seconds
; https://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
;;
max_execution_time = 30
max_execution_time
=
30
; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
...
...
@@ -426,7 +426,7 @@ expose_php = On
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; https://php.net/max-input-time
;;
max_input_time = 60
max_input_time
=
60
; Maximum input variable nesting level
; https://php.net/max-input-nesting-level
...
...
@@ -442,7 +442,7 @@ expose_php = On
; Maximum amount of memory a script may consume
; https://php.net/memory-limit
;;
memory_limit = 128M
memory_limit
=
128M
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
...
...
@@ -498,7 +498,7 @@ expose_php = On
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; https://php.net/error-reporting
;;
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
error_reporting
=
E_ALL & ~E_DEPRECATED & ~E_STRICT
; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
...
...
@@ -659,7 +659,7 @@ report_memleaks = On
; Development Value: "GPCS"
; Production Value: "GPCS";
; https://php.net/variables-order
;;
variables_order = "GPCS"
variables_order
=
"GPCS"
; This directive determines which super global data (G,P & C) should be
; registered into the super global array REQUEST. If so, it also determines
...
...
@@ -710,7 +710,7 @@ auto_globals_jit = On
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; https://php.net/post-max-size
;;
post_max_size = 8M
post_max_size
=
8M
; Automatically add files before PHP document.
; https://php.net/auto-prepend-file
...
...
@@ -862,7 +862,7 @@ file_uploads = On
; Maximum allowed size for uploaded files.
; https://php.net/upload-max-filesize
;;
upload_max_filesize = 2M
upload_max_filesize
=
2M
; Maximum number of files that can be uploaded via a single request
max_file_uploads
=
20
...
...
@@ -1325,13 +1325,11 @@ pgsql.auto_reset_persistent = Off
; Maximum number of persistent links. -1 means no limit.
; https://php.net/pgsql.max-persistent
;;pgsql.max_persistent = -1
pgsql.max_persistent
=
5
pgsql.max_persistent
=
-1
; Maximum number of links (persistent+non persistent). -1 means no limit.
; https://php.net/pgsql.max-links
;;pgsql.max_links = -1
pgsql.max_links
=
250
pgsql.max_links
=
-1
; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
...
...
@@ -1352,10 +1350,10 @@ bcmath.scale = 0
; https://php.net/browscap
;browscap = extra/browscap.ini
;;
[Session]
[Session]
; Handler used to store/retrieve data.
; https://php.net/session.save-handler
;;
session.save_handler = files
session.save_handler
=
files
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
...
...
@@ -1393,11 +1391,11 @@ bcmath.scale = 0
; vulnerability. It is disabled by default for maximum compatibility, but
; enabling it is encouraged.
; https://wiki.php.net/rfc/strict_sessions
;;
session.use_strict_mode = 0
session.use_strict_mode
=
0
; Whether to use cookies.
; https://php.net/session.use-cookies
;;
session.use_cookies = 1
session.use_cookies
=
1
; https://php.net/session.cookie-secure
;session.cookie_secure =
...
...
@@ -1407,42 +1405,42 @@ bcmath.scale = 0
; session hijacking when not specifying and managing your own session id. It is
; not the be-all and end-all of session hijacking defense, but it's a good start.
; https://php.net/session.use-only-cookies
;;
session.use_only_cookies = 1
session.use_only_cookies
=
1
; Name of the session (used as cookie name).
; https://php.net/session.name
;;
session.name = PHPSESSID
session.name
=
PHPSESSID
; Initialize session on request startup.
; https://php.net/session.auto-start
;;
session.auto_start = 0
session.auto_start
=
0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; https://php.net/session.cookie-lifetime
;;
session.cookie_lifetime = 0
session.cookie_lifetime
=
0
; The path for which the cookie is valid.
; https://php.net/session.cookie-path
;;
session.cookie_path = /
session.cookie_path
=
/
; The domain for which the cookie is valid.
; https://php.net/session.cookie-domain
;;
session.cookie_domain =
session.cookie_domain
=
; Whether or not to add the httpOnly flag to the cookie, which makes it
; inaccessible to browser scripting languages such as JavaScript.
; https://php.net/session.cookie-httponly
;;
session.cookie_httponly =
session.cookie_httponly
=
; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF)
; Current valid values are "Strict", "Lax" or "None". When using "None",
; make sure to include the quotes, as `none` is interpreted like `false` in ini files.
; https://tools.ietf.org/html/draft-west-first-party-cookies-07
;;
session.cookie_samesite =
session.cookie_samesite
=
; Handler used to serialize data. php is the standard serializer of PHP.
; https://php.net/session.serialize-handler
;;
session.serialize_handler = php
session.serialize_handler
=
php
; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using gc_probability/gc_divisor,
...
...
@@ -1451,7 +1449,7 @@ bcmath.scale = 0
; Development Value: 1
; Production Value: 1
; https://php.net/session.gc-probability
;;
session.gc_probability = 1
session.gc_probability
=
1
; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using gc_probability/gc_divisor,
...
...
@@ -1461,12 +1459,12 @@ bcmath.scale = 0
; Development Value: 1000
; Production Value: 1000
; https://php.net/session.gc-divisor
;;
session.gc_divisor = 1000
session.gc_divisor
=
1000
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; https://php.net/session.gc-maxlifetime
;;
session.gc_maxlifetime = 1440
session.gc_maxlifetime
=
1440
; NOTE: If you are using the subdirectory option for storing session files
; (see session.save_path above), then garbage collection does *not*
...
...
@@ -1480,16 +1478,16 @@ bcmath.scale = 0
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
; https://php.net/session.referer-check
;;
session.referer_check =
session.referer_check
=
; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
; https://php.net/session.cache-limiter
;;
session.cache_limiter = nocache
session.cache_limiter
=
nocache
; Document expires after n minutes.
; https://php.net/session.cache-expire
;;
session.cache_expire = 180
session.cache_expire
=
180
; trans sid support is disabled by default.
; Use of trans sid may risk your users' security.
...
...
@@ -1501,7 +1499,7 @@ bcmath.scale = 0
; - User may access your site with the same session ID
; always using URL stored in browser's history or bookmarks.
; https://php.net/session.use-trans-sid
;;
session.use_trans_sid = 0
session.use_trans_sid
=
0
; Set session ID character length. This value could be between 22 to 256.
; Shorter length than default is supported only for compatibility reason.
...
...
@@ -1510,7 +1508,7 @@ bcmath.scale = 0
; Default Value: 32
; Development Value: 26
; Production Value: 26
;;
session.sid_length = 26
session.sid_length
=
26
; The URL rewriter will look for URLs in a defined set of HTML tags.
; <form> is special; if you include them here, the rewriter will
...
...
@@ -1522,7 +1520,7 @@ bcmath.scale = 0
; Development Value: "a=href,area=href,frame=src,form="
; Production Value: "a=href,area=href,frame=src,form="
; https://php.net/url-rewriter.tags
;;
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.trans_sid_tags
=
"a=href,area=href,frame=src,form="
; URL rewriter does not rewrite absolute URLs by default.
; To enable rewrites for absolute paths, target hosts must be specified
...
...
@@ -1547,7 +1545,7 @@ bcmath.scale = 0
; Development Value: 5
; Production Value: 5
; https://php.net/session.hash-bits-per-character
;;
session.sid_bits_per_character = 5
session.sid_bits_per_character
=
5
; Enable upload progress tracking in $_SESSION
; Default Value: On
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment