PHP and being brain locked
michael at weblore.com
Tue Dec 19 17:51:53 UTC 2006
Brian Fahrlander wrote:
> Michael Satterwhite wrote:
>>> Brian Fahrlander wrote:
>>>> Michael Satterwhite wrote:
>>>>>> OK, I'll be the first to admit that I'm in a case of brain freeze. I've
>>>>>> brought up a new ubuntu (actually kubuntu, but the configuration should
>>>>>> be the same) box. I've installed apache and php4. When I try to view a
>>>>>> .php page, I'm getting an error telling me that apache doesn't know what
>>>>>> to do with php files.
>>>>>> Would someone be so kind as to let me know what I've omitted? It won't
>>>>>> bother me if you laugh at me as you do ... I deserve it.
>>>> I don't think it's all you; I managed to 'prang' my apache2 webserver
>>>> in that way...SO MUCH that the lil'SOB was doing it with almost all the
>>>> webserver parts removed! (The problem was masked by Firefox's caching
>>>> See if you have libapache2-php(4 or 5) installed. For some reason on
>>>> mine, it got left out.
>>> I have libapache-mod-php4, but not libapache2-mod-php4 (I don't see a
>>> libapache-php4 or libapache2-php4. If there should be one, I need to
>>> adjust repositories, pls let me know). Do I need to install the apache2
>>> files even thought I'm not running apache2?
> Yeah, it looks that way; when I installed phpwiki (unsuccessfully)
> it installed libapache*2*-php5-cli or whatever.
> The plan seems to have been that Apache(1) uses libapache-*, and
> Apache 2 uses libapache2-*, but it doesn't always end up that way. What
> I finally had to do was:
> Remove *all* apache/php packages, kill-n-restart the browser, and
> install the base package, making sure the libapache-* stuff made it.
> For some reason, php (at least 4) is more than happy to load without any
> apache, though I've seen very, very, very little programs that run
> without it.
> Just remember that the browser (and most browsers, I'll wager) will
> cache the results- pstree will show no apache running, but it'll still
> be happy to act as if it is, and it's going to shove it all to you in
> un-rendered PHP. :/
OK, I removed all php files, then restarted apache. I then installed
php4, and both libapache-mod-php4 and libapache2-mod-php4 came with it.
I restarted apache again, killed all running copies of firefox and
retried loading a phpinfo.php page. I still get the error telling me
that I'm trying to load a php file and asking me what I want to do with it.
More information about the ubuntu-users