安装PHPCMS 遇到的问题(fsockpen)

unzip zip安装包

当服务器没开启fsockopen功能的时候,用fsockopen会提示undefine fsockopen,解决办法如下:
第一步:在php.ini里
allow_url_fopen = On 设其值为On

第二步:编辑/usr/local/php/etc/php.ini 查找disable_functions
extension=php_openssl.dll 如果前面有分号,去掉分号

第三步、在禁用函数disable_functions中找到fsockopen,删除,重启web服务

第四步:重启web服务器,apache或IIS
/etc/init.d/php-fpm restart
重启WEB服务 service nginx restart

chmod -R 777 文件夹

posted @ 2013-04-16 12:03  为了这有限的生命  阅读(266)  评论(0编辑  收藏  举报