lamp 中php解析中遇到不能解析的解决办法

来源:互联网 发布:数据挖掘工程师辛苦吗 编辑:程序博客网 时间:2024/04/30 08:49
[root@wenxiang ~]# curl localhost/1.php
<?php
echo "axianglinux";
echo "\n";
?>

[root@wenxiang ~]# /usr/local/apache2/bin/apachectl -M |grep -i php
 php5_module (shared)
Syntax OK
[root@wenxiang ~]# vi /usr/local/apache2/conf/httpd.conf
[root@wenxiang ~]# vi /usr/local/apache2/conf/httpd.conf
[root@wenxiang ~]# getenforce
Enforcing
[root@wenxiang ~]# vim /etc/selinux/config
[root@wenxiang ~]# getenforce
Enforcing
[root@wenxiang ~]# iptables -nvL
Chain INPUT (policy ACCEPT 145K packets, 518M bytes)
 pkts bytes target     prot opt in     out     source               destination


Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination


Chain OUTPUT (policy ACCEPT 132K packets, 10M bytes)
 pkts bytes target     prot opt in     out     source               destination
[root@wenxiang ~]# ps aux |grep httpd
daemon    9138  0.0  0.7  23564  8024 ?        S    23:24   0:00 /usr/local/apache2/bin/httpd -k restart
daemon    9139  0.0  0.7  23564  8024 ?        S    23:24   0:00 /usr/local/apache2/bin/httpd -k restart
daemon    9140  0.0  0.7  23564  8024 ?        S    23:24   0:00 /usr/local/apache2/bin/httpd -k restart
daemon    9141  0.0  0.8  23564  8512 ?        S    23:24   0:00 /usr/local/apache2/bin/httpd -k restart
daemon    9142  0.0  0.7  23564  8024 ?        S    23:24   0:00 /usr/local/apache2/bin/httpd -k restart
root      9176  0.0  0.0   6044   796 pts/1    S+   23:31   0:00 grep httpd
root     30670  0.0  0.9  23564  9728 ?        Ss   22:34   0:00 /usr/local/apache2/bin/httpd -k restart
[root@wenxiang ~]# service iptables save
iptables:将防火墙规则保存到 /etc/sysconfig/iptables:     [确定]
[root@wenxiang ~]# getenforce
Enforcing
[root@wenxiang ~]# curl localhost/1.php
<?php
echo "axianglinux";
echo "\n";
?>
[root@wenxiang ~]# date
2017年 06月 18日 星期日 23:32:07 CST
[root@wenxiang ~]# /usr/local/apache2/bin/apachectl restart (最关键)
[root@wenxiang ~]# !ps
ps aux |grep httpd
daemon    9213  0.0  0.9  29736  9384 ?        S    23:32   0:00 /usr/local/apache2/bin/httpd -k restart
daemon    9214  0.0  0.9  29736  9384 ?        S    23:32   0:00 /usr/local/apache2/bin/httpd -k restart
daemon    9215  0.0  0.9  29736  9384 ?        S    23:32   0:00 /usr/local/apache2/bin/httpd -k restart
daemon    9216  0.0  0.9  29736  9384 ?        S    23:32   0:00 /usr/local/apache2/bin/httpd -k restart
daemon    9217  0.0  0.9  29736  9384 ?        S    23:32   0:00 /usr/local/apache2/bin/httpd -k restart
root      9219  0.0  0.0   6044   800 pts/1    S+   23:32   0:00 grep httpd
root     30670  0.0  1.1  29736 11612 ?        Ss   22:34   0:00 /usr/local/apache2/bin/httpd -k restart
[root@wenxiang ~]# curl localhost/1.php
axianglinux
原创粉丝点击