Saya akan berbagi pengalaman nih disini. saat saya mau restart apache2 nya tranyata ada yg error.
# /etc/init.d/apache2 restart
Syntax error on line 219 of /etc/apache2/mods-enabled/mime.conf:
AddHandler requires at least two arguments, a handler name followed by one or more file extensions
Action 'configtest' failed.
The Apache error log may have more information.
failed!
(nah itu sob errornya)
trus saya buka di direktori :
# vi /etc/apache2/mods-enable/mime.conf
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script
AddHandler php5-scrip .php
#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis
pada baris ke 219 yg berwarna merah itu, paling depan saya beri pagar (#) jadi sperti ini
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script
AddHandler php5-scrip .php
#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis
lalu save dan coba di restart lagi apache2 nya
# /etc/init.d/apache2 restart
[ ok ] Restarting web server: apache2 ... waiting .
dan berhasil direstart :D
# /etc/init.d/apache2 restart
Syntax error on line 219 of /etc/apache2/mods-enabled/mime.conf:
AddHandler requires at least two arguments, a handler name followed by one or more file extensions
Action 'configtest' failed.
The Apache error log may have more information.
failed!
(nah itu sob errornya)
trus saya buka di direktori :
# vi /etc/apache2/mods-enable/mime.conf
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script
AddHandler php5-scrip .php
#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis
pada baris ke 219 yg berwarna merah itu, paling depan saya beri pagar (#) jadi sperti ini
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script
AddHandler php5-scrip .php
#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis
lalu save dan coba di restart lagi apache2 nya
# /etc/init.d/apache2 restart
[ ok ] Restarting web server: apache2 ... waiting .
dan berhasil direstart :D
0 komentar:
Posting Komentar