Apache and MySQL work, but where's PHP?

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

Apache and MySQL work, but where's PHP?

Postby polyphon » 23. October 2007 21:30

Have installed XAMPP on Vista with general success. Apache is running, I've built tables, etc. in MySQL.

Why can't I get any PHP page to run? I get either a blank page with no PHP interpretation (but with Source variously intact and missing)...or an outright error.

[Yes, I've installed XAMPP into its own directory, not under "Program Files." And, yes, my PHP files are placed in the xampp\htdocs\new directory! ;) ]

Please help. Thanks, Barry
polyphon
 
Posts: 5
Joined: 23. October 2007 19:57

Postby Izzy » 24. October 2007 01:29

Barry, what do you see when you type http://localhost in your browser's address bar?

How are you trying to "run" your php pages?


===========================================
Take a look at the new DeskTopXampp launch control for XAMPP
and XAMPPlite (DTX.exe) posted by ridgewood:
http://community.apachefriends.org/f/viewtopi ... 967#103967
Available at Ridgewood's new DTX web site http://zedfiles.com/DTX/
Also available here: http://nat32.com/dtx/
I highly recommend DTX.
============================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby polyphon » 24. October 2007 09:12

XAMPP for Windows clearly appears.

Furthermore, I can run phpinfo to good effect.

And phpadmin works fine.

Just no interp of actual PHP docs, as .php. I try to run them as .php documents locally from within the xampp/htdocs subdirectory.

Bewildering. Thanks for any help you can offer. Barry
polyphon
 
Posts: 5
Joined: 23. October 2007 19:57

Postby Wiedmann » 24. October 2007 09:24

Just no interp of actual PHP docs, as .php. I try to run them as .php documents locally from within the xampp/htdocs subdirectory.

Just to clarify:
You open these files with "http://localhost/foo.php" in your webbrowser?

If yes:
What's the error message / error.log?

If no:
What are you doing exactly? Writing shell scripts?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby polyphon » 24. October 2007 17:10

Wiedmann wrote:
Just no interp of actual PHP docs, as .php. I try to run them as .php documents locally from within the xampp/htdocs subdirectory.

Just to clarify:
You open these files with "http://localhost/foo.php" in your webbrowser?

If yes:
What's the error message / error.log?

Yes, lately I've been getting NO error; just a blank web page -- looking at "View Source," all the php code is visible (it displays in the "View Source" of the output).

Originally, pages sometimes produced a "cannot find page" error. but other times they produced a "blank display." When I checked "View Source," the PHP code with missing, so it had apparently been "interpreted" without output.

Any thoughts?
polyphon
 
Posts: 5
Joined: 23. October 2007 19:57

Postby polyphon » 25. October 2007 06:38

Any thoughts on my failure to get PHP pages to process / display?
polyphon
 
Posts: 5
Joined: 23. October 2007 19:57

Apache and MySQL work, but where's PHP?

Postby rogohernande » 25. October 2007 17:16

I had the same problem with Windows Vista Home Basic. I read somewhere that the problem is the UAC (User Account Control). I uninstalled XAMPP, turned off UAC and reinstalled XAMPP. This time I didn't install the Apache Service, but once XAMPP was installed completely.
rogohernande
 
Posts: 1
Joined: 09. May 2006 18:59

Re: Apache and MySQL work, but where's PHP?

Postby polyphon » 27. October 2007 06:43

rogohernande wrote:I had the same problem with Windows Vista Home Basic. I read somewhere that the problem is the UAC (User Account Control). I uninstalled XAMPP, turned off UAC and reinstalled XAMPP. This time I didn't install the Apache Service, but once XAMPP was installed completely.


Interesting...my UAC has been turned off since before I installed XAMPP.

Thanks, though! Any other solutions, anyone?
polyphon
 
Posts: 5
Joined: 23. October 2007 19:57


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests