Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_php installation problem, ebuild mod_php-4.2.2.ebuild co
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
spike
Guest





PostPosted: Sun Aug 11, 2002 11:19 pm    Post subject: mod_php installation problem, ebuild mod_php-4.2.2.ebuild co Reply with quote

After emerge mod_php it tells me to:

ebuild /var/db/../..../mod_php-4.2.2.ebuild config

when I did this i got an error message telling me to
ebuild foo.ebuild digest :(

when I did this: ebuild foo.ebuild digest
!!! doebuild: foo.ebuild not found. :(

After some fuzzeling out of frustration :x I thought it was something like:ebuild mod_php-4.2.2.ebuild digest

I again did run:ebuild /var/db/../..../mod_php-4.2.2.ebuild config
>>> md5 ;-) php-4.2.2.tar.bz2 8O

but after restarting apache still it only returns the php code!

Help! :roll:
Back to top
ptheborg
n00b
n00b


Joined: 27 Jun 2002
Posts: 67
Location: Rotterdam, The Netherlands

PostPosted: Mon Aug 12, 2002 2:17 am    Post subject: Reply with quote

This bug bothered me for days!

Solution back then was simply emerge portage-2.0.13.
But since a couple of days I've been using portage-2.0.27 and in this version it's fixed.

Version 2.0.23 and 2.0.25 were broken......
_________________
Cheers

.NET is like a pet store written with gotos
Back to top
View user's profile Send private message
ice_cool
n00b
n00b


Joined: 13 Aug 2002
Posts: 42

PostPosted: Fri Aug 16, 2002 7:27 pm    Post subject: Reply with quote

I have a similar problem:
Code:

bash-2.05a# ebuild /var/db/pkg/dev-php/php-4.2.1-r3/php-4.2.1-r3.ebuild config

/usr/sbin/ebuild.sh: pkg_config: command not found

(it does the same for php-4.2.2)
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sat Aug 17, 2002 4:50 am    Post subject: Reply with quote

ptheborg wrote:

But since a couple of days I've been using portage-2.0.27 and in this version it's fixed.


I use this version of portage yet still get the same error as ice-cool.
_________________
Postcount ++
Back to top
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Sat Aug 17, 2002 9:18 am    Post subject: Reply with quote

See this post for a possible solution to pkg_config issue.
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
Dobs
n00b
n00b


Joined: 20 Aug 2002
Posts: 8

PostPosted: Tue Aug 20, 2002 5:58 pm    Post subject: Reply with quote

spike, back to your original problem, i had the same problem ...

after doing the ebuild digest and ebuild config, you still have to tell apache to load the php module.

in /etc/conf.d/apache make suer the line about APACHE_OPTS="-D SSL -D PHP4" is uncommented

you may also have to edit the /etc/apache/conf/apache.conf file

make sure to add
LoadModule php4_module extramodules/libphp4.so

it was my understanding that emerge was supposed to fix the /etc/apache/conf/apache.conf file and you were to edit the /etc/conf.d/apache file at least this is what i thought emerge told me when i merged the php_mod ... i could be wrong. Could this be a bug in the php ebuild ?? or am i just being dumb and missing something ?
Back to top
View user's profile Send private message
ptheborg
n00b
n00b


Joined: 27 Jun 2002
Posts: 67
Location: Rotterdam, The Netherlands

PostPosted: Tue Aug 20, 2002 6:04 pm    Post subject: Reply with quote

Dobs and spike, like I said, I had that digest problem too.

It went away when I installed portage-2.0.13 and now I've got portage-2.0.27 and 2.0.28 and they work flawlessly...........

crafty_c, that pkg_config problem is something different from the digest problem.....or am I wrong???? :?
_________________
Cheers

.NET is like a pet store written with gotos
Back to top
View user's profile Send private message
Dobs
n00b
n00b


Joined: 20 Aug 2002
Posts: 8

PostPosted: Tue Aug 20, 2002 6:09 pm    Post subject: Reply with quote

yeah that pkg_config problem is something different, you can figure it out if you go to that post mksoft mentioned earlier.

i fergot to mentiont i actually added 3 lines to my /etc/apache/conf/apache.conf file

LoadModule php4_module extramodules/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php

not sure if you need all of those, but my php seems to be working fine after adding those 3 lines
Back to top
View user's profile Send private message
ptheborg
n00b
n00b


Joined: 27 Jun 2002
Posts: 67
Location: Rotterdam, The Netherlands

PostPosted: Tue Aug 20, 2002 6:14 pm    Post subject: Reply with quote

it's relatively simple to figure out what the ebuild config would add to apache.conf

just open the ebuild in your favorite text editor and scroll down to the pkg_config section. Then you can copy paste those bash commands into a terminal and voila, everything will be configured for you. This way you do it manually automatic :wink:

(This was the workaround I used untill I discovered the newer portage versions didn't have this problem)
_________________
Cheers

.NET is like a pet store written with gotos
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Aug 20, 2002 7:01 pm    Post subject: Reply with quote

Outside initial install, to Networking & Security.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum