After trying hard i fix by bellow formula for magento 2.3.4
0.
htaccess admin 404 rewirete issue fix by copy .htaccess from fresh magento
1.
install sodium on php 7
http://kb.zeusandhera.com/adding-libsodium-to-php-7-2-and-7-3-on-a-cpanel-server/
You can try adding the ea4 experimental repo:
yum install ea4-experimental
yum install libsodium-devel
But I haven’t seen that actually work, so to install it from source, ssh in to the server as the root user, or a user that has sudo permissions and run:
cd /usr/src/
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz
tar -zxvf libsodium-1.0.18.tar.gz
cd libsodium*
./configure
make && make check
make install
make check
If that completes successfully, try to install the actual PHP modules now:
/www/server/php/72/bin/pecl install -f libsodium
/www/server/php/73/bin/pecl install -f libsodium
If you try those and get an error like:
Warning: popen() has been disabled for security reasons in PEAR/Builder.php on line 465
ERROR: failed to run `phpize'
then edit php 72 config: add bellow code:
extension="sodium.so"
2.
open_basedir issue fix:
https://magento.stackexchange.com/questions/161253/magento-2-1-3-open-basedir-restriction-in-effect-error-on-server
composer.json
config": { "use-include-path": true "disable-tls":true }