栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > PHP

php服务器的塔建

PHP 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

php服务器的塔建

1、获取安装包php.i686;

2、安装php.i686

rpm -ivh php.i686

3、配置apache让其支持php

vi

#

# AddType allows you to add to or override the MIME configuration

# file mime.types for specific file types.

#

#AddType application/x-tar .tgz

AddType application/x-httpd-php .php             \新添加语句(前面有空格)

AddType application/x-httpd-php-source .phps     \新添加语句(前面有空格)


4、配置PHP服务器

vi /etc/php.ini

; Whether or not to register the EGPCS variables as global variables.  You may

; want to turn this off if you don't want to clutter your scripts' global scope

; with user data.  This makes most sense when coupled with track_vars - in which

; case you can access all of the GPC variables through the $HTTP_*_VARS[],

; variables.

; You should do your best to write your scripts so that they do not require

; register_globals to be on;  Using form variables as globals can easily lead

; to possible security problems, if the code is not very well thought of.

; http://www.php.net/manual/en/ini.core.php#ini.register-globals

register_globals = On    \把register_globalsA的值改为on


5、启重apache

service httpd restart


6、测试PHP是否安装成功

写一个php测试页面info.php,放在apache的根目录/var/www/html下,其内容如下

 phpinfo();

?>

在浏览器上输入127.0.0.1/info.php,如果能正常显示出php信息,则说明PHP安装成功!



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/229765.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号