Instructions pleeeeease?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Instructions pleeeeease?

Postby ddave23 » 25. August 2010 04:37

I have downloaded xampp and can't for the life of mine get it to work %$#@#%^% :x
All I want is just to practice the php code. I started the apache service and a simple echo statement and nothing.
How do I get this whole thing working? I tried clicking on the admin button but it's too confusing. Is there any instructions??
ddave23
 
Posts: 8
Joined: 24. August 2010 00:54

Re: Instructions pleeeeease?

Postby JonB » 25. August 2010 04:41

Well, where does one start? :shock:

did you open your browser to http://localhost and observe what happens?

:?:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Instructions pleeeeease?

Postby ddave23 » 25. August 2010 23:53

http://localhost turns into http://localhost/xampp, it says welcome, installation complete, click on status. I click on status and this is what I get:

XAMPP Status
This page offers you one page to view all information about what's running and working, and what isn't working.


Component
Status
Hint
MySQL database DEACTIVATED
PHP DEACTIVATED
Perl with mod_perl DEACTIVATED
Apache::ASP DEACTIVATED
HTTPS (SSL) DEACTIVATED
Common Gateway Interface (CGI) DEACTIVATED
Server Side Includes (SSI) DEACTIVATED
IPv4 DEACTIVATED
IPv6 DEACTIVATED
SMTP Service DEACTIVATED
FTP Service DEACTIVATED


Some changes to the configuration may sometimes cause false negatives. All reports viewed with SSL (https://localhost) do not function!
ddave23
 
Posts: 8
Joined: 24. August 2010 00:54

Re: Instructions pleeeeease?

Postby BigWetDog » 26. August 2010 12:29

Okay, the fact that you are redirected to /xampp indicates that in fact php is working, and what you are seeing on the status page is a false positive. To what path did you install xampp? It should be installed to a path without spaces (e.g. C:\xampp, D:\xampplite, C:\myprivatexamppinstallation, etc.).
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: Instructions pleeeeease?

Postby ddave23 » 27. August 2010 04:48

C:\xampp. If it's working why won't apache process the request?
ddave23
 
Posts: 8
Joined: 24. August 2010 00:54

Re: Instructions pleeeeease?

Postby Altrea » 27. August 2010 04:55

Well, the XAMPP PHP SCripts are running
Yours don't.
What do you think?

Maybe we can help you to find out, if you show us your Sourcecode!?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Instructions pleeeeease?

Postby ddave23 » 29. August 2010 05:52

<html>
<body>

<?php

echo 'this was generated using php';

?>

</body>

</html>
ddave23
 
Posts: 8
Joined: 24. August 2010 00:54

Re: Instructions pleeeeease?

Postby Nobbie » 29. August 2010 11:05

a) what is the filename of your test script?
b) where did you store it (which path/folder)?
c) what do you enter in the browser in order to view the output?
Nobbie
 
Posts: 13171
Joined: 09. March 2008 13:04

Re: Instructions pleeeeease?

Postby ddave23 » 29. August 2010 21:18

a) echo.php
b) C:/
c) http://localhost/echo.php

I also tried with a .htm extension and putting it in the xampp folder but I always get this error message:
Code: Select all
Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
8/29/2010 4:04:25 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
ddave23
 
Posts: 8
Joined: 24. August 2010 00:54

Re: Instructions pleeeeease?

Postby Altrea » 29. August 2010 22:16

ddave23 wrote:b) C:/
c) http://localhost/echo.php


Million Dollar Question:
What is the correct directory to store your php-files in, if you want to access it by http://localhost/?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Instructions pleeeeease?

Postby ddave23 » 30. August 2010 00:27

Please don't speak in riddles, I'm new to this.

Are you trying to say it should be: "c:\echo.php"?

I tried accessing the files the directly by opening it with the browser and the browser would show the full file pathname something like file//C:/etc. but that wouldn't do anything. So I tried localhost, localhost being another name for the c: drive. What do I have to do?
ddave23
 
Posts: 8
Joined: 24. August 2010 00:54

Re: Instructions pleeeeease?

Postby JonB » 30. August 2010 00:51

I think altrea means - WHAT IS YOUR DOCUMENT ROOT?

because THAT is where you are supposed to 'put files' is you want Apache to do anything with them

NORMALLY - the DocumentRoot is C:/xampp/htdocs

what does it say in your apache\conf\httpd.conf for "DocumentRoot" :?: :?: :?:

By the way you can ONLY access the files to be processed by using localhost, 127.0.0.1 or the IP of your XAMPP server in your browser WITH APACHE RUNNING. For PHP to work it MUST BE SERVED = Period

:)

ycf
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Instructions pleeeeease?

Postby Nobbie » 30. August 2010 11:12

ddave23 wrote:Please don't speak in riddles, I'm new to this.

Are you trying to say it should be: "c:\echo.php"?


No. You MUST store echo.php to C:/xampp/htdocs - and URGENTLY get you a book about Apache and basic configuration knowledge.
Nobbie
 
Posts: 13171
Joined: 09. March 2008 13:04

Re: Instructions pleeeeease?

Postby ddave23 » 31. August 2010 02:05

I do have a book but it has very little configuration instructions.

The httpd.conf file says: DocumentRoot "C:/xampp/htdocs"

When I put this in the address bar: "http://localhost/C:/xampp/htdocs/echo.php", I get this error message:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
8/30/2010 8:27:19 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1


address bar: http://localhost/xampp/htdocs/echo.php
result: object not found

c:/xampp/htdocs/echo.php: Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program.

http://127.0.0.1/xampp/htdocs/echo.php: object not found.
ddave23
 
Posts: 8
Joined: 24. August 2010 00:54

Re: Instructions pleeeeease?

Postby JonB » 31. August 2010 02:16

Dave -

the webserver will translate the address - the addresses START at htdocs

so it would be:

http://localhost/echo.php if you put the file 'echo.php' in the folder \xampp\htdocs.

:shock:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests