laravel 延伸 搭建pyrocms 环境

来源:互联网 发布:欧元符号 mac 编辑:程序博客网 时间:2024/04/28 17:26

随手记录

搭建pyrocms 环境


和安装laravel一样

composer create-project pyrocms/pyrocms

安装

不过国外镜像经常被墙,所以直接用中文的镜像,具体查看composer 中文网


之后在lnmp上扩展php的fileinfo插件

具体操作类似

------引用

二、安装exif模块

安装exif不需要另外安装库,所以省略掉了安装库的步骤。

比如php的源码目录为:/root/lnmp1.3-full/src/php-5.4.45/

则执行:cd /root/lnmp1.3-full/src/php-5.4.45/ext/

我们要安装exif模块,执行cd exif/

再执行 /usr/local/php/bin/phpize 会返回如下信息:
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519

再执行以下命令:

[root@vpser imap]# ./configure --with-php-config=/usr/local/php/bin/php-config

[root@vpser imap]# make && make install

执行完返回:

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/

表示已经成功,再修改/usr/local/php/etc/php.ini

查找:extension = 再最后一个extension= 后面添加上extension = "exif.so"

保存,执行/etc/init.d/php-fpm restart 重启。


----引用结束

最重要的是,安装结束后给文件夹权限。


Directory Permissions 

After installing, you may need to configure some permissions in order to proceed. Directories within the storage,public/app, and the bootstrap/cache directories should be writable by your web server. If you are using theHomestead virtual machine, these permissions should already be set.


给完就能配置了。哈哈



到此,安装结束

0 0
原创粉丝点击