PHP Install Help Required

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

(Re-)start.
And the link is missing an l
http://localhost/test_xampp.php
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

volka wrote:(Re-)start.
And the link is missing an l
http://localhost/test_xampp.php
I can see that causing a 'server cannot be found' error. :P
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

Right I uninstalled XAMPP and re-installed it, so I'm going to start a fresh.

How do I find the localhost:80 and do all the correct settings so I can use it.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

forget localhost:80
start xampp / make sure xampp is running
make sure there is a file test_xampp.php in C:\xampp\htdocs
if there is no such file use the text editor to create the file and put the content mentioned earlier in that file, save the file, close the texteditor
click link http://localhost/test_xampp.php
What happens then?
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

It comes up with Index of /test_xampp.php
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

:?:
Index of a file?
Did you right click in the windows explorer and chose New->Folder?
Then you have create a folder, not a file.
Last edited by volka on Fri Jul 06, 2007 8:16 am, edited 1 time in total.
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

This is what comes up.

Index of /test_xampp.php

Icon Name Last modified Size Description[DIR] Parent Directory -
[ ] test_xampp.php 06-Jul-2007 13:29 27

Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2 Server at localhost Port 80
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

volka wrote:Did you right click in the windows explorer and chose New->Folder?
Then you have create a folder, not a file.
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

Yeah I did, was that wrong?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Si. Now, you should make the file like volka asked you to.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

In case you're doing this on purpose: ha ha, not funny.
If not I suggest you ask someone who can be physically present and see what you're doing. It may take years otherwise (no offense).
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

I'm not doing as a bit of fun, I'm trying to get working, just dun it the way you said and it came up with this 5.2.2.

Can someone please delete this thread?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Ok, you see php is working.
The phpinfo() page already told us but now you also know you can create a new php script and it is executed by your webserver.
Happy php'ing ;)
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

Thank you so for the inconvenience I may have caused.

I'm going to add a template to it once I've worked out how to do that then play with the coding.
Post Reply