View previous topic :: View next topic |
Author |
Message |
while true Guru


Joined: 07 Apr 2010 Posts: 517 Location: Ljubljana, Slovenia
|
Posted: Thu Jan 06, 2011 8:55 pm Post subject: [SOLVED] php 5.3.4 is not working after update |
|
|
Ola,
since last weeks update (I presume) I have problem with my localhost.
At the end of update I found this:
Quote: | * Messages for package dev-lang/php-5.3.4:
* Installing php.ini for cli into /etc/php/cli-php5.3
*
* Installing php.ini for cgi into /etc/php/cgi-php5.3
*
* Installing php.ini for apache2 into /etc/php/apache2-php5.3
*
* To switch cli to use php:5.3, run
* eselect php set cli php5.3
*
* To switch cgi to use php:5.3, run
* eselect php set cgi php5.3
*
* To switch apache2 to use php:5.3, run
* eselect php set apache2 php5.3 |
so I did:
Code: | eselect php set cli php5.3
eselect php set cgi php5.3
eselect php set apache2 php5.3 |
I can not run joomla on localhost, and some php functions stoped working, or are not working correctly.
http://localhost/ gives 'It works!' page, so php is working, but something is wrong...
I would like to switch to one version previously, I believe php 5.2.x, how to do this?
or if there is a fix for this version of php, maybe just some configurations...
I am new to gentoo, and I do not know what else to post,
but I can post anything you guys need to help me out.
Thank you.
ps. hope I'm in right section, sorry admin  _________________ Kind regards, Goran Mitic
alive
while true
kick ass
Last edited by while true on Mon Feb 21, 2011 9:58 am; edited 1 time in total |
|
Back to top |
|
 |
Mousee Apprentice


Joined: 29 Mar 2004 Posts: 291 Location: Illinois, USA
|
Posted: Thu Jan 06, 2011 9:27 pm Post subject: |
|
|
Please follow this documentation as a reference (and for future upgrades): http://www.gentoo.org/proj/en/php/php-guide.xml
The greatest and most useful thing you'll learn from that documentation, besides using eselect, is the fact that you can "slot" your PHP installs.
So you can have PHP 5.2.16 and PHP 5.3.4 installed at the same time and easily switch between them (and in fact, you can use both at the same time - with a bit of hackery).
Thus, as per your inquiry, simply run the following to add PHP 5.2 to another "slot": emerge dev-lang/php:5.2
And of course use eselect to switch over to it once it's been installed.
It's likely that Joomla may not be compatible with PHP 5.3 yet - unfortunately I don't use that software so I can't say for certain, but several functions did indeed change in PHP 5.3 that appear to cause breakage in scripts with poor programming practices. |
|
Back to top |
|
 |
while true Guru


Joined: 07 Apr 2010 Posts: 517 Location: Ljubljana, Slovenia
|
Posted: Sun Jan 09, 2011 8:06 pm Post subject: |
|
|
Hello Mousee,
Sorry for delayed reply,
although I read and followed your instructions the next day you posted.
I am not a native English speaker, but I think I got most out of your link.
I switched back to php 5.2 without any problems.
It seems like it is time to start coding a better php code
thank you (again, kheh) for straight forward and pin-point answer. _________________ Kind regards, Goran Mitic
alive
while true
kick ass |
|
Back to top |
|
 |
|
|
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
|
|