"MediaWiki does not function when magic quotes are enabled. Please see the PHP Manual for help on how to disable magic quotes."의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
1번째 줄: 1번째 줄:


==문제상황==
==문제상황==
<source lang='text'>
<syntaxhighlight lang='text'>
MediaWiki does not function when magic quotes are enabled. Please see the PHP Manual for help on how to disable magic quotes.
MediaWiki does not function when magic quotes are enabled. Please see the PHP Manual for help on how to disable magic quotes.
</source>
</syntaxhighlight>


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# cat /etc/php.ini | grep magic
[root@zetawiki ~]# cat /etc/php.ini | grep magic
[root@zetawiki ~]# php -i | grep magic_quotes
[root@zetawiki ~]# php -i | grep magic_quotes
12번째 줄: 12번째 줄:
magic_quotes_runtime => Off => Off
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
magic_quotes_sybase => Off => Off
</source>
</syntaxhighlight>


==변경==
==변경==
*/etc/php.ini를 열어 하단에 내용 추가
*/etc/php.ini를 열어 하단에 내용 추가
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# vi /etc/php.ini
[root@zetawiki ~]# vi /etc/php.ini
</source>
</syntaxhighlight>
<source lang='ini'>
<syntaxhighlight lang='ini'>
magic_quotes_gpc = Off
magic_quotes_gpc = Off
</source>
</syntaxhighlight>


==확인 2==
==확인 2==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# php -i | grep magic_quotes
[root@zetawiki ~]# php -i | grep magic_quotes
magic_quotes_gpc => Off => Off
magic_quotes_gpc => Off => Off
magic_quotes_runtime => Off => Off
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
magic_quotes_sybase => Off => Off
</source>
</syntaxhighlight>


==(필요시) 아파치 reload==
==(필요시) 아파치 reload==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# service httpd reload
[root@zetawiki ~]# service httpd reload
Reloading httpd:  
Reloading httpd:  
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:34 기준 최신판

1 문제상황[ | ]

MediaWiki does not function when magic quotes are enabled. Please see the PHP Manual for help on how to disable magic quotes.

2 확인[ | ]

[root@zetawiki ~]# cat /etc/php.ini | grep magic
[root@zetawiki ~]# php -i | grep magic_quotes
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off

3 변경[ | ]

  • /etc/php.ini를 열어 하단에 내용 추가
[root@zetawiki ~]# vi /etc/php.ini
magic_quotes_gpc = Off

4 확인 2[ | ]

[root@zetawiki ~]# php -i | grep magic_quotes
magic_quotes_gpc => Off => Off
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off

5 (필요시) 아파치 reload[ | ]

[root@zetawiki ~]# service httpd reload
Reloading httpd:

6 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}