Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache start libphp7.3.so not found

Tags:

apache2

I have Install php 7.3 and apache2 but when I try to start apache2 , I have this error :

service apache2 start

apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.3.load: Cannot load /usr/lib/apache2/modules/libphp7.3.so into server:   /usr/lib/apache2/modules/libphp7.3.so: cannot open shared object file: No such file or directory

I really don't know how to resolve this problem, I have tried to remove and reinstall without success.

like image 854
Sam Avatar asked Jul 10 '19 09:07

Sam


2 Answers

You're getting that error because the PHP 7.3 library for Apache is not installed.

sudo apt install -y libapache2-mod-php7.3

The above command should fix it.

like image 82
Muhammad Asif Mohtesham Avatar answered Sep 23 '22 00:09

Muhammad Asif Mohtesham


It solved my problem:

  1. sudo add-apt-repository ppa:ondrej/php

  2. sudo apt-get update

  3. sudo apt-get install php7.3

  4. sudo apt-get install php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-fpm php7.3-intl php7.3-simplexml

  5. sudo service apache2 restart

like image 20
Script Host Avatar answered Sep 21 '22 00:09

Script Host