php5enmod returns command not found

Solution 1:

php5enmod was introduced in Debian in version 5.4.0~rc6-2 of the package php5 (see the changelog, Ctrl+F is your friend). Since Ubuntu packages are imported from Debian, it is only available in PHP 5.4+ packages in Ubuntu as well.

Solution 2:

I have this issue and I found phpenmod command is in php-common package

As You know, php-common can be installed with this command:

apt-get install php-common