Thread: php on lamp
hi everybody
installed lamp on ubuntu server..and put test html page in /var/www , working ok when log site internet..the problem is,yesterday tried write php code in html body didnt run?
u
martin
you need edit /etc/apache2/mods-enabled/php5.conf. file tells apache types of files pass php. may notice .html missing. make sure conf looks this:
notice how i've added .html there.code:<ifmodule mod_php5.c> addtype application/x-httpd-php .php .phtml .php3 .html addtype application/x-httpd-php-source .phps </ifmodule>
oh, , don't forget "apache2ctl restart" after edit.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] php on lamp
Ubuntu
Comments
Post a Comment