Enable PHP di SLackware 13

Ada 2 file konfigurasi yang perlu diedit.

1. httpd.conf terletak di /etc/httpd/

bash-3.1# vim httpd.conf

sama yang ini uncomment juga pada baris

# Uncomment the following line to enable PHP:
# Include /etc/httpd/mod_php.conf

menjadi

# Uncomment the following line to enable PHP:
 Include /etc/httpd/mod_php.conf

2. mod_php.conf terletak di /etc/httpd/

bash-3.1# vim mod_php.conf

uncommnet baris ini

# write any of your pages in straight HTML.
#AddType application/x-httpd-php .php .html .htm

# This will display PHP files in colored syntax form. Use with caution.
#AddType application/x-httpd-php-source .phps

menjadi
# write any of your pages in straight HTML.
AddType application/x-httpd-php .php .html .htm

# This will display PHP files in colored syntax form.  Use with caution.
AddType application/x-httpd-php-source .phps


3.php.ini terletak di /etc/httpd

bash-3.1# vim php.ini

; Allow the tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = Off

menjadi

; Allow the tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On



3. langkah selanjut nya restart apachectl

bash-3.1# /usr/sbin/apachectl restart 

kadang kala si apache tidak merespon bila menemui yang seperti ini apachectl nya di-stop lalu di-start lagi

Comments

Popular posts from this blog

authentication failure using SSH pam_unix(sshd:auth): authentication failure;

Howto configure SPLUNK Universal Forwarder

openvpn howto make OCSP server using OpenSSL [Part2]