You are here: Re: Apache2/PHP4 compile/startup fine but no PHP parsing (blank page for phpinfo) « PHP Programming Language « IT news, forums, messages
Re: Apache2/PHP4 compile/startup fine but no PHP parsing (blank page for phpinfo)

Posted by Randell D. on 02/26/07 15:50

On Feb 26, 2:18 pm, "Randell D." <fiprojects....@gmail.com> wrote:
> Folks,
>
> I consider myself well versed with Apache 1.3 and PHP4 - I found
> drupal and wanted to try it out - I had problems getting it working
> with Apache2/PHP5/MySQL5 so I downgraded... Note: I did have Apache2/
> PHP5 working... I confirmed this via phpinfo output... But now that I
> removed my original directory containing Apache/PHP, and recompiled
> from scratch, I get everything to startup and static html is displayd,
> but phpinfo produces no errors, but no output (literally zero output).
>
> Where am i going wrong?
>
> This is my environment (forget mysql for the moment as I just want
> Apache/PHP working first)
> Apache 2.0.59
> PHP 4.4.5
>
> I compile the above using the following:
>
> # cd apache
> # ./configure --prefix=/opt/apache --enable-so --enable-vhost-alias
> # make
> # make install
> # cd ../php
> # ./configure --with-apxs2=/opt/apachebin/apxs --with-mysql
> # make
> # make install
>
> And i have the following in my Apache httpd.conf file
>
> LoadModule php4_module modules/libphp4.so
> AddType application/x-httpd-php .php
>
[snip]
>
> Can someone tell me what i've forgotten?
>
> Many thanks,
> Randell D.

Got it!

I re-compiled everything and even did a make clean before configure
however I think I found a possible bug during re-installation...

/usr/local/lib/php existed (I guess from my previous php5
installation) and there must have been some reference to it in my /usr/
local/lib/php.ini

I removed all php references from under /usr/locallib and re-compiled
again from scratch and found that my phpinfo() worked...

I make note here in case someone else might find the same problem some
other time in the future... and need a solution...

cheers
Randell d.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация