Linux常见服务开启

1、Apache开启shtml

要实现Apache支持shtml伪静态则需要开启SSI并可支持用shtml来include网页文件

1、开conf目录下的httpd.conf文件,搜索“AddType text/html .shtml”,找到# AddType text/html .shtml# AddOutputFilter INCLUDES .shtml把这两行前面的#去掉 。

2、搜索“Options Indexes FollowSymLinks”在搜索到的那一行后面添加“Includes”即将该行改变为“Options Indexes FollowSymLinks Includes”

3、保存httpd.conf,重起Apache即可。

2、PHP开启allow_url_fopen函数

找到PHP配置文件php.ini,找到如下数据将“Off”更换为“On”,重启Apache服务

; Whether to allow the treatment ofURLs (like http:// or ftp://) as files.

allow_url_fopen = Off

; Whether to allow include/requireto open URLs (like http:// or ftp://) as files.

allow_url_include = Off

3、PHP添加PDO_Mysql扩展

参考:http://www.woiit.net/archives/168

4、PHP添加PDO_Pgsql扩展

参考:http://www.woiit.net/archives/201

5、待续!

最有效的资本是我们的信誉,它24小时不停为我们工作。

Linux常见服务开启

相关文章:

你感兴趣的文章:

标签云: