Page 1 of 1

Apache and MySQL work, but where's PHP?

PostPosted: 23. October 2007 21:30
by polyphon
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

PostPosted: 24. October 2007 01:29
by Izzy
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.
============================================

PostPosted: 24. October 2007 09:12
by polyphon
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

PostPosted: 24. October 2007 09:24
by Wiedmann
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?

PostPosted: 24. October 2007 17:10
by polyphon
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?

PostPosted: 25. October 2007 06:38
by polyphon
Any thoughts on my failure to get PHP pages to process / display?

Apache and MySQL work, but where's PHP?

PostPosted: 25. October 2007 17:16
by rogohernande
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.

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

PostPosted: 27. October 2007 06:43
by polyphon
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?