Linux 安装apache php
yum install libxml2
yum install php
yum install httpd httpd-devel
安装完成后,用/etc/init.d/httpd start 启动apache 或者 service httpd start
设为开机启动:chkconfig httpd on
配置 httpd.conf 让apache支持PHP:
# vi /etc/httpd/conf/httpd.conf
找到 AddType application/x-gzip .gz .tgz 在其下添加如下内容
AddType application/x-httpd-php .php (.前面有空格)
AddType application/x-httpd-php-source .phps (.前面有空格)
修改端口
找到Listen 80
修改 Listen 8081
相关推荐
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23