apache - php文件访问不了

WBOY
Release: 2016-06-06 20:39:53
Original
1309 people have browsed it

sudo apt-get install libapache2-mod-php5 php5 php5-gd php5-mysql
都已经成功。

Apache下还添加了下面代码

<code>AddHandler  php5-script     php
AddType     application/x-httpd-php        .php .php5
AddType     application/x-httpd-php-source .phps
</code>
Copy after login
Copy after login

Apache2正常,浏览器访问var/www/下html文件正常,访问有<?php print("Hello."); ?>的php文件正常,但不能访问<?php phpinfo(); ?>的php文件,且IP好像还要被封5分钟左右。。。这是php没安装好么?

操作系统为Ubuntu 14.04 LTS.

网上找了好多种方法都不成功,麻烦大家帮忙分析一下,谢谢啦~~

回复内容:

sudo apt-get install libapache2-mod-php5 php5 php5-gd php5-mysql
都已经成功。

Apache下还添加了下面代码

<code>AddHandler  php5-script     php
AddType     application/x-httpd-php        .php .php5
AddType     application/x-httpd-php-source .phps
</code>
Copy after login
Copy after login

Apache2正常,浏览器访问var/www/下html文件正常,访问有<?php print("Hello."); ?>的php文件正常,但不能访问<?php phpinfo(); ?>的php文件,且IP好像还要被封5分钟左右。。。这是php没安装好么?

操作系统为Ubuntu 14.04 LTS.

网上找了好多种方法都不成功,麻烦大家帮忙分析一下,谢谢啦~~

apache安装时是否引用了php模块?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template