I installed LAMP
sudo tasksel install lamp-server
I can run my site, but the php code is just displayed as text.
I have tried this solution, but it didn't help me.
When I try to run php script with terminal:
user@pc:~/ooo$ php index.htm
I get just php code.
When
sudo /etc/init.d/apache2 status
php -v
I get
* apache2 is running
PHP 5.5.9-1ubuntu4 (cli) (built: Apr 9 2014 17:11:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
How to solve this?
sudo apt-get install lamp-server^
. Maybe there are packages you left out..<?php ...code... ?>
test.php
or whatever you like with the.php
extension, then open that file and let us know whether the output Hello World can be seen??