Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21289 - mod_php should depend on php
Summary: mod_php should depend on php
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-19 16:43 UTC by Alistair McDonald
Modified: 2003-05-21 03:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair McDonald 2003-05-19 16:43:54 UTC
As the title. 

I was suprised when I emerged mod_php and php was not built as part of the 
dependencies for the package.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-19 18:52:58 UTC
Why were you surprised?
What did you expect to be in mod_php that wasn't there?
Comment 2 Alistair McDonald 2003-05-20 01:49:57 UTC
I expected php to be a dependency of mod_php - i.e. if you emerge mod_php, php should be emerged if it is not already installed.

OK, obviously, technically, php was not needed to *build and install* mod_php, however, it is needed to *run* mod_php. 

I had a glance at some of the emacs packages, which, technically can be installed without emacs as they are just lisp files, and they include virtual/emacs in their dependencies.

To summarize:
I would like to see dev-php/php in the DEPEND section for the next (and all future) ebuilds for mod_php.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-20 02:00:05 UTC
I don't follow.
You don't need dev-php/php to run dev-php/mod_php at all. I'd like to know about your experiences otherwise.

If you are around presently, come to the Freenode IRC network, and message me (robbat2).
Comment 4 Alistair McDonald 2003-05-20 02:12:34 UTC
>> You don't need dev-php/php to run dev-php/mod_php at all. 

Oh! I am suprised but this could easily be true. I am embarassed to be wasting your time :-(

>> I'd like to know about your experiences otherwise.

OK, I need phpmyadmin, an interface to MYSQL written in PHP. I emerged phpmyadmin and 7 or 8 packages were built, but when I accessed the URL http://localhost/phpmyadmin, all I saw was the source for the index.php script. 

I have another computer on which this works perfectly, I have compared apache and php configs on the two machines and they are identical, so I tried to run the script from the command line, and found that php was not installed. I made the (now apparently wrong) assumption that not having php installed was was why apache wasn't parsing the php properly.

I've never used IRC before, so I'll not be getting online.

I think that this bug should be closed as INVALID, what do you think?
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-20 10:53:51 UTC
Right after you installed mod_php, there would have been a message with some further instructions.
Either to add '-D PHP' to /etc/conf.d/apache2 if using Apache 2, or to run 'ebuild /usr/portage/dev-php/mod_php/mod_php-VERSION.ebuild config if using Apache1.
After doing that and restarting the relevant Apache, it should work. Just seeing the source of phpMyAdmin is an indictaion that the mod_php module is not kicking in and something is slightly wrong in the Apache config.
Comment 6 Alistair McDonald 2003-05-21 03:11:02 UTC
Ah, I often miss that kind of message. I might nohup the emerge, especially if I am sshing in, and forget to check it. Or I might do the emerge in a konsole tab, but not return to it before I exit kde. 

I have an idea for a portage improvement, emailing those messages to someone, in case they get forgotten. Let me check the bug database...

I have got phpmyadmin working now, a tiny apache config change IIRC. And I thought I'd changed everything :-) 


Thanks for your help, there is nothing wrong with my mod_php setup, it's all me :-) 
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-21 03:51:47 UTC
The messages should be logged to wherever you have set portage to log to (in make.conf).