Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing php support - which one?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
salam
Apprentice
Apprentice


Joined: 29 Sep 2005
Posts: 203

PostPosted: Sat Nov 26, 2005 8:13 pm    Post subject: installing php support - which one? Reply with quote

i'm trying to keep the system as clean as possible, so i'd like to know how to install php support(and of course not to install something i don't need)

this is the result after try to merge php:

Code:
lubenka / # emerge -pv php

These are the packages that I would merge, in order:

Calculating dependencies   

!!! The short ebuild name "php" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    dev-lang/php
    dev-php/php

lubenka / #


...which one shall i emerge to enable apache2 php support?
Back to top
View user's profile Send private message
southsider
Guru
Guru


Joined: 05 Jul 2004
Posts: 358

PostPosted: Sat Nov 26, 2005 8:15 pm    Post subject: Reply with quote

Are you using ~x86 or x86?
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sat Nov 26, 2005 8:16 pm    Post subject: Reply with quote

dev-lang. dev-php/php is the old CLI version (And dev-php/mod_php is the apache version). dev-lang/php is much better ;) Just make sure you set the right USE flags.
Back to top
View user's profile Send private message
salam
Apprentice
Apprentice


Joined: 29 Sep 2005
Posts: 203

PostPosted: Sat Nov 26, 2005 8:58 pm    Post subject: Reply with quote

thanks, i'm going to merge dev-lang/php now :D
Back to top
View user's profile Send private message
southsider
Guru
Guru


Joined: 05 Jul 2004
Posts: 358

PostPosted: Sun Dec 25, 2005 6:14 pm    Post subject: Reply with quote

Stuff keeps wanting to bring in dev-php/php and I already have dev-lang/php installed. What a nightmare.
Back to top
View user's profile Send private message
jmp_
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 294
Location: BCN / Catalonia (Spain)

PostPosted: Sun Dec 25, 2005 9:12 pm    Post subject: Reply with quote

You should use:

emerge dev-lang/php with apache2 use flag enabled for mod_php support.
Back to top
View user's profile Send private message
southsider
Guru
Guru


Joined: 05 Jul 2004
Posts: 358

PostPosted: Mon Dec 26, 2005 2:20 pm    Post subject: Reply with quote

Problem I'm having is that swig depends on dev-php/php.
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Mon Dec 26, 2005 4:21 pm    Post subject: Reply with quote

For packages that still depend on the old dev-php/php, simply try to install their ~ARCH versions, wich are mostly fixed in this regard. In the case of Swig, you can either re-emerge it with USE="-php" or use the ~ARCH (unstable) version like I said.
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
southsider
Guru
Guru


Joined: 05 Jul 2004
Posts: 358

PostPosted: Mon Dec 26, 2005 5:18 pm    Post subject: Reply with quote

I added -php for swig to my "package.use".

Got enough of a shitty mess with ~x86 packages all over. Was I bollocks waiting till March for GNOME 2.12!
Back to top
View user's profile Send private message
jayreis
n00b
n00b


Joined: 26 Dec 2005
Posts: 3

PostPosted: Mon Dec 26, 2005 5:40 pm    Post subject: php support.. SOLVED Reply with quote

Hello,

I am trying to setup my first server for testing/learning on. Anyway I am trying to look for an easy php install howto nwith no luck. I emerged the following to my box;

dev-php/mod_php version 4.4.0-r9
dev-php/php 4.4.0-r4
dev-php/php-cgi

I then retstarted apache2

when I try to load the index.php file in my locahost dir in my firefox browser it asks me what program I would like to us to open this php file???

So I know their is something I missed?

my httpd.conf file has this line in it
DirectoryIndex index.html index.html.var index.php index.php3 index.shtml i$

not sure what else I need to do? I also have mysql and phpmyadmin emerge however none work (i.e., when I go to the http://localhost/phpmyadmin folder it asks me what program I would like to open this file with?

so can anyone point me to a good tutorial for start to finish installing php4 and mysql thanks all
Back to top
View user's profile Send private message
jayreis
n00b
n00b


Joined: 26 Dec 2005
Posts: 3

PostPosted: Mon Dec 26, 2005 6:49 pm    Post subject: .... Reply with quote

OK I solved my issue my brother who is a gentoo pro for years now showed me I forgot to remove the
## infront of a line I needed in my conf file
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon Dec 26, 2005 6:50 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=39805&highlight=apache+php+mysql 8)

hmm not the one I thought but give it a look.
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Feb 21, 2006 10:24 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads, please see this topic.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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