linux?????????php??????
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux?????????php??????相关的知识,希望对你有一定的参考价值。
?????????tcp only nat ?????? htm put ?????? name ima
1.???????????????Centos 7
2.???????????????Apache php
3.???????????????
1>.??????Apache ?????????yum intsall httpd
2>.?????????????????????service httpd sytatus ?????????????????????????????????
??????service httpd restartservice httpd startservice httpd stop
3.??????apache?????????????????????/etc/httpd/conf/httpd.conf,???????????????80?????????????????????
???????????????????????????????????????????????????????????????p?????????
Server Name www.example.com:80---localhost:80
4.???????????????80??????????????????????????????????????????80?????????
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 80 -j ACCEPT
?????????????????????
5.????????????php????????????????????????php???yum install php,???????????????????????????httpd?????????
6.??????apache????????????????????????/var/www/html??????????????????phpinfo.php??????????????????<?php phpinfo();?>
????????????apache server banner?????????????????????????????????
????????????/etc/httpd/conf/httpd.conf?????????
??????apache?????????????????????
ServerTokens ProductOnly
ServerSignature Off
以上是关于linux?????????php??????的主要内容,如果未能解决你的问题,请参考以下文章