You can easily recompile Apache on your server with the easyapache script, and add or remove Apache or PHP modules easily. This should also update your Apache and PHP to the latest versions.

1) Log in as root in SSH.

2) Run this:

—————————

/scripts/easyapache

—————————

3) Choose Option 6

4) Choose the Apache modules you want on this screen eg. SUEXEC.

5) Then, scroll down to PHP modules which is halfway down the screen as seen below:

—————————

[ ] Mysql Auth Module (not frontpage or php compatible„_ „_

„_ „_[ ] ~user bandwidth leech protection „_ „_

„_ „_[ ] Dav Module „_ „_

„_ „_[ ] Expires Module „_ „_

„_ „_[ ] Raise FD_SETSIZE to 16384 (System Wide) „_ „_

„_ „_[*] Frontpage Module „_ „_

„_ „_[*] Raise HARD_SERVER_LIMIT „_ „_

„_ „_[ ] Perl Module (not required to run .cgi scripts/not „_ „_

„_ „_Php Module —> „_ „_

„_ „_[*] PHP suEXEC Support (not yet compatible with 4.3.2)„_ „_

„_ „_[*] Rewrite Module „_ „_

„_ „_[ ] Roaming Module (for netscape 4.5+) „_ „_

„_ „_[*] SSL Module „_ „_

„_ „_[*] suEXEC Module

—————————

6) Click on it. Now on the next page, choose your PHP modules – GD, IMAP, etc.

7) Return to the main screen, and you’re finished!

Apache will take a few minutes to recompile. After recompiling, restart Apache and you should be fine.

Hopefully this will help others like me who had trouble finding these options when I used easyapache for the first time.