laravel 延伸 搭建pyrocms 环境

这篇博客记录了如何搭建PyroCMS环境,过程类似于安装Laravel。重点包括使用国内镜像安装Composer,扩展PHP的fileinfo插件,以及安装exif模块的详细步骤。最后提到了安装完成后需设置目录权限以确保正常运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

随手记录

搭建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.


给完就能配置了。哈哈



到此,安装结束

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值