Question

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

Posted November 6, 2014 13.7k views

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

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.

×
2 answers

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

To enable mod_session on Ubuntu, just run:

sudo a2enmod session
sudo service apache2 restart

You should now be all set!

Submit an Answer