简体   繁体   English

laravel 5.3不解释index.php

[英]laravel 5.3 not interpreting index.php

I am new to laravel and was able to code a project on windows 7. i am using laravel 5.3. 我是laravel的新手,并且能够在Windows 7上编写项目。我正在使用laravel 5.3。

I am looking to deploy the project to my dedication cloud server which is running centos 6.8. 我希望将项目部署到运行centos 6.8的专用云服务器。

I am unable to get the laravel landing page to diplay which is the same page that you get when you initially create a laravel project. 我无法显示laravel登陆页面,该页面与您最初创建laravel项目时得到的页面相同。

I have installed composer on the centos server and the composer command is recognized globally. 我已经在centos服务器上安装了composer,并且composer命令在全球范围内都可以识别。 Laravel was installed to /var/www/laravel. Laravel已安装到/ var / www / laravel。

APACHE Version Server version: Apache/2.2.15 (Unix) Server built: Jul 18 2016 15:24:00 Server's Module Magic Number: 20051115:25 Server loaded: APR 1.3.9, APR-Util 1.3.9 Compiled using: APR 1.3.9, APR-Util 1.3.9 APACHE版本服务器版本:Apache / 2.2.15(Unix)服务器内部版本:2016年7月18日15:24:00服务器模块魔术编号:20051115:25服务器加载:APR 1.3.9,APR-Util 1.3.9编译使用:APR 1.3.9,APR-Util 1.3.9

PHP version php -v PHP 7.0.11 (cli) (built: Sep 15 2016 09:38:31) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.11, Copyright (c) 1999-2016, by Zend Technologies PHP版本 php -v PHP 7.0.11(cli)(内置:2016年9月15日09:38:31)(NTS)版权所有(c)1997-2016 The PHP Group Zend Engine v3.0.0,版权所有(c)1998-2016 Zend Technologies with Zend OPcache v7.0.11,Zend Technologies版权所有(c)1999-2016

Laravel Version laravel -V Laravel Installer version 1.3.3 Laravel版本laravel -V Laravel安装程序版本1.3.3

Composer installed in /bin/composer 安装在/ bin / composer中的作曲家

Laravel Key generated and added to /var/www/laravel/.env Laravel密钥已生成并添加到/var/www/laravel/.env

httpd.conf is default 默认是httpd.conf

I am rather new to laravel and deploying. 我对laravel和部署非常陌生。 can someone give me a detailed explanation of what needs to be modified so that the project can be available in the cloud. 有人可以给我详细说明需要修改哪些内容,以便可以在云中使用该项目。

Apache runs fine currently. Apache目前运行良好。

I followed this tutorial and it seems to be working now. 我遵循了本教程,它现在似乎可以正常工作。

http://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/ http://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/

Great link for 5.3 working with Ubuntu but the commands can be modified to use Yum instead and in place of nginx making use of apache. 5.3与Ubuntu一起使用的好链接,但是可以修改命令以使用Yum代替使用Apache的Nginx。

Thank you for the advises CeeJoz and Rob Fonseca 感谢您为CeeJoz和Rob Fonseca提供的建议

I upgraded from php 5.* to php 7 (see link below) I done a 我从php 5. *升级到php 7(请参阅下面的链接),我做了

yum remove php* 百胜删除PHP *

Then followed below instructions 然后按照以下说明

https://webtatic.com/packages/php70/ https://webtatic.com/packages/php70/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM