logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: php scripts don't show on the browser
Author
cicitta86



Joined: 02 Oct 2006
Posts: 7

PostPosted: Mon 02 Oct '06 12:43    Post subject: php scripts don't show on the browser Reply with quote

Hello everybody....
I installed Apache 2.2 and php5 and Apache works fine....
i wrote the usual script to test php

Code:

<?php
phpinfo()
?>


but the browser page remains blank....what's the problem??
Thanks to anyone that can help me
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3058
Location: Hilversum, NL, EU

PostPosted: Mon 02 Oct '06 12:56    Post subject: Reply with quote

You miss the ";"

Try:

<?php
phpinfo();
?>

Steffen
Back to top
cicitta86



Joined: 02 Oct 2006
Posts: 7

PostPosted: Mon 02 Oct '06 13:00    Post subject: Reply with quote

I did but it doesn't work still... Confused
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 02 Oct '06 14:38    Post subject: Reply with quote

What does the browser output show (source)
Back to top
cicitta86



Joined: 02 Oct 2006
Posts: 7

PostPosted: Mon 02 Oct '06 14:41    Post subject: Reply with quote

I did the debugging of httpd.conf and this is what it tells me:

make_sock: could not bind to adress 0.0.0.0:80
no listening sockets available, shutting down
unable to open logs

help please..
Back to top
cicitta86



Joined: 02 Oct 2006
Posts: 7

PostPosted: Mon 02 Oct '06 14:42    Post subject: Reply with quote

The browser doesn't show anything...just a white page
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 02 Oct '06 14:51    Post subject: Reply with quote

Quote:

make_sock: could not bind to adress 0.0.0.0:80
no listening sockets available, shutting down


That means. there is a server running on Port 80 like IIS. or a firewall blocks the port.

Quote:

unable to open logs


Are the log writeable?
Back to top
cicitta86



Joined: 02 Oct 2006
Posts: 7

PostPosted: Mon 02 Oct '06 14:56    Post subject: Reply with quote

I disactivated Windows Firewall and it tells me the same thing.
Where can I see that the logs are writable or not?thanks
Back to top
cicitta86



Joined: 02 Oct 2006
Posts: 7

PostPosted: Tue 03 Oct '06 11:47    Post subject: Reply with quote

I uninstalled and installed everything back again using the apachelounge guide, and it doesn't give me no errors, but I still can't visualize php scripts....anybody has an answer??thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Tue 03 Oct '06 12:37    Post subject: Reply with quote

Check you file extension! Windows don't show known file extensions by default. maybe the file is named file.php.txt or something like that
Back to top


Reply to topic   Topic: php scripts don't show on the browser View previous topic :: View next topic
Post new topic   Forum Index -> Other Software