Report this

What is the reason for this report?

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

Posted on November 6, 2014

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



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!

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.

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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.