Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] mod_php5 want to be downgraded to 4.3.10?
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
Gentoo Server
Apprentice
Apprentice


Joined: 21 Jul 2003
Posts: 279

PostPosted: Wed Mar 23, 2005 11:09 am    Post subject: [SOLVED] mod_php5 want to be downgraded to 4.3.10? Reply with quote

before somebody is jumping about unmasking here my


package.keywords
dev-db/mysql ~x86
dev-perl/DBD-mysql ~x86
dev-php/mod_php ~x86
dev-php/php ~x86
dev-db/mysql-administrator ~x86


package.unmask
dev-db/mysql
dev-perl/DBD-mysql
dev-php/php5
dev-php/mod_php5
dev-db/mysql-administrator

gaia root # emerge -s mod_php
Searching...
[ Results for search key : mod_php ]
[ Applications found : 1 ]

* dev-php/mod_php
Latest version available: 4.3.10-r1
Latest version installed: 5.0.3
Size of downloaded files: 3,932 kB
Homepage: http://www.php.net/
Description: Apache module for PHP
License: PHP-3


gaia root # emerge -up mod_php

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

Calculating dependencies ...done!
[ebuild U ] dev-php/mod_php-4.3.10-r1 [4.3.2]
gaia root #


Last edited by Gentoo Server on Wed Mar 23, 2005 11:20 am; edited 1 time in total
Back to top
View user's profile Send private message
Gentoo Server
Apprentice
Apprentice


Joined: 21 Jul 2003
Posts: 279

PostPosted: Wed Mar 23, 2005 11:19 am    Post subject: Reply with quote

found this and looks a solution

I think I found my problem Smile

I had to add both

Code:

dev-php/mod_php ~x86
dev-php/php ~x86


which makes sense because mod_php is dependant upon php5! Smile

But you still need to remove the mask in /usr/portage/profiles/package.mask for

Code:

=dev-php/mod_php-5*


<edit>
not to mention i had to accept keywords on a bunch of other developmental packages:
Code:

dev-php/mod_php ~x86
dev-php/php ~x86
net-www/apache ~x86
dev-libs/apr ~x86
net-www/gentoo-webroot-default ~x86
dev-libs/apr-util ~x86
Back to top
View user's profile Send private message
powdahound
n00b
n00b


Joined: 21 Jan 2004
Posts: 26
Location: NH, USA

PostPosted: Wed Mar 23, 2005 4:00 pm    Post subject: Reply with quote

Very helpful, thank you! I had been stuck with php4 for the past week since portage tricked me into downgrading before I noticed it. :(
Back to top
View user's profile Send private message
CompWiz
n00b
n00b


Joined: 24 Jul 2003
Posts: 4
Location: Kitchener, Ontario

PostPosted: Thu Mar 24, 2005 1:45 am    Post subject: Reply with quote

That solution works great. Thanks. Instead of changing /usr/portage/profiles/package.mask I changed /etc/portage/package.unmask.

By using either method i noticed that mod_php-5.0.3-r2 would force me to downgrade to apache 1.3.33-r2. Very strange. Untop of that php looks as if it wont be compiled. Probably going to have to do that on my own

My bad.... it helps if you add apache2 to the USE var
Back to top
View user's profile Send private message
bpopp
n00b
n00b


Joined: 17 Nov 2004
Posts: 10

PostPosted: Thu Mar 24, 2005 5:04 pm    Post subject: Reply with quote

This worked for me as well, but it's annoying as hell that every time I do a sync, the mask gets reset in package.mask and PHP tries to be downgraded. Is there any way around this?
Back to top
View user's profile Send private message
wjholden
l33t
l33t


Joined: 01 Mar 2004
Posts: 826
Location: Augusta, GA

PostPosted: Fri Mar 25, 2005 3:44 am    Post subject: Reply with quote

bpopp wrote:
This worked for me as well, but it's annoying as hell that every time I do a sync, the mask gets reset in package.mask and PHP tries to be downgraded. Is there any way around this?
Workaround: chmod 400 /etc/portage/package.keywords, makes file read-only. I think there's a legit way to protect it, but I don't remember it.
Back to top
View user's profile Send private message
sinthetek
n00b
n00b


Joined: 25 Mar 2005
Posts: 19
Location: USA

PostPosted: Sat Mar 26, 2005 7:24 pm    Post subject: Reply with quote

word, thanks a lot
Back to top
View user's profile Send private message
Dinini
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 236

PostPosted: Sat Mar 26, 2005 9:39 pm    Post subject: Reply with quote

bpopp wrote:
This worked for me as well, but it's annoying as hell that every time I do a sync, the mask gets reset in package.mask and PHP tries to be downgraded. Is there any way around this?
You can try adding =dev-php/mod_php-5* in /etc/portage/package.unmask

Modifying the mask file in /usr/portage guarantees it will be overwritten the next time you sync (always assume that anything in /usr/portage is out of your control). Since you don't want it masked you have to unmask it in /etc/portage (which will not be touched when you sync).
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Mon Mar 28, 2005 8:31 am    Post subject: Reply with quote

Stuart Herbert wrote:
!!!All ebuilds that could satisfy "=mod_php-5.0.3" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-php/mod_php-5.0.3 (masked by: package.mask)
# Stuart Herbert <stuart@gentoo.org> (12th march 2005)
# automatically activates ZTS mode when any threaded MPMs are installed,
# even if mpm_prefork is the default


Theres always a reason portage wants to downgrade something.
Back to top
View user's profile Send private message
mbjr
Guru
Guru


Joined: 17 Jan 2004
Posts: 531
Location: Budapest/Hungary

PostPosted: Tue Mar 29, 2005 9:18 pm    Post subject: Reply with quote

I'm a noob :>

But I ask :>

What the hack is the ZTS mode? And yeah, why is that bad if it is?
Also I have no threaded MPM's installed afaik :>
_________________
mb
Back to top
View user's profile Send private message
Dinini
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 236

PostPosted: Sat Apr 02, 2005 12:37 am    Post subject: Reply with quote

Not intended as an answer just a bit more information so you know what ZTS is.

ZTS = Zend Thread Safety
I believe it's still listed as an experimental module though it's been around for close to 5 years now. Some binary only extension (commercial packages) do not work with zts mode php.

The following was posted on PHP-DEV mailing list to help someone decide if they wanted ZTS enabled on their installation

Wez Furlong wrote:
Subject: Re: [PHP-DEV] To understand ZTS in PHP.

The PHP/ZE architecture has a very strong thread-affinity; all "global"
variables in an instance of the engine are stored in
thread-local-storage so that they are:

a) safe from modification by other instances of the engine running on
different threads (in the same process)
b) Reasonably fast to fetch in callbacks made by third-party libraries.

You *need* a ZTS build of PHP when the SAPI that is running PHP is
multithreaded; eg: when more than one thread is running concurrently.

ZTS is not mandatory because passing around the TSRMLS introduces
overhead in terms of additional stack usage and some CPU time. Also,
TSRMLS_FETCH() (which plucks the engine globals out of the TLS), is
quite expensive, even though it is tuned for speed.

Based on what you have mentioned in the past about Netware (that it
doesn't have processes, only threads), it sounds like ZTS should be used
on that platform. However, you're the netware expert, not me :)

The decision to use ZTS is usually made by configure based on the SAPI
you are compiling for; eg: Apache 1.3.x does not require ZTS (at least
on regular UNIX platforms), nor does CGI, whereas threaded servers,
such as ISAPI and NSAPI do require it.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Apr 04, 2005 2:28 pm    Post subject: Reply with quote

Please see https://forums.gentoo.org/viewtopic-t-296192.html

Moved from Portage & Programming.
_________________
No-one's more important than the earthworm.
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