[苹果CMSV10教程]本地环境XAMPP安装苹果CMSV10相关函数配置

今天本地测试苹果CMSV10的时候发现好多函数/扩展不支持,有fileinfo、curl和always_populate_raw_post_data三个模块不支持,我用的是XAMPP搭建的本地环境,最后咨询度娘都一一解决了,下面把配置方法总结一下:

一、如何开启fileinfo扩展

进入php源码中的fileinfo目录,不同的版本,路径会有所不同,请根据实际情况,找到对应的目录。

cd /home/ming/lnmp1.3-full/src/php-7.0.7/ext/fileinfo/
执行phpize命令
>[danger]注意,该命令一定要在上面说到的fileinfo目录下执行
/usr/local/php/bin/phpize
如果执行成功,会有类似下面的信息
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
配置php-config路径,以自己服务器的实际路径为准
./configure --with-php-config=/usr/local/php/bin/php-config
编译安装
make && make install
如果安装成功,会有类似下面的信息
Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/
修改php.ini,在后面加入
extension = fileinfo.so;

最后重启php服务即可。

二、curl正确的开启方法如下:

1.打开php.ini文件,去掉extension=php_curl.dll前的 ";",确保php扩展文件下有php_curl.dll文件;(如果此时开启无效的话,则执行第二步)
2.php目录下libeay32.dll ssleay32.dll两个文件拷至 C:\Windows\System32;(如果此时开启仍无效的话,则执行第三步)
3.apache配置文件httpd中添加
LoadFile F:/amp/php/php5ts.dll
LoadFile F:/amp/php/libeay32.dll
LoadFile F:/amp/php/ssleay32.dll

至此,curl扩展开启成功,可通过phpinfo()函数查看。注意:配置完成后要重启apache;

三、always_populate_raw_post_data模块安装
这个是PHP参数处理函数,打开php.ini文件,去掉extension=always_populate_raw_post_data = -1前的 “;”,如果后面不是-1那就修改成-1即可。

RIPRO主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
ANY资源 » [苹果CMSV10教程]本地环境XAMPP安装苹果CMSV10相关函数配置

4 评论

  1. Howdy! I know this is kind of off topic but I was wondering if you
    knew where I could locate a captcha plugin for my comment form?

    I’m using the same blog platform as yours and I’m having difficulty finding one?
    Thanks a lot!

    1. Use the legal RiPro theme and bring your own plug-ins

  2. Howdy! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly?

    My weblog looks weird when browsing from my iphone.

    I’m trying to find a theme or plugin that might be able to fix this problem.
    If you have any recommendations, please share.
    Many thanks!

  3. Everything is very open with a clear clarification of the issues.
    It was definitely informative. Your website is extremely helpful.
    Many thanks for sharing!

发表评论

提供最优质的资源集合

立即查看 了解详情