解决apache启动错误 AH00558: httpd: Could not reliably determine

[root@localhost httpd-2.4.7]# /usr/local/httpd/bin/apachectl start

AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message

apache 启动出现这种错误的解决方法:

将 apache 的配置文件httpd.conf中的 ServerName 改成可用域名或如下配置

ServerName localhost:80

安装Apache提示APR not found的解决办法

#./configure --prefix……检查编辑环境时出现:

checking for APR… no
configure: error: APR not found . Please read the documentation.

可以用./configure -help | grep apr 查看帮助。
--with-included-apr Use bundled copies of APR/APR-Util
--with-apr=PATH prefix for installed APR or the full path to apr-config
--with-apr-util=PATH prefix for installed APU or the full path to

Read More

phpcms文件结构

主要目录部分

/admin 管理后台目录
– /skin/ 后台样式
– /templates/ 后台样式模板

/api api接口

/corpandresize 在线图片处理
– /css/ csss样式
– /images/ 图片
– /js/ 引用js文件
– /tmp/ 临时文件

Read More

PHPCMS的自增长标签

设置幻灯片的时候,需要用到自增长ID。

1
2
3
<div class="tt_pic"><img src="images/1.gif" /></div>
<div class="tt_pic"><img src="images/2.gif" /></div>
<div class="tt_pic"><img src="images/3.gif" /></div>

在对图片进行循环时,可以替换成{$n}.gif。

如果从2开始自增长:{php echo $n+1}