หลังจากที่ติดตั้งอะไรเรียบร้อยหมดแล้ว เรียก mod userdir ใช้ได้แล้ว เรียกไฟล์ html ขึ้นแล้ว แต่ปรากฏว่าเรียกใช้ไฟล์ php ไม่ได้ซะงั้น ไล่ไปไล่มาเจอต้นตอของปัญหาคือ /etc/apache2/mods-available/php5.conf <IfModule mod_php5.c> <FilesMatch “\.ph(p3?|tml)$”> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch “\.phps$”> SetHandler application/x-httpd-php-source </FilesMatch> # To re-enable php in user directories comment the following lines # (from <IfModule …> to </IfModule>.) Do NOT set it to On as it # prevents .htaccess files
(More)…







Twitter
Facebook
GooglePlus