things/QNAP 나스

아파치 php 파일 즉시 반영(php.ini) opcache.enable=0

sudo-rm-rf 2023. 1. 4.

자주 사용 경로

 

방법 1 - php.ini (큐냅 관리자 페이지 접속 - 웹서버- php.ini 에 내용 추가)

opcache.enable=0

 

방법 2 - .htaccess 

php_flag opcache.enable Off

 

방법 3 -  php 파일에 추가

<?php
	ini_set('opcache.enable', '0');
?>
 

 

  1. Use a screen-oriented text editor to edit apache.conf.
    1. Open /etc/config/apache/apache.conf
    2. Add any additional modules.
      For example: LoadModule allowmethods_module modules/mod_allowmethods.so
    3. Save and exit.
  2. Use the command /etc/init.d/Qthttpd.sh restart to reload Apache modules.
     

Viewing and confirming available Apache modules

  1. Use the command ls -a /usr/local/apache/modules to see available Apache module list
    .
  2. Use the command /usr/local/apache/bin/apachectl -M to confirm the Apache modules after reload .
    .
  1.  

Undoing changes to apache.conf

  1. Log in to QTS as an administrator.
  2. Go to Control Panel > Applications > Web Server > Web Server > Maintenance.
  3. Click Restore.

근데, sh 오류가 생겼다.. 아후 빡쳐.

어이없게, 그냥 웹에 접속해서, php.ini 를 수정하니 너무나 쉽게 잘 된다.

댓글