Forum Moderators: coopster

Message Too Old, No Replies

xampp

please help

         

sandro123

5:33 am on May 21, 2005 (gmt 0)

10+ Year Member



ok i have installed xampp evrything is installed correctly i think but now im really lost with php5 phpmydmin apache zendoptimizer mysql wat is all this stuff all i no is that apache is a webserevr and php is a scripting launguage, can anyone tell me how i can start making my website? thx

sandro123

5:58 am on May 21, 2005 (gmt 0)

10+ Year Member



where is my root directory in apache?

jatar_k

6:06 am on May 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



usually called htdocs, search for it, it should find it

sandro123

6:11 am on May 21, 2005 (gmt 0)

10+ Year Member



ive found it and ive made a text file named hello.php for testing and when i go look for it at //localhost/hello.php it doesnt find ne thing it says page canot be displayed

jatar_k

6:14 am on May 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



also try

127.0.0.1/hello.php

sandro123

6:15 am on May 21, 2005 (gmt 0)

10+ Year Member



doesnt work i dont think php is reading the file

jatar_k

6:18 am on May 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



can you get a basic html file to work in that directory?

sandro123

6:18 am on May 21, 2005 (gmt 0)

10+ Year Member



how do i do that

jatar_k

6:22 am on May 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



drop a an html file in there

the try to call it in your browser

sandro123

6:24 am on May 21, 2005 (gmt 0)

10+ Year Member



sry but im really im noob in this im 14 and juss starting this scripting stuff so i dunno how to do that

jatar_k

6:34 am on May 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



just a regular html file, you could save this page to that directory and the try to call it in your browser if you like.

The thing we are trying to figure out is what exactly isnt working. Is it apache? is it php? no clue yet.

Make sure you read all of the documentation for the install, make sure that you followed all the steps. Don't change too many things at once and try to remember everything you change. If you think you are getting it all screwed up, scrap it all and start over, step by step. If you are getting overly frustrated go to bed and start again tomorrow. Which is what I have to do, sorry, it's late here. I am sure someone else will be along to help. :)

>> sry but im really im noob in this im 14

don't worry, that doesn't matter, you can figure it all out, no worries, just takes a little time. You should have seen me with my first install on my home computer, hehe, I think I broke a few keyboards that day. ;)

sandro123

6:37 am on May 21, 2005 (gmt 0)

10+ Year Member



lolok man here too its 2:36 am frustrated cuz it wont work lol and yeh i think i did change lots of things so i will restart tomorow thanks for the tips :)

Timotheos

8:07 pm on May 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Sandro,

Did you actually start apache?

If this is a Windows machine you should go to the Start menu, Programs and they're will be a folder called apachefriends and under that is xampp. Under there you can click on "xampp basic start". That'll get you going. Look in the instructions if you want to make this automatic by installing it as a service.

Tim

sandro123

4:31 am on May 23, 2005 (gmt 0)

10+ Year Member



yes i have , i droped a text file in the htdocs folder called hello.php then put this in it
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>';?>
</body>
</html>

then saved it then put tis in my adress bar //localhost/hello.php and shows page cannot be displayed

Timotheos

5:51 am on May 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That should work. Even xampp by itself should have a splash screen at [localhost...] that will have a link to all the apps. Strange. I've put xampp on several machines because it makes it sooo easy.

sandro123

2:14 pm on May 23, 2005 (gmt 0)

10+ Year Member



but y does it say page cannot be displayed? when i go to //localhost/hello.php?

Timotheos

3:46 pm on May 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could be several things.

What is your operating system?
Are you doubly sure apache is running? (Look under task manager for apache.exe or use the xampp control panel to check)
Do you have a firewall? Is port 80 blocked? Does it work if you shut down the firewall?

sandro123

4:10 pm on May 23, 2005 (gmt 0)

10+ Year Member



yes apache is runnning i check in task manager its their.. my firewall is turned off i even checked my status at //localhost/
Component
Status
Hint

MySQL database ACTIVATED

PHP ACTIVATED

HTTPS (SSL) ACTIVATED

Common Gateway Interface (CGI) ACTIVATED

Server Side Includes (SSI) ACTIVATED

SMTP Service DEACTIVATED

FTP Service DEACTIVATED

MatthewHSE

4:33 pm on May 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



//localhost/hello.php

Is this exactly what you've been trying to reach? If so, try adding http: on the front:

[localhost...]

You can verify if you're reaching your localhost or not by whether or not you get an error page. If the page can't be found, you're not reaching localhost (either that or you mistyped the URL). If the page can be found but doesn't display anything, try viewing the source to see what's getting sent to the browser.

sandro123

6:08 pm on May 23, 2005 (gmt 0)

10+ Year Member



it says the page cannot be found

Timotheos

6:16 pm on May 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i even checked my status at //localhost/

That's interesting Sandro. So you must be able to see [localhost...] since you can get the status. Can you also see phpinfo() all right?

Your path to htdocs should be c:\apachefriends\xampp\htdocs

sandro123

6:40 pm on May 23, 2005 (gmt 0)

10+ Year Member



phpinfo() how do i see that? yes my path is c:\apachefriends\xampp\htdocs

Timotheos

7:21 pm on May 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phpinfo() how do i see that?

[localhost...]

How did you get the status?
[localhost...]

sandro123

7:24 pm on May 23, 2005 (gmt 0)

10+ Year Member



the first one looks like my php settings and the second shows this
MySQL database ACTIVATED

PHP ACTIVATED

HTTPS (SSL) ACTIVATED

Common Gateway Interface (CGI) ACTIVATED

Server Side Includes (SSI) ACTIVATED

SMTP Service ACTIVATED

FTP Service DEACTIVATED

Timotheos

7:41 pm on May 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's good Sandro. PHP is working on your server.

You could try creating a directory under htdocs called "test" and putting your hello.php file there. It would then be at [localhost...]

I found that xampp puts some weird files/redirects in the htdocs directory that were screwing me up. I ended up deleting them all and putting in my own.

Tim

sandro123

8:12 pm on May 23, 2005 (gmt 0)

10+ Year Member



still doesnt work

StupidScript

8:45 pm on May 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If
http://localhost/xampp/phpinfo.php
shows you your PHP info, then find that file! It's in the right directory. Put your
hello.php
into the same directory and use
http://localhost/xampp/hello.php
to view it.

It is odd, because I've never needed to use

xampp
in the URL for an XAMPP installation, but if
http://localhost/xampp/phpinfo.php
is working, then it's in your default directory ... and that's where the other stuff should go.

You may have made a choice during setup that affected the default directory. I don't run setup, I just launch the server (

\xampp\apache_start.exe
) after unzipping the install files, and everything runs fine.

sandro123

12:46 am on May 24, 2005 (gmt 0)

10+ Year Member



ok i found the folder their is all the php files but it still says the page cannot be found i used a text document and worte this inside
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>';?>
</body>
</html>

and i named the file hello.php

sandro123

1:53 am on May 24, 2005 (gmt 0)

10+ Year Member



ne ways imma go to bed . juss before i downloaded sumthing from hotscripts.com and i put it in the htdocs and it reconized all the php files but if i put a text document it doesnt reconize that as php

Timotheos

4:48 am on May 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Weird. How are you creating this text document?
This 36 message thread spans 2 pages: 36