linux+apache+laravel配置本地环境,出现php不执行,直接输出在页面上
输出内容*//*|--------------------------------------------------------------------------|R...
输出内容
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require 'vendor/autoload.php';
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/* 展开
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require 'vendor/autoload.php';
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/* 展开
1个回答
展开全部
有可能是你没装php,在终端输入php -v,看看是否返回有php的版本信息,如果没有就是没安装,建议重新配置lamp环境,如果单独装php的话需要重新设置apache以及mysql的配置文件,使其支持php。
解决办法:重新安装lamp环境,基于ubuntu发行版的话,参考这个链接:http://community.linuxmint.com/tutorial/view/486 ,如果是其他的发行版,可百度搜索该发行版下的lamp环境配置步骤
解决办法:重新安装lamp环境,基于ubuntu发行版的话,参考这个链接:http://community.linuxmint.com/tutorial/view/486 ,如果是其他的发行版,可百度搜索该发行版下的lamp环境配置步骤
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询