亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

php服務器的塔建

標簽:
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下,其内容如下

<?php

 phpinfo();

?>

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



點擊查看更多內容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優質文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學習,寫下你的評論
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學

大額優惠券免費領

立即參與 放棄機會
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

舉報

0/150
提交
取消