bar top left
bar top right
left curve
right curve
Welcome, Guest

Error installing phpMyAdmin with Elastix 2.2
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 1
TOPIC: Error installing phpMyAdmin with Elastix 2.2
*
#91694
Error installing phpMyAdmin with Elastix 2.2 5 Months, 1 Week ago Karma: 0
Hello,

Some one can help me with this issue?

I intalled a fresh copy of Elastix 2.2, then I use

yum install phpmyadmin

The problem the it crashes the Asterisk and I can not see the PBX Configuration tab.

Does some one know what is happen?

Thanks in advance

Ben...
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
balvarez
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#91715
Re:Error installing phpMyAdmin with Elastix 2.2 5 Months, 1 Week ago Karma: 180
Ben,

Taking a guess (as I can't see your system), when you have installed PHPMYADMIN, it has also installed its dependencies, which includes 5.2 of PHP.

Elastix, like freepbx and many other components utilise 5.1.6, as after this there were some requirements to modify the php code, due to changes in the language.

This is probably the reason why your GUI has collapsed and possibly other components.

at the linux prompt type

php --version

which should provide an output like so

[root@elastix]# php --version
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Also you can do the following

make a blank file called test.php in /var/www/html/

and add this one line
<?php phpinfo(); ?>

then go to your browser and enter the following

http://{yourelastixIPaddress}/test.php

This should show a page up with all the information about your php and more.

The only solution you have is to re-install PHP 5.1.6 to replace the current version you have. However, I have never done this on an Elastix system, so it is a case of asking someone who may have done it or looking through google.

it is also worth looking through the yum log to see if it loaded any other dependencies.

Regards

Bob
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Bob
http://twitter.com/elastixbob
Moderator
Posts: 1670
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Elastix Application Notes bobfryer@gmail.com Location: Canberra, Australia Birthday: 05/03
Good Etiquette : if someones helps with a solution - update their Karma - its only a simple click.

Upgrading Elastix? Read this FAQ Now!!
elx.ec/upgfaq

Elastix Docs :
elx.ec/elastixtutorials
www.elastixconnection.com

Elastix Fault Finding Guide
elx.ec/faultfind
Reply Quote
 
#94542
Re:Error installing phpMyAdmin with Elastix 2.2 4 Months ago Karma: 8
Hi Bob,

Following your advice below, here is what i got:
PHP Version 5.1.6

I also follow the instruction in Elastix No Tears for phpMyAdmin installation but after opening it in my browser myIpaddress/modules/dbadmin, I end up of this error: PHP 5.2+ is required.

So this means Elastix should be upgrade to PHP Version 5.2? Is anyone have done that? I'm afraid to try as my Elastix is running in production. And besides I don't know how to do it.


Thanks,

Jessie
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jessie
Senior Boarder
Posts: 122
graphgraph
User Offline Click here to see the profile of this user
Gender: Male jessie_mabanglo jessie_mabanglo@yahoo.com jdmjamboo@hotmail.com jdmjamboo Location: Philippines Birthday: 11/12
MABUHAY ang ELASTIX!!!
Reply Quote
 
#94545
Re:Error installing phpMyAdmin with Elastix 2.2 4 Months ago Karma: 8
Hello to all!

Based on my simulation, latest version of phpMyAdmin wont really work as from my previous posted. But since i do really need the phpMyAdmin to be on my Elastix 2.2, i try to play around... (Don't do the same what i did in my production server, it's kind of stupid to risk it, LOL).

Here is my notes:

1. I use "yum -y install phpmyadmin" in SSH command. (I am pretty sure most of you guys did this already)

2. Locate the installed phpmyadmin ( it is located in /etc/) and move the folder in /var/www/html/modules/

3. Delete the link file config.inc.php and create a new one as per EWNT and copy paste this lines:


<?php

/* Servers configuration */
$i = 0;

/* Server localhost (config:root) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';

/* End of servers configuration */

?>

4. save it and now you try to opening the phpmyadmin: yourIP/modules/phpMyAdmin

I hope this will work with you too... and if you encounter any trouble, don't mind to post it here but don't contact me, i might not know the answer (LOL).

Thanks!

Jessie
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jessie
Senior Boarder
Posts: 122
graphgraph
User Offline Click here to see the profile of this user
Gender: Male jessie_mabanglo jessie_mabanglo@yahoo.com jdmjamboo@hotmail.com jdmjamboo Location: Philippines Birthday: 11/12
MABUHAY ang ELASTIX!!!
Reply Quote
 
#94587
Re:Error installing phpMyAdmin with Elastix 2.2 4 Months ago Karma: 180
To hopefully avoid anyone trying to upgrade there PHP to install phpMyAdmin, and breaking their Elastix system. Here is a very quick run down on installing phpMyAdmin.

phpMyAdmin no longer supports older versions of php in their code development. What this means is that we have to use a version before Version 3 (which is when they took this initiative up). So with YUM we can specify a version number (naturally you need to know what version number you need and what is available to you - which I have already confirmed the latest version 2.x.)

Now before you perform the following. It has been tested with Elastix 2.2 but not thoroughly. It did not break the system it was performed on, and it worked nicely, however, it has not been tested extensively. I strongly recommend a backup before you install, and this should always be your golden rule. Anything with a risk, backup first. Likewise my system is not your system, it could break something on your system. There is one thing I am sure about, it has far less chance of breaking your system, than trying to load the latest versions of PHP.


yum install phpMyAdmin-2.11.11.3


nano /etc/httpd/conf.d/phpMyAdmin.conf

You will find the following lines in the conf file.....add the two lines in bold below and add your workstation IP address (otherwise it will give you a forbidden error)

-----------------------------------------------------
<Directory /usr/share/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from {your workstation IP}
Allow from ::1
</Directory>

<Directory /usr/share/phpMyAdmin/scripts/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from {your workstation IP}
Allow from ::1
</Directory>

-------------------------------------------------

Save it

service httpd restart


now goto
http://{yourElastixIP}/phpMyAdmin

Login with root and the password for MySQL (remember you set this up when you first installed Elastix)

Regards

Bob
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Bob
http://twitter.com/elastixbob
Moderator
Posts: 1670
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Elastix Application Notes bobfryer@gmail.com Location: Canberra, Australia Birthday: 05/03
Good Etiquette : if someones helps with a solution - update their Karma - its only a simple click.

Upgrading Elastix? Read this FAQ Now!!
elx.ec/upgfaq

Elastix Docs :
elx.ec/elastixtutorials
www.elastixconnection.com

Elastix Fault Finding Guide
elx.ec/faultfind
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1
Moderators: Bob, jgutierrez
Protected by Spam Fighter