简体   繁体   English

使用 Xampp 找不到对象

[英]Object not found using Xampp

i am facing error by using Xampp server error is:我使用 Xampp 服务器时遇到的错误是:

Error 404
localhost
Apache/2.4.41 (Win64) OpenSSL/1.0.2s PHP/7.1.33

my all files are locate in htdocs file我的所有文件都位于 htdocs文件中

index.php opened successfully but when i can move from another page school.php, contact.php, about.php its give me error kindle tell me reason behind it index.php 成功打开,但是当我可以从另一个页面移动时

XAMPP sets a default as Program Files/Xampp/Htdocs/xampp

YOU ARE ALREADY IN HTDOCS…

try doing ahref=…/ in your directory…see if that works, if not…

try editing your xampp.conf file.

it is located in your xampp/apache folder
mine is (C:/Program Files/Xampp/Apache/conf/extra/xampp.conf)
(it might actually be xampp.htconf or something, but you’ll see it…its the only one with the xampp)…

copy the PhpMyAdmin section, and paste it below.

change the /phpmyadmin to /htdocs or whatever you want to beshown after http://localhost 633.

Then you’ll need to set up the doc root as well, this just tells apache where to serve the file from…

DONT SET UP as HTDOCS though because apache will go in a huge loop and consume all your CPU…i know i’ve tried.

anyway, i have a couple set up…

my document root is soemthing like:

c:/program files/xampp/htdocs/production/kreative

so you will see my main site,
but i have also set up
/phpmyadmin
/xampp
/development(which goes to c:/program files/xampp/htdocs/xampp/development).

Its nice if you add an .htacessfile to those directories you want to use
(like for me the phpmyadmin etc…don’t want my visitors using those).

Hope this helps.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM