Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant downgrade php
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
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Tue Sep 21, 2004 9:11 am    Post subject: cant downgrade php Reply with quote

since upgrading apache to 2.0.51 PHP web pages have been coming out as text. I also then upgraded mod_php
In spite of
Code:
router conf # cat  /etc/conf.d/apache2 |grep PHP
# mod_php then add "-D PHP4".  For more options, please
#APACHE2_OPTS="-D SSL -D PHP5"
APACHE2_OPTS=" -D PHP5"
router conf #
router conf # cat /etc/apache2/conf/commonapache2.conf |grep php
    DirectoryIndex index.html index.html.var index.php index.php3 index.php4 index.shtml index.cgi index.pl index.htm Default.htm default.htm
    AddIcon /icons/p.gif .pl .py .php .php3
AddType application/x-httpd-php  .php .phtml
AddType application/x-httpd-php-source .phps


I want to roll back php5 to 4 ( which worked)
Code:

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

*  dev-php/mod_php
      Latest version available: 5.0.1
      Latest version installed: 5.0.1
      Size of downloaded files: 4,462 kB
      Homepage:    http://www.php.net/
      Description: Apache module for PHP 5
      License:     PHP-3


router conf # emerge unmerge mod_php

 dev-php/mod_php
    selected: 4.3.3-r3 5.0.1
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging dev-php/mod_php-4.3.3-r3...
No package files given... Grabbing a set.
/usr/sbin/ebuild.sh: line 1102: /usr/portage/eclass/php.eclass: No such file or directory

!!! ERROR: dev-php/mod_php-4.3.3-r3 failed.
!!! Function inherit, Line 1103, Exitcode 1
!!! died sourcing /usr/portage/eclass/php.eclass in inherit()

!!! FAILED prerm: 1


What do i do now either
to get apache 2.0.51 and php5 working
OR
remove php5 and re-install php4
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Tue Sep 21, 2004 10:53 am    Post subject: Reply with quote

emerge -C mod_php-5.0.1; emerge mod_php-4.3.3-r3; /etc/init.d/apache2 restart
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Tue Sep 21, 2004 5:14 pm    Post subject: sorry to be so stupid..... Reply with quote

cant get it right ....... ( im new to this )

Code:
router modules.d # emerge dev-php/mod_php-4.3.3-r3
Calculating dependencies
!!! Problem in dev-php/mod_php-4.3.3-r3 dependencies.
!!! "Specific key requires an operator (dev-php/mod_php-4.3.3-r3) (try adding an '=')"
router modules.d # emerge =dev-php/mod_php-4.3.3-r3
Calculating dependencies
emerge: there are no masked or unmasked ebuilds to satisfy "=dev-php/mod_php-4.3.3-r3".

!!! Error calculating dependencies. Please correct.
router modules.d # emerge "=dev-php/mod_php-4.3.3-r3"
Calculating dependencies
emerge: there are no masked or unmasked ebuilds to satisfy "=dev-php/mod_php-4.3.3-r3".

!!! Error calculating dependencies. Please correct.
router modules.d # emerge mod_php-4.3.3-r3
Calculating dependencies
!!! Problem in dev-php/mod_php-4.3.3-r3 dependencies.
!!! "Specific key requires an operator (dev-php/mod_php-4.3.3-r3) (try adding an '=')"
router modules.d # emerge =mod_php-4.3.3-r3
Calculating dependencies
emerge: there are no masked or unmasked ebuilds to satisfy "=mod_php-4.3.3-r3".

!!! Error calculating dependencies. Please correct.
router modules.d #                                                   
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Wed Sep 22, 2004 8:44 am    Post subject: Reply with quote

Try
Code:

emerge "=dev-php/mod_php-4.3.8"

since 4.3.8 is the latest php4.
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Wed Sep 22, 2004 5:32 pm    Post subject: Reply with quote

however I did the emerge -C php...5 whcih took out some stuff and then have been left with working php-4.3.3-r3, withou doing anything else.
Apps work again :-))
Didnt thing it should be like this .......


thanks fo the help
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