0
点赞
收藏
分享

微信扫一扫

运维 PHP问题汇总


1、Dede(织梦)发表文章时,内容自动添加关键字显示空白页

解决方法:

后台>系统>系统基本参数>核心设置>关键字替换(是/否),这里选择“是”。

后台>系统>系统基本参数>其他选项>自动提取关键字,这里选择“是”。

 

2、解决PHP168超级管理员上传图片提示你的空间不足

网站是用PHP168做的,反映使用管理员在后台无法上传图片,提示“你的空间不足,上传失败,你可以联系管理员帮你增大空间”,检查空间并无不足的现象,而使用管理员帐号admin登录发布图片则一切正常,用admin登录后台检查超级会员后台权限一切正常,怎么回事呢?

解决的方法:使用admin登录后台,进入会员管理,点击前台权限管理,修改权限,把空间大小修改一下,默认有的是0M。


3、Discuz论坛首页打开出现空白的原因及解决办法

原因分析及处理方法:

原因:可能空间超了导致的。

解决办法:增加空间或删除一些没用的文件使空间处于不超的状态,然后删除以下两个文件夹下所有文件 forumdata/cache 和 /forumdata/templates或把这两个文件夹改名重新创建出来。

之后出现提示:

Cache List: settings index ipbanned usergroup_7 style_ Caches successfully created, please refresh.

刷新,恢复正常


4、Php程序报错 Using call-time pass-by-reference which has been deprecated

站点出现: Using call-time pass-by-reference which has been deprecated 等类型的报错。

解决办法:修改etc/php.ini将allow_call_time_pass_reference 中的OFF修改成TRUE


5、Linux虚拟主机打开报“Internal Server Error”500错误的解决方法

具体报错如下:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


解决方法:检查数据库连接文件是否正确。

 

6、linux操作系统301重定向

在网站根目录新建伪静态规则文件.htaccess (需要服务器支持伪静态)

 

加入如下内容,即可实现将yourdomain.com跳转到www.yourdomian.com

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]

RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]


7、行业建站程序安装通不过验证

对于服务器均已经禁用了fsockopen  行业建站程序在安装的时候会提供无法通过验证

只需要将/base/nusoap/nusoap.php把里面的fsockopen 改成pfsockopen即可


8、Mysql导入中文显示乱码

1检查sql脚本本身是否存在乱码。

2登陆phpmyadmin设置

举报

相关推荐

0 条评论