Heim > Backend-Entwicklung > PHP-Tutorial > 【php apache 诡异的有关问题】

【php apache 诡异的有关问题】

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-13 13:13:05
Original
1048 Leute haben es durchsucht

【php apache 诡异的问题】
【php apache 诡异的问题】
描述: 
1.apache 的配置文件http.conf中 documentroot= d:/www 
2.d:/www 中index.html 文件,在浏览器中显示it works 。代码如下:

it works


  在地址栏输入localhost 可以成功打开页面。
3.d:/www 中 ind.php 文件,代码如下:
  echo "welcom"?>
  在地址栏输入localhost/ind.php 可以成功打开页面。页面显示welcome.
4.d:/www/php (文件目录改变了)中 index.php 文件(内容与ind.php一样),代码如下:

  echo "welcome"?>
  在地址栏输入localhost/php/ind.php ,提示错误信息404,not found. 

说明文字有点长,但是实在是没弄明白这是什么情况 ,求路过高手给个解,拜谢~~
  





------解决方案--------------------
请检查
1、php是否加载成功
2、x-application是否已经配置
3、php.ini的short_open_tag是否打开
------解决方案--------------------
完整的错误信息是什么
------解决方案--------------------
你是说
d:/www/ind.php 可以用 http://localhost/ind.php 访问到

d:/www/php/ind.php 不能用 http://localhost/php/ind.php 访问到

是这样吗?


Verwandte Etiketten:
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Aktuelle Ausgaben
PHP-Datenerfassung?
Aus 1970-01-01 08:00:00
0
0
0
PHP-Erweiterung intl
Aus 1970-01-01 08:00:00
0
0
0
Wie man PHP gut lernt
Aus 1970-01-01 08:00:00
0
0
0
Mehrere PHP-Versionen
Aus 1970-01-01 08:00:00
0
0
0
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage