Here are the results of identified commands :
$ php -i | grep -i PATH |grep -i usr
Configure Command => './configure' '--with-openssl'
'--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd'
'--prefix=/usr/local/php7.3' '--enable-fpm' '--enable-memcached'
'--enable-opcache' '--enable-redis' '--with-gd'
'--enable-intl'
'--with-png-dir=/usr' '--enable-wddx'
'--with-config-file-path=/usr/local/php7.3/etc' '--enable-sigchild'
'--enable-short-tags' '--disable-rpath' '--enable-libgcc'
'--with-zlib=/usr' '--enable-bcmath' '--enable-calendar'
'--with-curl=/usr' '--with-gdbm=/usr' '--enable-ftp'
'--with-gettext=/usr' '--with-imap' '--with-kerberos'
'--with-imap-ssl'
'--with-mhash=/usr' '--with-jpeg-dir=/usr' '--enable-exif'
'--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg'
'--enable-zip'
'--enable-inline-optimization' '--enable-soap' '--enable-mbstring'
'--enable-mbregex' '--with-gnu-ld' '--with-libxml-dir'
'--enable-shared=yes' '--enable-static=yes' '--with-xsl=/usr'
'--enable-sockets' '--with-xmlrpc' '--with-iconv'
'--with-imagick'
'--enable-pdo' '--with-pdo-pgsql=/usr' '--enable-mongodb'
'--with-xpm-dir=/usr' '--with-pcre-regex' '--enable-freetype'
'--with-pspell' '--with-pgsql=/usr' '--with-bz2'
'--with-gmp'
'--with-sodium=/home/pkg/src/sodium-i386/usr' '--with-password-argon2'
'--with-webp-dir=/usr'
'EXTENSION_DIR=/usr/local/php7.3/lib/php-extensions'
Configuration File (php.ini) Path => /usr/local/php7.3/etc
include_path => .:/usr/local/php7.3/lib/php =>
.:/usr/local/php7.3/lib/php
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
Path to sendmail => /usr/sbin/sendmail -t -i
$ python --version
Python 2.7.9
$ python3 -V
Python 3.4.2
The fact is that the server is a shared hosting server, so I can not
sudo, some directories and binaries are not accessible ...
N.L.
Le 2020-10-07 14:58, eQuality Technology a écrit :
On Wed, Oct 7, 2020 at 3:58 AM NL
<mediawiki.org(a)faiscommechezmoi.org
[1]> wrote:
I tried to check this.
phpinfo gave me no info with python.
Ther is many paths in the list and I dont know wich one is to
verify.
In all likelihood, the path to python is in the PATH for PHP. An
easy way to check is to
php -i | grep PATH
And look for /usr/bin in the output.
E.g.
NODE_PATH => :/usr/local/lib/npm/lib/node_modules
PATH =>
/usr/local/lib/npm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/USR/BIN:/sbin:/bin
$_SERVER[NODE_PATH] => :/usr/local/lib/npm/lib/node_modules
$_SERVER[PATH] =>
/usr/local/lib/npm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$_SERVER[PATH_TRANSLATED] =>
The extention is the one which bundled with M.W.;
so no need to run
composer ?
Correct. If you installed by downloading the tarball, you have all
the
dependencies you need.
Your issue probably stems from the default Python being used.
Check the version of the default Python interpreter: python --version
List the versions of python available: ls /usr/bin/python*
(As root or using sudo) Use update-alternatives to setup system-wide
ability to choose Python interpreter. The one with
the HIGHER priority number will become the default.
update-alternatives --install /usr/bin/python python
/usr/bin/python2.7 1
update-alternatives --install /usr/bin/python python
/usr/bin/python3.6 2
Now we can list the choices: update-alternatives --list python
And choose one: update-alternatives --config python
At this point, you should have successfully changed your default
Python interpreter to 3.x
Note: we can also remove a choice if its no longer an option on the
system: update-alternatives --remove python /usr/bin/python2.7
Now your syntax highlighting should work (using Python3).
~ Greg
eQuality Technology
_Lets work together_
https://equality-tech.com [2]
follow us:
https://twitter.com/eQualityTech [3]
CREATORS OF
Links:
------
[1] mailto:mediawiki.org@faiscommechezmoi.org
[2]
https://equality-tech.com/
[3]
https://twitter.com/eQualityTech