首页 技术 正文
技术 2022年11月22日
0 收藏 823 点赞 4,928 浏览 862 个字

  前面我们介绍我了 composer安装,这里我们接着来介绍 Laravel框架的安装。

  这里我们安装的是laravel 4

  项目下载地址:https://github.com/laravel/laravel

  安装要求:

  1、PHP最低版本:5.3.7

  2、支持 mcrypt 扩展

  3、支持 openssl 扩展

  另外,需要支持 proc_open、proc_get_status函数,自己在安装过程中,因为不支持这2个函数,安装报错失败了

  [Symfony\Component\Process\Exception\RuntimeException]

  The Process class relies on proc_open, which is not available on your PHP installation.

  [ErrorException]

  proc_get_status() has been disabled for security reasons

  可以通过php配置文件中的disable_functions查看是否支持这2个函数。

  进入正题,Laravel安装方法:

  1、下载安装包,解压

  2、进入解压目录,执行命令

  composer install

  安装过程中会下载一些框架核心包,慢慢等待即可。

  安装完成后通过URL地址访问:

雷林鹏分享:Laravel 安装

  这里需要提醒一下:要把域名解析到public目录,才可以正常访问

  listen 80;

  server_name www.laravel.com;

  index index.html index.htm index.php default.html default.htm default.php;

  root /home/wwwroot/www.laravel.com/public;

  一开始时自己把域名解析到 /home/wwwroot/www.laravel.com 目录,通过域名范围后报404错误。文章转载自 [http://www.php230.com](编辑:雷林鹏 来源:网络 侵删)

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,104
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,581
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,428
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,200
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,835
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,918