Skip to main content

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:
code:
<ifmodule mod_php5.c>   addtype application/x-httpd-php .php .phtml .php3 .html   addtype application/x-httpd-php-source .phps </ifmodule>
notice how i've added .html there.

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

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?