Discussion:
[PHP-INSTALL] I get blank screen with PHP5 & Apache2.2
Daniel
2008-12-04 16:47:59 UTC
Permalink
I can't get my php working. Heres a link to my httpd.conf and php.ini

The locations of my php directory on my local drive is:
C:\php

and Apache is:
c:\Program Files\Apache Software Foundation\Apache2.2\

http://www.zeropointusa.com/test/php/php.ini
http://www.zeropointusa.com/test/php/httpd.conf

btw, i'm only trying to make this work on my local machine first before
installing on the server.

Can anyone please look at my config files and see why it wouldn't be
working? I got Apache working, I think. When I go to localhost, I see the
files in that directory. But, when I click on my test file, which only
contains <? phpinfo(); ?>, I get a blank screen. I view the source, and I
still see the php.

Thanks in advance guys.
Tommy Peterson
2008-12-04 17:07:55 UTC
Permalink
Use this php.ini file and then reload the page. The error will display.
Daniel Brown
2008-12-04 17:11:19 UTC
Permalink
On Thu, Dec 4, 2008 at 12:07 PM, Tommy Peterson
<***@americaschoice.org> wrote:
>
> Use this php.ini file and then reload the page. The error will display.

Actually, if the OP is seeing the PHP source when viewing the
source of the page, it means that PHP isn't even being properly
executed by Apache.

--
</Daniel P. Brown>
http://www.parasane.net/
***@parasane.net || ***@php.net
50% Off Hosting! http://www.pilotpig.net/specials.php
Tommy Peterson
2008-12-04 17:20:16 UTC
Permalink
Yes true. But I understood him to say he was viewing the source of the
page (like an HTML page) and seeing content. If he is seeing source then,
yes, Apache and PHP are not setup correctly. But he said it was working
now.
Daniel Brown
2008-12-04 17:21:51 UTC
Permalink
On Thu, Dec 4, 2008 at 12:20 PM, Tommy Peterson
<***@americaschoice.org> wrote:
> Yes true. But I understood him to say he was viewing the source of the page
> (like an HTML page) and seeing content. If he is seeing source then, yes,
> Apache and PHP are not setup correctly. But he said it was working now.

Yeah, I understand what you meant. I knew where you were going
with it, and if were a plain blank page, it would be the right thing
to do on a non-production box like his: check the page with
display_errors on and with E_ALL showing (I didn't check your php.ini,
but I'm pretty sure that's what you did).

Ya' done good, Tommy. Real good. ;-P

--
</Daniel P. Brown>
http://www.parasane.net/
***@parasane.net || ***@php.net
50% Off Hosting! http://www.pilotpig.net/specials.php
Daniel P. Brown
2008-12-04 17:06:14 UTC
Permalink
On Thu, Dec 4, 2008 at 11:47 AM, Daniel <***@zeropointusa.com> wrote:
>
> Can anyone please look at my config files and see why it wouldn't be
> working? I got Apache working, I think. When I go to localhost, I see the
> files in that directory. But, when I click on my test file, which only
> contains <? phpinfo(); ?>, I get a blank screen. I view the source, and I
> still see the php.

After you installed PHP, did you restart Apache? If not, try
that, then look at your test file again.

--
</Daniel P. Brown>
http://www.parasane.net/
***@parasane.net || ***@php.net
50% Off Hosting! http://www.pilotpig.net/specials.php
Daniel
2008-12-04 17:08:45 UTC
Permalink
Thanks, i got it working now.


""Daniel"" <***@zeropointusa.com> wrote in message
news:***@pb1.pair.com...
>I can't get my php working. Heres a link to my httpd.conf and php.ini
>
> The locations of my php directory on my local drive is:
> C:\php
>
> and Apache is:
> c:\Program Files\Apache Software Foundation\Apache2.2\
>
> http://www.zeropointusa.com/test/php/php.ini
> http://www.zeropointusa.com/test/php/httpd.conf
>
> btw, i'm only trying to make this work on my local machine first before
> installing on the server.
>
> Can anyone please look at my config files and see why it wouldn't be
> working? I got Apache working, I think. When I go to localhost, I see the
> files in that directory. But, when I click on my test file, which only
> contains <? phpinfo(); ?>, I get a blank screen. I view the source, and I
> still see the php.
>
> Thanks in advance guys.
>
Loading...