Re: Centos 7 - downgrade PHP 7.4.0RC2 to php 7.3
Posted: Wed Sep 25, 2019 12:18 pm
I tried with grayfolk the methods and they are working but issues can be happen always, no one from VestaCP still not replies
Community Forum
https://forum.vestacp.com/
if you do a clean install follow this solution here :
Code: Select all
yum install yum-utils -y
yum-config-manager --disable remi-php5*
yum-config-manager --disable remi-php74
yum-config-manager --disable remi-test
yum-config-manager --enable remi-php73
yum remove php php-*
yum install roundcube phpmyadmin -y
service httpd restart or service php-fpm restart
Not working.sysadminn wrote: ↑Wed Sep 25, 2019 12:44 pmif you do a clean install follow this solution here :
Code: Select all
yum install yum-utils -y yum-config-manager --disable remi-php5* yum-config-manager --disable remi-php74 yum-config-manager --disable remi-test yum-config-manager --enable remi-php73 yum remove php php-* yum install roundcube phpmyadmin -y service httpd restart or service php-fpm restart
Try it and should work, if it not works you can put the php selector then
send me server details via pm so i look into thissufiyanshaikh wrote: ↑Wed Sep 25, 2019 2:21 pmNot working.sysadminn wrote: ↑Wed Sep 25, 2019 12:44 pmif you do a clean install follow this solution here :
Code: Select all
yum install yum-utils -y yum-config-manager --disable remi-php5* yum-config-manager --disable remi-php74 yum-config-manager --disable remi-test yum-config-manager --enable remi-php73 yum remove php php-* yum install roundcube phpmyadmin -y service httpd restart or service php-fpm restart
Try it and should work, if it not works you can put the php selector then
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/httpd.service.d
└─limits.conf
Active: failed (Result: exit-code) since Wed 2019-09-25 14:17:43 UTC; 5s ago
Process: 2853 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 2850 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 2850 (code=exited, status=1/FAILURE)
Sep 25 14:17:43 demo systemd[1]: Starting The Apache HTTP Server...
Sep 25 14:17:43 demo httpd[2850]: [Wed Sep 25 14:17:43.245214 2019] [so:warn] [pid 2850] AH01574: module ruid2_module is already loaded, skipping
Sep 25 14:17:43 demo httpd[2850]: AH00526: Syntax error on line 17 of /home/admin/conf/web/demo.httpd.conf:
Sep 25 14:17:43 demo httpd[2850]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
Sep 25 14:17:43 demo systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 25 14:17:43 demo kill[2853]: kill: cannot find process ""
Sep 25 14:17:43 demo systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 25 14:17:43 demo systemd[1]: Failed to start The Apache HTTP Server.
Sep 25 14:17:43 demo systemd[1]: Unit httpd.service entered
Code: Select all
yum remove php*
Code: Select all
yum install php71-php-imap php71-php-process php71-php-pspell php71-php-xml php71-php-xmlrpc php71-php-pdo php71-php-ldap php71-php-pecl-zip php71-php-common php71-php php71-php-mcrypt php71-php-gmp php71-php-mysqlnd php71-php-mbstring php71-php-gd php71-php-tidy php71-php-pecl-memcache --enablerepo=remi
Code: Select all
ln -s /usr/bin/php71 /usr/bin/php
Code: Select all
yum install yum-utils -y
Code: Select all
yum-config-manager --disable remi-php5*
yum-config-manager --disable remi-php74
yum-config-manager --disable remi-test
yum-config-manager --enable remi-php73
Code: Select all
yum install phpmyadmin -y
Code: Select all
<Directory /usr/share/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from All
</Directory>
<Directory /usr/share/phpMyAdmin/scripts/>
Order Deny,Allow
Deny from All
Allow from All
</Directory>
# This directory does not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
Code: Select all
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban no --quota no --exim no --dovecot no --spamassassin no --clamav no --softaculous no --mysql yes --postgresql no
Code: Select all
yum install yum-utils -y
yum-config-manager --disable remi-php5*
yum-config-manager --disable remi-php74
yum-config-manager --disable remi-test
yum-config-manager --enable remi-php73
yum remove php php-*
yum install php roundcube phpmyadmin -y
Code: Select all
#edit phpMyAdmin config
nano /etc/httpd/conf.d/phpMyAdmin.conf
#overwrite all with this
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from All
</Directory>
<Directory /usr/share/phpMyAdmin/scripts/>
Order Deny,Allow
Deny from All
Allow from All
</Directory>
# This directory does not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
<Directory /usr/share/phpMyAdmin/setup/lib/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
<Directory /usr/share/phpMyAdmin/setup/frames/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#<IfModule mod_security.c>
# <Directory /usr/share/phpMyAdmin/>
# SecRuleInheritance Off
# </Directory>
#</IfModule>
Code: Select all
yum install yum-utils -y
yum-config-manager --disable remi-php5*
yum-config-manager --disable remi-php74
yum-config-manager --disable remi-test
yum-config-manager --enable remi-php73
yum remove php php-*
Code: Select all
yum install php-fpm
Code: Select all
yum install roundcubemail phpmyadmin -y
Code: Select all
service php-fpm restart
This worked for me, thanks.root012 wrote: ↑Thu Sep 26, 2019 11:18 pmPlease try my solution, for me everything is perfect.
1.2.Code: Select all
yum remove php*
3.Code: Select all
yum install php71-php-imap php71-php-process php71-php-pspell php71-php-xml php71-php-xmlrpc php71-php-pdo php71-php-ldap php71-php-pecl-zip php71-php-common php71-php php71-php-mcrypt php71-php-gmp php71-php-mysqlnd php71-php-mbstring php71-php-gd php71-php-tidy php71-php-pecl-memcache --enablerepo=remi
4.Code: Select all
ln -s /usr/bin/php71 /usr/bin/php
5.Code: Select all
yum install yum-utils -y
6.Code: Select all
yum-config-manager --disable remi-php5* yum-config-manager --disable remi-php74 yum-config-manager --disable remi-test yum-config-manager --enable remi-php73
7. go to /etc/httpd/conf.d/ and edit "phpMyAdmin.conf and put this configuration.Code: Select all
yum install phpmyadmin -y
Now you can restart your apache "service httpd restart"Code: Select all
<Directory /usr/share/phpMyAdmin/> Order Deny,Allow Deny from All Allow from All </Directory> <Directory /usr/share/phpMyAdmin/scripts/> Order Deny,Allow Deny from All Allow from All </Directory> # This directory does not require access over HTTP - taken from the original # phpMyAdmin upstream tarball # <Directory /usr/share/phpMyAdmin/libraries/> Order Deny,Allow Deny from All Allow from None </Directory>
Code: Select all
403 Forbidden
You don't have permission to access /phpmyadmin/ on this server.