分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 网页技术

0545-配置apache实现与php的整合

发布时间:2023-09-06 01:06责任编辑:顾先生关键词:apache配置

整合

###########接下来配置apache httpd.conf来支持php####[root@web02 php-5.3.27]# cd /application/apache/conf/[root@web02 conf]# vi httpd.conf在大概318 319行的下面新增320行、321号的内容如下所示    318     AddType application/x-compress .Z    319     AddType application/x-gzip .gz .tgz    320 AddType application/x-httpd-php .php .phtml    321 AddType application/x-httpd-php-source .phps通过搜索/DirectoryIndex,在168行的DirectoryIndex index.html修改为DirectoryIndex index.php index.html在67行下增加:User wwwGroup www建立用户:然后检查语法[root@web02 conf]# ../bin/apachectl -tSyntax OK[root@web02 conf]# ../bin/apachectl gracefulhttpd not running, trying to start[root@web02 conf]# ../bin/apachectl starthttpd (pid 1838) already running[root@web02 conf]# ../bin/apachectl graceful


本文出自 “sandshell” 博客,请务必保留此出处http://sandshell.blog.51cto.com/9055959/1960324

0545-配置apache实现与php的整合

原文地址:http://sandshell.blog.51cto.com/9055959/1960324

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved