我安装了LAMP
sudo tasksel install lamp-server
我可以运行我的网站,但是php代码只是显示为text。
我已经尝试过此解决方案,但并没有帮助我。
当我尝试使用终端运行php脚本时:
user@pc:~/ooo$ php index.htm
我只得到php代码。
什么时候
sudo /etc/init.d/apache2 status
php -v
我懂了
* 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
怎么解决呢?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句