Nov 21, 2009
Pages: 1, 2

Help: Setting Default Index Page on XAMPP Web-Server - Need some Help!

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Software > Internet & Network Clients/Servers

Help: Setting Default Index Page on XAMPP Web-Server - Need some Help!

Jimmy89
i have just installed XAMMP (win32 version) onto a spare computer just to see if i could get my own home web server going. the install went fine and i managed to get all the of components installed.

but, when i go to http://localhost/ it directs me to the administrator page (http://localhost/xampp/) and not to my htdocs folder where all my files are stored.

when i type in http://localhost/index.html this will take me to the page i want, but i want to be able to just type in localhost or the IP address of the computer to access the page!

how is there a way of doing this, or am I just have to keep entering the page name after localhost each time

thanks for your help
-jimmy

Comment/Reply (w/o sign-up)

toby
Either edit the php.ini (I hated Xampp, so not sure), or add something to your hosts file to direct something like www.local.host to that file.

Comment/Reply (w/o sign-up)

Jimmy89
thanks. im actually away from my computer now, so i'll give it a go and get back to you!

thanks
-jimmy

Comment/Reply (w/o sign-up)

iGuest-Jacques
PHP Admin
Help: Setting Default Index Page on XAMPP Web-Server

Http://localhost worked before I change the "file"(php test sites) folder directory to test. Now my pages work but I can't get onto the PHP/MySQL home page where you configure the databases. Please help!

-question by Jacques

Comment/Reply (w/o sign-up)

iGuest-Ashwin Perti
not able to work in xampp
Help: Setting Default Index Page on XAMPP Web-Server

I had installed xampp sucessfully, but the problem is that I am unable to see the welcome apge from where.

I can go to PhpMyAdmin.

-question by Ashwin Perti
-------------- admin reply ----------

Execute XAMPP and make sure APACHE is running.
Open your Browser and type :- http://localhost/


Comment/Reply (w/o sign-up)

iGuest-mike
Help: Setting Default Index Page on XAMPP Web-Server - Need some Help!
Help: Setting Default Index Page on XAMPP Web-Server

Replying to iGuest
Just copy the xampp folder into your test directory and you should be fine.
Just make sure you keep it in the root of your working directory.

-reply by mike

Comment/Reply (w/o sign-up)

magiccode9
You could change the default index file by opening httpd.conf file.

Open httpd.conf from path your have installed xmpserver or apache2\conf directory.
find a string "<Directory>" that includes an value that point to your document root directory.

Add or change a line that start with "DirectoryIndex ..." to "DirectoryIndex index.html index.php"

e.g.
For instance, you have installed xmpserver or apache2 to c:\program files\xmpserver2
then xmpserver_root = c:\program files\xmpserver2

Open the httpd.conf file from a path like [xmpserver_root]\conf\httpd.conf

Search for a string that look like this, "<Directory '[xmpserver_root]'>"
Then, add or modify the setting of "DirectoryIndex" look like this,

CODE
DirectoryIndex `page list`


the page list is a space separated list of default you wish server to use when a request arrived to the server, such as,

CODE
DirectoryIndex index.html index.php


save and restart xmpserver or apache2 server and test it.

P.S Besides the above method. You may also put the DirectoryIndex directive outside of any Directory directive.

 

 

 


Comment/Reply (w/o sign-up)

(G)Abyooda
Index Page
Help: Setting Default Index Page on XAMPP Web-Server

I am in love with XAMPP Apache server, I don't like the Microsoft policies, long live freedom..

to let your index.Html work instead of the http://localhost/xampp/, simply go to the htdocs folder and delete the index.Php file

-reply by Abyooda


Comment/Reply (w/o sign-up)

(G)Udayakumar
Viewing and editing the Index page - Xampp
Help: Setting Default Index Page on XAMPP Web-Server

Hi Ashwini,

The index file/ home page will be stored in /Xampp/htdocs . It can be either a index.Php or index.Html. You can edit one and rename the other one so that you can view your home page by opening your browser and typing in http://localhost.

Feel free to ask questions here.

-reply by Udayakumar


Comment/Reply (w/o sign-up)

(G)

For those that don't want to delete the index.Php file, there is a line when you open up that file that says: header('Location: '.$uri.'/xampp/'); 

You can change the '/xampp/' to '/index.Html' or whatever else you have happen to want the default webpage to open up as.  




Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : xampp, web, server

  1. Wamp Server Problems
    (29)
  2. Altiris Deployment Server: Creating Boot Disks (remote)
    Create a boot disk for remote deployment (RDEPLOY or IBCLIENT) without (2)
    The default behavior for creating Altiris boot disks requires the network administrator to be
    physically located near the deployment server to pop in a floppy disk and right-click to create.
    However, if the deployment server is running terminal services and you have sufficient rights to
    access the Deployment Service, the Boot Disk Creator allows you to copy the actual files that are
    written to the disk during boot disk creation. First, make sure your target location can be browsed
    as a Windows folder. You might even set up a local writable NTFS share. Within Altiris Dep....
  3. Problem With Apache In Xampp
    (2)
    I use XAMPP as the development server on my laptop but recently the Apache version bundled
    hasn't been working saying that there are "no listening sockets available". It is currently set
    to the default port of 80 but even when I cahnge it to something unused it still doesn't work.
    I can't find a version of XAMPP with Apache 1 installed as I heard that downgrading it might
    work. I can't thinkof anything that would cause it to stop working but even when I close all the
    programs and stop running all the background services except explorer it still doesn'....
  4. Need Help/ideas In Setting Up A Jabber Network
    (2)
    Well, I'm interested on setting up a Jabber network, but I don't have any extra hardware
    laying around to set it up at home. I was wondering if there are free servers that let me make
    Jabber available to the world. xboxrulz....
  5. Dedicated Teamspeak 2 Server- Need Help
    Cant setup my router, forgot what to do (4)
    Well Teamspeak 2 Is a dedicated server client and i turn it on and go to my router, I go to the
    firewall and thats where i forgot what to put if you can please help me the setup for my router
    firewall is as follows: Wan or Lan put ip source beginning then end Wan or Lan put ip destination
    beginning then end Port type ts2 is 8767 UDP i got that part just the main IP entering part please
    if you can help me i have a D-link SI-524.....
  6. Need Urgent Help With Xampp Installation
    Your help is needed badly!!!! (6)
    Now I installed xampp on my computer, apparently you have to do things in a certain order and I
    don't think I did cause nothings working, I can't delete the folder, mysqld access is
    denied, something like that and I don't know how to uninstall. Can someone help me with my
    program and help me install it properly step by step so I can get it to work so I can open php files
    in IE and become able to edit php files offline. Your Help and Support is very much appreciate.....
  7. Integrated Local Server
    Integrated package for Local Host Server (0)
    Friends In this Topic we shall discuss about the integrated local hosting packages utilising open
    source Products like Apache Server, php python Mysql and others as a single consolidated software.
    the above software shall be for various platforms like Windows , Linux, Macintosh etc.. Members may
    also suggest other package slike addon setup for IIS 5 that comes as attachment with windows 2000
    and IIS 6 that comes as attachment with Windows server system or shortly windows 2003 .net server,
    we shall go on for integrative softwares that increases the productivity of a....
  8. Apache And Merlin
    local host server (12)
    I downloaded both but I think I only need one but not sure, and can I start using them before I have
    a website?....

    1. Looking for xampp, web, server

See Also,

*SIMILAR VIDEOS*
Searching Video's for xampp, web, server
advertisement



Help: Setting Default Index Page on XAMPP Web-Server - Need some Help!

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com