php installation and phpMyadmin

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
stma
Forum Newbie
Posts: 5
Joined: Fri Aug 20, 2010 5:27 pm

php installation and phpMyadmin

Post by stma »

[Moved to Installation and Configuration by moderator]
Hello EveryOne!
I have a question about php installation and phpmyadmin. if someone could give me a hand to resolve this issue - would be greatly appreciated.
here is the story:
I had php PHP Version 5.1.6 installed with yum on my centos 5.5 (2.6.18-194.11.3.el5) and phpmyadmin running on it. everything was running fine. then I installed drupal and started attempting to use some additional modules for it. I also started doing some php development. for all these reasons I was needed to upgrade my php installation because some modules did not want to run under this version of php.
unfortunately I upgraded it to the highest version 5.3. from that point I started having problems with phpmyadmin - it recognizes all the databases on the system, however shows no tables in it, saying no tables were found. I was trying to reinstall php, attempting to downgrade it. I removed everything with yum. downloaded 5.2 and ran the build.
now:
phpmyadmin - still the same - does not show tables in it page. (however all tables are exist and if just run mysql on the command line will return tables, values and everything...)

php even more weird
if I run phpinfo() function inside of php file via apache on my server - it reports - php version 5.1.6 (the old one I had before)
if I run on the command line
php -v
PHP 5.2.14 (cli) (built: Sep 12 2010 13:22:53)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
which is correct after I successfully compiled it on the system


I am really confused and not sure what to do...
anyone could give me a hand here?

much appreciated,
thank you.
User avatar
angelicodin
Forum Commoner
Posts: 81
Joined: Fri Nov 13, 2009 3:17 am
Location: Oregon, USA

Re: php installation and phpMyadmin

Post by angelicodin »

Not sure if this will help, but clear your cache. I know that some of my php tend to stay unchanged on my install and is held onto by IE and FF more often than not. Also a server restart wouldn't hurt. I know this is most likely not vary helpful. Have you tried doing a phpinfo on a different page to see if you get the same return with 5.1?
stma
Forum Newbie
Posts: 5
Joined: Fri Aug 20, 2010 5:27 pm

Re: php installation and phpMyadmin

Post by stma »

Thank you EveryOne - I was able to solve the problem.
if anyone interested here is what I did.
remove php installation because it looks like I created a mess
yum remove php

then install the default one, which is shipped with current centos 5 (php 5.1.6)
(make sure yums' repositories are not configured to get anything fancy but simple php 5.1.6 - for that check /etc/yum.repos.d)

then use as a reference this page:
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
and upgrade your php 5.1.6 to php5.2

thank you EveryOne.
Post Reply