安装php7
install-php7-ub16.sh
#! /bin/sh
# 这里我准备安装PHP7.0版本的,在命令行输入:
sudo apt-get install php7.0 -y
# 我们还需要让mysql能够和php互动,安装php的mysql插件:
sudo apt-get install php7.0-mysql -y
# Composer 中文网致力于推广 PHP 世界的包管理工具 Composer 在国内的普及以及独立开发并维护 Packagist 中国全量镜像系统
sudo apt-get install composer -y
#
sudo apt-get install -y php-cgi
## http://caucho.com/download/quercus-4.0.39.war
让tomcat跑起php(caucho quercus简单用法,tomcat运行php)
Quercus的用法其实就是一个Servlet,使用这个方法后包错。
/home/cmes/workspace/sousa/tomcat8/webapps/quercus-4.0.39
/ThinkPHP/Library/Think/Think.class.php:252: Fatal Error: 'think\c' is an unknown function.
改chmod -R 777 * 还是不行。
有人说需要升级ThinkPhp版本,有人说需要改配置,这就扯淡了.
采用第2种方式。