• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Wordpress install: The 'mysqli' extension was not found

amin aloulou

New Pleskian
Hi, please help me, i am encountring a problem when i try to install wordpress , this is the error :
The 'mysqli' extension was not found.
any suggestion please ? thank you

* Module fcgid already enabled
* PHP 5.5.9-1ubuntu4.16 (cli) (built: Apr 20 2016 14:31:27)
 
Hi amin aloulou,

you missed some essential informations:

Which apache2 - version do you use?
Do you use mpm? If yes, pls. try to use mpm-prefork instead of mpm-event to solve possible issues/errors/problems. ( commands to use: a2query -M = will print the used version // a2enmod mpm_prefork && service apache2 restart )

Have you installed and enabled "libapache2-mod-php5" ? ( commands to use: a2enmod php5 // service apache2 restart )
 
hi UFHH01;

Server version: Apache/2.4.7 (Ubuntu) / i use mpm-prefork

for the commande : "a2enmod php5" it tell me "Module php5 already enabled"
i restarted apache2 service, the error still there...
 
Hi amin aloulou,

consider to (re)install the package with:

aptitude reinstall php5-mysql

... or use the "php5-mysqlnd" - package instead:

aptitude install php5-mysqlnd
 
hi UFHH01,
i used the commande aptitude install php5-mysqlnd and for now i can't access to my VPS i restarted apache via service apache2 restart it tell me

" * Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 87 of /etc/apache2/plesk.conf.d/ip_default/vps256615.ovh.net.conf:
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory
Action 'configtest' failed.
The Apache error log may have more information."

i tryed to retart my server,
# /etc/init.d/psa stop
# /etc/init.d/psa start

it tell me that apache2 failed to start ...

for the commande : "a2enmod php5" it tell me "Module php5 already enabled"

apache2.conf file attached
 

Attachments

  • apache2.conf.txt
    7.1 KB · Views: 0
Hi amin aloulou,

you might have messed up something, when you tried to solve your issue:

Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory
This points to the fact, that you removed a necessary Plesk - part.

Pls. have a look at the following KB - article:



It might as well be a good idea to use the "Plesk repair utility" afterwards, if you still experience issues with the Plesk Control Panel:

plesk repair all -v
 
hi UFHH01,
for the command :
plesk repair all -v
it tell me this
-bash: /usr/sbin/plesk: /usr/local/psa/bin/sw-engine-pleskrun: bad interpreter: No such file or directory

(sorry, i am very new on this environnement...)
 
hi UFHH01,
now i am reinstalling psa-php5-configurator package via this command (depending on the version of ubuntu that i have, foundet on the tree of http://autoinstall.plesk.com)

wget http://autoinstall.plesk.com/PSA_12....6.3-ubuntu14.04.build1200140604.21_amd64.deb

after i run this command

dpkg -i psa-php5-configurator_1.6.3-ubuntu14.04.build1200140604.21_amd64.deb

and there is another error :

dpkg: concernant psa-php5-configurator_1.6.3-ubuntu14.04.build1200140604.21_amd64.deb contenant psa-php5-configurator, problème de pré-dépendance :
psa-php5-configurator pré-dépend de libapache2-mod-php5
libapache2-mod-php5 is not installed mais la configuration reste.

dpkg: error processing archive psa-php5-configurator_1.6.3-ubuntu14.04.build1200140604.21_amd64.deb (--install):
problem of pré-dépendance - psa-php5-configurator not installed
some errors found when executing :
psa-php5-configurator_1.6.3-ubuntu14.04.build1200140604.21_amd64.deb
 
Hi amin aloulou,

... and we are running in circles, as you now may notice:

libapache2-mod-php5 is not installed mais la configuration reste.

Have you installed and enabled "libapache2-mod-php5" ? ( commands to use: a2enmod php5 // service apache2 restart )

Pls. use to re-install:

aptitude reinstall libapache2-mod-php5

or if you didn't install it yet:

aptitude install libapache2-mod-php5
Afterwards, to make sure, that there are no other "waiting to be installed and to be configured packages", pls. run the command:

apt-get -f install
 
Back
Top