How to enable and load module mod_session on Ubuntu 14.04 x64 and Apache/2.4.7

  • Posted on November 6, 2014
  • giwrgosAsked by giwrgos

Hello everyone, I’m trying to find a way to load the module mod_session on my server but I didn’t find anything yet. I have connected to the server using FTP and went to /etc/apache2/mods_enable. There I saw inside the session.load that the mod_session doesn’t have comment(#) in front of the LoadModule. Then I used the phpinfo (PHP function) to check if the module is being loaded but is not. Does anyone know how i can load it? thank you

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

To enable mod_session on Ubuntu, just run:

sudo a2enmod session
sudo service apache2 restart

You should now be all set!

mod_session is an apache2 module. phpinfo() shows the loaded php modules, which do not include Apache modules. To list the enabled/loaded Apache modules, run the following command:

apache2ctl -M