1.

Solve : Setting up a webserver for php-based content on localhost?

Answer»

Hello.

Before getting to the issue, i would like point out that this is for testing purposes only.



I have successfully installed Apache & XAMPP (MySQL included), but I have no idea what to do now.

This is my situation:

I can not access the phpMyAdmin MODULE correctly, as there is no "index.htm" or equivalent (Or i haven't found it) that relates to it.

http://192.168.1.4:8080/   brings me to a blank page that says "It works!"
http://192.168.1.4:8080/phpMyAdmin/   shows me a directory list with the title "Index of /phpMyAdmin"
http://192.168.1.4:8080/restricted/   brings me to a blank page that says "Remote auth testpage"
http://192.168.1.4:8080/forbidden/   shows me a directory list with the title "Index of /forbidden" and it only lists the readme.auth_remote.txt file
http://192.168.1.4:8080/*/   Would show me the directory LISTING for that folder

* = any other folder/file that exists


Later on, i would like to use this setup to try different php scripts and/or php forum engines


So, what is the next step ?Browse to http://127.0.0.1/ or http://localhost/.

Place any web PAGES you've created in the htdocs folder in the main xampp folder. You can browse to these by going to http://localhost// etc.Thanks for the reply, but i think you missed something:

Quote

I can not access the phpMyAdmin module correctly, as there is no "index.htm" or equivalent (Or i haven't found it) that relates to it.
Go to http://localhost/phpmyadmin/ ?So you already have looked at a tutorial on Apache for Windows as a virtual local host server?
If not, did you read this? Does the describe what you have done? The file index.php has to be KNOWN to Apache as the index file for the public directory.
http://johnbokma.com/windows/apache-virtual-hosts-xp.html
Pardon me if you already know all that.Looking around, it seems others are using the Windows service instead of Apache.
There are many like this one:
http://www.ehow.com/how_2069183_install-localhost-server-windows.html
But some do it with Apache and server 2000.
http://www.daniweb.com/forums/thread40167.html

This one looks interesting:
Quote
PHP SetCookie with Localhost and Apache
by FrosT
Introduction
As some developers may not know working with a localhost Apache and PHP server requires different setups than working with an actual domain name on a remote server. This article will discuss how to setup your script correctly to store localhost COOKIES with FireFox and Internet Explorer without too much   ...
http://www.aeonity.com/frost/php-setcookie-localhost-apache
I didn't understand what to do even after reading through those pages 4 times


And kpac: i can't use http://localhost/ because "CometBird can't establish a connection to the server at localhost."


Also, i forgot to mention that the are 2 htdocs folder, one in Apache's application folder and one in the XAMPP folder
When accessing http://192.168.1.4/ i access the Apache htdocs folderHave you got other server packages installed? If you have, uninstall everything and start again with XAMPP.Well, i have reinstalled XAMPP now and i can access phpMyAdmin fine from localhost/phpMyAdmin so i guess this means it's solved.


Thanks for taking your time to help


Discussion

No Comment Found