PHP error

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

PHP error

Postby craig28 » 02. May 2008 03:46

Newbie needs help :roll:

I installed Xampp in Win Vista Home Premium.

When I run index.php, I get an error:

Something is wrong with the XAMPP installation :-(
Thanks much for helping
craig28
 
Posts: 8
Joined: 02. May 2008 03:33
Location: MI

Postby Wiedmann » 02. May 2008 09:13

When I run index.php, I get an error:

How did you run this file exactly?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby craig28 » 02. May 2008 15:00

PHP does not appear to be running.

I run index.php from the DocumenRoot as defined in httpd.conf :?

Index.html runs ok. :)
xampp port check is ok :)

setup_xampp.bat says : "sorry, but ............nothing to do!"
Last edited by craig28 on 02. May 2008 15:09, edited 1 time in total.
Thanks much for helping
craig28
 
Posts: 8
Joined: 02. May 2008 03:33
Location: MI

Postby Wiedmann » 02. May 2008 15:03

I run index.php from the DocumenRoot as defined in httpd.conf

And how are you doing this exactly?
(e.g. talking to your pc: "please load index.php"...)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby craig28 » 02. May 2008 15:28

I double clicked on index.php fron windows explored.


**********************************
Also:


loclahost isn't working either

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
05/02/08 10:23:35
Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5
Thanks much for helping
craig28
 
Posts: 8
Joined: 02. May 2008 03:33
Location: MI

Postby Wiedmann » 02. May 2008 15:48

I double clicked on index.php fron windows explored.

That's not working. PHP files must be called with "http://..." in your webrowser. Thus if you follow the readme, just enter "http://localhost/" in your webbrowser.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby craig28 » 02. May 2008 18:17

Thanks 4 helping

files are located at g:\websites\index.php

G:\websites is DocumentRoot in httpd.conf)


I read some place the a path needed to be added to Windows Environment Variables

The Xampp control panel says Apache and Mysql are running.


Start bat 4 mysql says it's not running. :?

Start bat for Apache says it's not running. :?
**********************************
Does not work. Should open apache screen

http://localhost/

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
05/02/08 12:28:44
Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5

***********************************

http://localhost/websites/index.php

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
05/02/08 12:24:43
Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5


I've tried every combination I can think of.
Thanks much for helping
craig28
 
Posts: 8
Joined: 02. May 2008 03:33
Location: MI

Postby Wiedmann » 02. May 2008 18:56

G:\websites is DocumentRoot in httpd.conf)

You have also changed the corresponding directory block?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby craig28 » 02. May 2008 19:54

I'm sorry, I don't know what your talking about. I'm a newbie at this.
Thanks much for helping
craig28
 
Posts: 8
Joined: 02. May 2008 03:33
Location: MI


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 141 guests