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;
Related
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.
I want to access the Telegram-CLI using PHP.
I'm compiled Telegram-CLI and loged in to my account, and its works like a charm.
I installed LAMP ([in Linux], Apache, MySQL, PHP) and i tested them works.
I even installed these [following] PHP packages one-by-one using "Composer" and tested the examples but i couldnt make them run...
Also it seems their forum are abandoned to get my questions answer.
php-client for telegram-cli
A wrapper for Telegram-CLI
PHP Wrapper and Drupal module using Telegram CLI
Could somebody tell me how to make one of them work in simple way.
All steps of building Telegram-cli, loging in for first time and run it as deamon has beed completed.
For Example:
This project has been installed on php project root dir using "Composer".
Example.php file has been moved to web server root directory.
But also unning it cause a 500 Internal server error.
The error line is:
$telegram = new \Zyberspace\Telegram\Cli\Client('unix:///tmp/tg.sck');
notices:
The file has been checked and is already there.
And the telegram-cli is running as a daemon on root user.
I added a telegramd group and telegramd user assigned to that group.
I detacted that php commands running under apache user account.
I changed the apache user group to telegramd.
But again nothing...
So, Please help me
Edit:
I changed the httpd.conf user and group parameters to run at the same (telegramd) account
User telegramd
Group telegramd
And i have restarted the apache and checked the username by
exec('whoami');
The Apache is running under "telegramd" user account.
But nothing again..
Edit 2:
error_log file:
[Wed Feb 10 11:02:04.251133 2016] [:error] [pid 1172] [client 10.0.1.24:49168] PHP Warning: stream_socket_client(): unable to connect to unix:///tmp/tg.sck (No such file or directory) in /var/www/html/vendor/zyberspace/telegram-cli-client/lib/Zyberspace/Telegram/Cli/RawClient.php on line 48
[Wed Feb 10 11:02:04.251332 2016] [:error] [pid 1172] [client 10.0.1.24:49168] PHP Fatal error: Uncaught exception 'Zyberspace\Telegram\Cli\ClientException' with message 'Could not connect to socket "unix:///tmp/tg.sck"' in /var/www/html/vendor/zyberspace/telegram-cli-client/lib/Zyberspace/Telegram/Cli/RawClient.php:51\nStack trace:\n#0 /var/www/html/example.php(10): Zyberspace\Telegram\Cli\RawClient->__construct('unix:///tmp/tg....')\n#1 {main}\n thrown in /var/www/html/vendor/zyberspace/telegram-cli-client/lib/Zyberspace/Telegram/Cli/RawClient.php on line 51
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
i've just setup a LAMP development environment on my laptop, all works fine except for php. Apache don't process PHP code embeded inside pages, and display no error. All php package seems to be correctly installed.
Testing a simple: <?php phpinfo(); ?>, give a blank page
error log give:
[Fri Mar 02 20:30:13 2012] [error] [client 127.0.0.1] PHP Fatal error: Unknown: Failed opening required '/home/lib/utils/setDocumentRoot.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
I finally solve my problem, it was due to a fix i've set in my virtualHost config (who was calling a missing file: setDocumentRoot.php), i've disabled that script and all works great.
Summary: curl is installed, but I still receive this error attempting to use it:
[Mon Nov 14 16:39:05 2011] [error] [client 75.145.113.155] PHP Fatal error: Call to undefined function curl_init() in /.../htdocs/system/application/libraries/paypal/Paypal_pro.php on line 619, referer: http://example.com/buy/checkout
from phpinfo:
Additional .ini files parsed /etc/php5/apache2/conf.d/curl.ini
extension_dir /usr/lib/php5/20090626+lfs
I've confirmed both /etc/php5/apache2/conf.d/curl.ini and /usr/lib/php5/20090626+lfs/curl.so actually do exist.
Here is the content of curl.ini:
extension=curl.so
When I view the phpinfo file I created, it shows a section for curl, but the features entry there is blank. Is that normal? If not, what would cause that? I'm using bunut and installed curl with the following command as root:
apt-get install php5-curl
It worked with no error. I've restarted apache a few times with no effect. I've done this a variety of times on other systems, both Ubunut and RedHat without difficulty, so I have no idea what is going wrong here.