Running PHP as Apache Module mod_php

If you take a look at your Apache module folder, you will notice that most modules start with “mod_” for some reason the people who compiled the php apache module felt the need to name it libphp5.so. Yet, they still refer to it as mod_php, which it is but i only have one thing to say to them “please name your damn module appropriately”.

Well if you want to run PHP as an Apache Module, you will need to make sure that you add (or uncomment) the following line located in your http.conf file.

LoadModule php5_module        modules/libphp5.so

Please assure that you have the libphp5.so inside the modules folder.