PHP and being brain locked
Brian Fahrlander
brian at fahrlander.net
Tue Dec 19 17:34:00 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
>> "feature").
>>
>> 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. :/
- --
------------------------------------------------------------------------
Brian Fahrländer Christian, Conservative, and Technomad
Evansville, IN http://Fahrlander.net/brian
ICQ: 5119262 AOL/Yahoo/GoogleTalk: WheelDweller
------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFiCKI6PLtRzZbdhYRAsQ8AJ996p5Z1ga/pSRDCskdnYdR3BCD+ACcCZ94
Ww5Rcc+gdW6rNCiCv3oQ5c4=
=mhZO
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list