Can not start phpmyadmin after updating mysql and php - php

I updated PHPMyAdmin, then saw some errors about different versions of MySQL libraries and server. So I uninstalled and reinstalled MySQL using YUM.
Now MySQL works and I can see the MySQL database server listed in webmin modules and it has the users and databases in there, but when I go to PHPMyAdmin an error occurs.
var/logs/httpd/error_log shows:
[Tue Oct 13 09:29:33 2015] [error] [client 193.109.196.106] PHP Fatal error: Class 'SqlParser\\Lexer' not found in /usr/share/phpMyAdmin/libraries/Util.class.php on line 634, referer: http://198.154.62.131/phpMyAdmin/
I tried searching for this error in Google but I found nothing.

This error is caused by mysql server version being way too old for the latest phpmyadmin.
I managed to update mysql using this method and now the phpmyadmin works again:
http://kwatog.com/blog/how-to-upgrade-mysql-5-0-to-5-5-in-centos/
But still the error is shown on phpmyadmin dashboard:
"Your PHP MySQL library version 5.0.67 differs from your MySQL server version 5.5.28. This may cause unpredictable behavior. "

Related

How do I troubleshoot 'SSL: crypto enabling timeout' error?

I've been accessing Odoo regularly for months via the XML-RPC API. I use a php script I wrote that makes use of darkaonline/ripcord library.
All of a sudden, in the last day or so, I have been seeing this error in my logs:
production.ERROR: exception 'ErrorException' with message
'file_get_contents(): SSL: crypto enabling timeout' in
app/vendor/darkaonline/ripcord/src/Ripcord/Client/Transport/Stream.php:59
Nothing has changed on my server in the last few days, so I'm wondering if anything has changed with Odoo that might be causing this. I am access an ODOO ONLINE instance, meaning, I do not host it, it's hosted by Odoo. It's using Odoo 10.saas~14+e (Enterprise Edition).
My server is running Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-36-generic x86_64) and using PHP version: PHP 5.5.9-1ubuntu4.20 (cli) (built: Oct 3 2016 13:00:37).
Does anyone have any idea what this error means or why it suddenly started occurring? I have no idea where to being troubleshooting this.

"Failed to start the session: already started by PHP" error using a CMS

I installed a CMS, named Prestashop: it runs under a specific domain, and with a specific VirtualHost configuration on Apache, on a server with other PHP applications.
When I try to login in, as administrator user, I receive the following error (this is the Apache error log):
[Wed Jan 18 00:09:16.059190 2017] [:error] [pid 31253] [client xx.xx.xx.xx:63129] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Failed to start the session: already started by PHP.' in /opt/wp/apps/prestashop/app/cache/prod/classes.php:108\nStack trace:\n#0 /opt/wp/apps/prestashop/app/cache/prod/classes.php(483): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()\n#1 /opt/wp/apps/prestashop/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php(90): Symfony\Component\HttpFoundation\Session\Session->start()\n#2 /opt/wp/apps/prestashop/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/CsrfTokenManager.php(54): Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage->hasToken('ANONYMOUS_USER')\n#3 /opt/wp/apps/prestashop/app/cache/prod/classes.php(8196): Symfony\Component\Security\Csrf\CsrfTokenManager->getToken('ANONYMOUS_USER')\n#4 /opt/wp/apps/prestashop/classes/Link.php(722): PrestaShopBundle\Service\Routing\Router->generate('admin_product_c...')\n#5 /opt/wordpre in /opt/wp/apps/prestashop/app/bootstrap.php.cache on line 3216, referer: http://www.xxxxx.xx/adminXXX/index.php?controller=AdminLogin&token=181fa270d47386a8d523bdea6213932c&redirect=AdminDashboard'
PHP session auto_start parameter is set to 0 in php.ini.
I don't understand how can I solve this problem. It can be depends on an Apache or PHP configuration?
Thanks a lot.
I Just got the same issue with my Symfony 3.2 app, i was upgrading my web server from php 5.5.12 to php 5.6.31 when it happened. After upgrading again to php 7.0.23 everything go back to normal.

Bluemix PHP app fails on LDAP connection

This is a follow up ticket to one which was closed without answer:
https://stackoverflow.com/questions/34515574/ibm-bluemix-authentication-using-tivoli-ldap
I have migrated a PHP app which requires LDAP authentication to Bluemix and I am getting the following error:
2016-01-08T10:28:53.87+0000 [App/0] OUT 10:28:53 httpd | [Fri Jan 08 10:28:53.869250 2016] [proxy_fcgi:error] [pid 44:tid 139703240013568] [client 169.53.20.45:7120] AH01071: Got error 'PHP message: PHP Fatal error: Call to undefined function ldap_connect() in /home/vcap/app/htdocs/utils/LoginLDAP.Class.php on line 21\n', referer: http://sbrooms.w3ibm.mybluemix.net/index.php
Please note that this is not the public Bluemix, but the internal IBM one (w3ibm.mybluemix.net), hence the connection to the LDAP server should be available.
Do I have to explicitly request the connection to the LDAP server, or something else is going wrong?
Thanks,
Pimmy
Looks like the LDAP-Extension for PHP is not installed on the WebServer. The PHP message: PHP Fatal error: Call to undefined function ldap_connect() suggests that.
You can check that by adding a page to your webserver with the following content:
<?php
phpinfo();
Call that website in a webbroser and check whether there is any trace of the LDAP-extension. If not, you will need to get that extension. As there are many different ways to install it (from recompiling PHP to a call to your systems package-manager) I need more information on how your system - and especially PHP - has been installed.
Hope that helps!

Accidentally turn on SSL / HTTPS for phpmyadmin

I'm running Ubuntu 14.04.2 LTS, Apache 2.4.7, mysql 14.14, phpinfo.php
I was trying to reconfigure phpMyAdmin and I'm no longer sure what I actually did, because now all attempts to access the page result in a redirect to https, which doesn't work because my Apache server isn't configured to run SSL. I go to http://MYDOMAIN/phpmyadmin and it turns it into https://MYDOMAIN/phpmyadmin/?collation_connection=utf8_general_ci&SID which just has an SSL connection error.
I've tried uninstalling and reinstalling phpMyAdmin several times with no success.
If I go to http://MYDOMAIN/phpmyadmin/setup I get a blank screen but this line shows up in my weblogs:
[Tue Mar 24 05:09:10.518308 2015] [:error] [pid 8888] [client 50.161.45.55:49637] PHP Fatal error: Call to undefined function PMA_generate_common_url() in /usr/share/phpmyadmin/libraries/common.inc.php on line 352
I've tried creating and uncreating /usr/share/phpmyadmin/config/config.inc.php but it seems to have no effect.
Any ideas what I might have done and how I can revert back? mysql is still running fine and I'd rather not have to reinstall that.
Find phpmydmin's config.inc.php and change the line as follows:
$cfg['ForceSSL'] = false;

phpmyadmin is white page

I installed on my win 7 apache 2.4, PHP 5.5.3, mysql 5.6 & last version of phpmymyadmin
I checked my server and it's working good as the phpinfo(); is working correctly.
When I installed phpmyadmin I got a blank white page without any errors, so I checked the apache error log and received below error
[Tue Sep 10 20:40:48.431821 2013] [:error] [pid 2344:tid 1048] [client ::1:59511] PHP Fatal error: Call to undefined function PMA_DBI_num_rows() in C:\\Apache24\\htdocs\\phpMyAdmin\\libraries\\navigation\\Nodes\\Node.class.php on line 397
Any idea what's wrong and how to solve?
You miss the mysql or mysqli PHP extension (or they are not active). See
https://sourceforge.net/p/phpmyadmin/bugs/3997/
Why don't you just use xampp or wampp ? http://apachefriends.org

Categories