Page 1 of 1

Apache will not point to custom webpage

PostPosted: 21. June 2006 20:45
by stony1205
I installed XAMPP correctly, and everything is working when I vew the status window in the xampp control panel.

However, any time I change my document root to where my website is stored, it says it cannot find the "/xampp/" directory. The only page that apache will display is the control panel for xampp. I can't actually get it to host my actual website.

Help?

~ Stony

PostPosted: 26. June 2006 21:49
by riorobert
I got the same exact issue , I don't recall in the past having this much problem. I am using fedora core 5 with the latest xampp 153a , trying to config oscommerce

Home page problem

PostPosted: 25. July 2006 17:07
by ponsfrilus
Just delete or rename /opt/lampp/htdocs/index.html

Create /opt/lampp/htdocs/index.php with in it:
Code: Select all
<?php
header("Location: http://www.example.com/"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>

according to: http://ch2.php.net/header

It will also possible to edit this ligne of /opt/lampp/htdocs/index.html :
Code: Select all
<meta http-equiv="refresh" content="0;url=/xampp/">
and change the /xampp/ to your wondered location...

BE SURE TO CLEAN UP YOUR CACHE BEFORE, you can also try to restart lampp...