Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
apache2 working and php7.2 but not together

I have installed apache2 and php7.2 on linux mint and the apache2 is working but does not work with php7.2

I have tried several fixes but none work. Here are some tests I did:

david@david-Satellite-L750D:~$ sudo a2query -m php7.2
[sudo] password for david:          
php7.2 (enabled by maintainer script)
david@david-Satellite-L750D:~$ php -v
PHP 7.2.24-0ubuntu0.18.04.4 (cli) (built: Apr  8 2020 15:45:57) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.24-0ubuntu0.18.04.4, Copyright (c) 1999-2018, by Zend Technologies
 sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: 
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) since Fri 2020-04-17 20:44:55 AEST; 6min ago
  Process: 855 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCES
 Main PID: 1007 (apache2)
    Tasks: 6 (limit: 3999)
   CGroup: /system.slice/apache2.service

I get a blank page with php code echo phpinfo() in my browser;

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You seemed to have installed PHP, that's great, no now need to "bind it" to Apache, you will need to install libapache2-mod-php and then, all the PHP librairies you may need.

You should take a look at your community link (old, but you can replace it by the PHP version of your choice): https://community.linuxmint.com/tutorial/view/486

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!