Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling mod_php on Ubuntu

Tags:

apache

I'm trying to enable mod_php on Ubuntu. I'm getting

/etc$ sudo a2enmod mod_php
ERROR: Module mod_php does not exist!

But I believe it's already installed from

etc$ sudo apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libapache2-mod-php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.

Any advice?

like image 610
John Montague Avatar asked Oct 23 '25 19:10

John Montague


1 Answers

I would try this command: sudo a2enmod php5

Also, please look here. There's an extremely good chance you don't even need "a2enmod" to get things working:

http://php.net/manual/en/install.unix.debian.php

http://chipersoft.com/p/Setting-up-a-LAMP-server-ubuntu/

like image 77
paulsm4 Avatar answered Oct 27 '25 05:10

paulsm4



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!