phpinfo.php 보기
http://192.168.0.9/myphpinfo.php?q=Gugeosigan
php.ini 파일 비교
root@Gugeosigan:~# diff -q /etc/php/7.4/apache2/php.ini /etc/php/7.4/cli/php.ini
Files /etc/php/7.4/apache2/php.ini and /etc/php/7.4/cli/php.ini differ
root@Gugeosigan:~# diff /etc/php/7.4/apache2/php.ini /etc/php/7.4/cli/php.ini
312c312
< disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
---
> disable_functions =
379c379
< expose_php = Off
---
> expose_php = On
388c388
< max_execution_time = 300
---
> max_execution_time = 30
409c409
< memory_limit = 128M
---
> memory_limit = -1
849c849
< max_memory_limifile_uploads = 20
---
> max_file_uploads = 20
root@Gugeosigan:~# diff -c /etc/php/7.4/apache2/php.ini /etc/php/7.4/cli/php.ini
*** /etc/php/7.4/apache2/php.ini Sun Dec 10 10:49:30 2023
--- /etc/php/7.4/cli/php.ini Sun Dec 10 11:04:29 2023
***************
*** 309,315 ****
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
; http://php.net/disable-functions
! disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names.
--- 309,315 ----
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
; http://php.net/disable-functions
! disable_functions =
; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names.
***************
*** 376,382 ****
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://php.net/expose-php
! expose_php = Off
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
--- 376,382 ----
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://php.net/expose-php
! expose_php = On
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
***************
*** 385,391 ****
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
! max_execution_time = 300
; 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
--- 385,391 ----
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
! 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
***************
*** 406,412 ****
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
! memory_limit = 128M
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
--- 406,412 ----
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
! memory_limit = -1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
***************
*** 846,852 ****
upload_max_filesize = 512M
; Maximum number of files that can be uploaded via a single request
! max_memory_limifile_uploads = 20
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
--- 846,852 ----
upload_max_filesize = 512M
; Maximum number of files that can be uploaded via a single request
! max_file_uploads = 20
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
upload_max_filesize = 512M
post_max_size = 512M
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
'IT' 카테고리의 다른 글
그누보드5 업로드한 동영상 본문에서 바로 (0) | 2024.03.31 |
---|---|
nano 편집기 사용법 (0) | 2024.03.31 |
그누보드5 업로드 파일 용량 제한 해제 (0) | 2024.03.31 |
gnu 메뉴 아래 유튜브 대신 이미지 (0) | 2024.03.29 |
USB-HDD 마운트 (0) | 2024.03.19 |