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
<?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
阅读全文
0 0
- lamp 中php解析中遇到不能解析的解决办法
- LAMP中php安装后的解析失败问题
- ubuntu中不能解析php文件
- 关于phpStudy测试php时遇到解析不了的解决办法
- php调取webservice时解析xml遇到'<'和'>'的解决办法
- 在cocos2dx2.2.3中遇到的error LNK2019: 无法解析的外部符号 _libiconv_closexxxxxxx的解决办法
- 在cocos2dx2.2.3中遇到的error LNK2019: 无法解析的外部符号 _libiconv_closexxxxxxx的解决办法
- LAMP中php的配置
- 解析xml中遇到问题
- PHP开发WAP过程中“XML 解析失败: 语法错误 (行号: 1, 字符: 0) ”的解决办法
- 解析php中$_REQUEST的用法
- 解析php中$_REQUEST的用法
- IIS不能解析.asp的文件解决办法
- JSP 不能解析EL表达式的解决办法
- PHP中SESSION不能跨页传递问题的解决办法
- PHP中SESSION不能跨页传递问题的解决办法
- PHP中SESSION不能跨页传递问题的解决办法
- php程序中不能使用mb_开头的函数解决办法
- java_文件输入与输出
- Java 8 将Stream转换为List
- JDBC Unit01 JDBC原理 、 JDBC基础编程
- Kotlin入门指南
- 20170618总结
- lamp 中php解析中遇到不能解析的解决办法
- IP地址
- 使用maven构建多模块项目(一)
- 死锁
- Redis基本介绍
- jsp实现数据库连接
- AntShares 区块链的智能合约(FunctionCode)外传数据
- 程序设计实践课的感受
- C++ STL容器参考手册 (总册)