«   2021/05   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
05-08 06:43
Notice
Today
9
Total
1,423,023
관리 메뉴

변군이글루

[ERROR] apache Syntax error 본문

* 리눅스

[ERROR] apache Syntax error

변군 변군이글루 2013. 9. 4. 22:20

[ERROR] apache Syntax error

 

[root@cacti html]# /usr/local/apache2/bin/apachectl -t

httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

 

[해결방법]

# restorecon -v /usr/local/apache2/modules

# cd /usr/local/apache2/modules/

# restorecon -v libphp5.so

restorecon reset /usr/local/apache2/modules/libphp5.so context root:object_r:usr_t:s0->system_u:object_r:lib_t:s0

# chcon -t texrel_shlib_t libphp5.so

# /usr/local/apache2/bin/apachectl -t

Syntax OK

 

[SElinux]

/etc/selinux/config

SELINUX=disabled

 

 

 

 

'* 리눅스' 카테고리의 다른 글

[mysql] mysql 환견변수값  (0) 2013.09.08
[리눅스] phpmyadmin 설치  (0) 2013.09.04
[ERROR] apache Syntax error  (1) 2013.09.04
[리눅스] mount 명령어  (1) 2013.09.04
[PHP] php(php-5.2.8) 설치  (0) 2013.09.03
[Apache] apache(httpd-2.2.12) 설치  (1) 2013.09.03
1 Comments
댓글쓰기 폼