Coder Social home page Coder Social logo

php.ini about docker-lamp HOT 5 CLOSED

mattrayner avatar mattrayner commented on June 2, 2024
php.ini

from docker-lamp.

Comments (5)

hub4rogues avatar hub4rogues commented on June 2, 2024

my problem related with mbstring.func_overload

from docker-lamp.

pzhlkj6612 avatar pzhlkj6612 commented on June 2, 2024

I guess you didn't find the correct file path.

root@85e255a4d28e:/# find / -name php.ini
/etc/php/7.3/cli/php.ini
/etc/php/7.3/apache2/php.ini

from docker-lamp.

hub4rogues avatar hub4rogues commented on June 2, 2024

I've tried all of them. But no effect .....

from docker-lamp.

pzhlkj6612 avatar pzhlkj6612 commented on June 2, 2024

Well, it's strange.

I made this change in/etc/php/7.3/apache2/php.ini,

[mbstring]
;mbstring.func_overload = 0
mbstring.func_overload = 7

Then restart apache2 service and open a phpinfo() page,

Directive Local Value Master Value
mbstring.func_overload 7 7

Try to visit PHPMyAdmin but it returns 500 error. View error.log,

[Sun Apr 07 01:32:14.304573 2019] [php7:notice] [pid 768] [client 172.17.0.1:52644] PHP Fatal error:  Uncaught UnexpectedValueException: Overloading of string functions using mbstring.func_overload is not supported by phpseclib. in /var/www/phpMyAdmin-4.8.5-all-languages/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php:11
Stack trace:
#0 /var/www/phpMyAdmin-4.8.5-all-languages/vendor/composer/autoload_real.php(66): require()
#1 /var/www/phpMyAdmin-4.8.5-all-languages/vendor/composer/autoload_real.php(56): composerRequirea28629400f69f0a1c61616c7b7ff5e01('decc78cc4436b12...', '/var/www/phpMyA...')
#2 /var/www/phpMyAdmin-4.8.5-all-languages/vendor/autoload.php(7): ComposerAutoloaderInita28629400f69f0a1c61616c7b7ff5e01::getLoader()
#3 /var/www/phpMyAdmin-4.8.5-all-languages/libraries/common.inc.php(91): require_once('/var/www/phpMyA...')
#4 /var/www/phpMyAdmin-4.8.5-all-languages/index.php(27): require_once('/var/www/phpMyA...')
#5 {main}
  thrown in /var/www/phpMyAdmin-4.8.5-all-languages/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php on line 11

It seems that it has worked.

from docker-lamp.

hub4rogues avatar hub4rogues commented on June 2, 2024

well, I did and it works.
tried systemctl instead sevice

from docker-lamp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.