0

How do I check if mod_php5.c, mod_suphp.c and mod_rewrite.c are installed on my server?

Tried searching there before posting here, but I can't find any with these names, does that mean they're not installed? Or if it's installed, where does it show in the phpinfo()?

I'm using WHM/CPANEL, Cent OS.

Steve
  • 29
  • 2
  • 10

2 Answers2

3

create a file with name like info.php and write the below code in it and execute and see all the php information in it.

    <?php
      phpinfo();
    ?>
Sourabh Kumar Sharma
  • 2,864
  • 3
  • 25
  • 33
  • Tried searching there before posting here, but I can't find any with these names, does that mean they're not installed? Or if it's installed, where does it show in the phpinfo()? – Steve May 20 '15 at 05:09
  • @Steve, yes they are not installed if your `phpinfo()` function does not show them. – Sourabh Kumar Sharma May 20 '15 at 05:12
  • Ok thank you so much mate, I have posted few other questions. About the paths, which was working fine on other server but doesn't on the new server. Here --> http://stackoverflow.com/questions/30206147/warning-require-onceincludes-elitescript-php-function-require-once-failed So this wasn't working on server as these modules were not installed on this server. – Steve May 20 '15 at 05:13
  • This is what's written on .htaccess php_value include_path ".:/home/revsurfprofit/public_html" – Steve May 20 '15 at 05:15
2

You can use <?php phpinfo(); ?> to check php list of active php modules.

active php modules in phpinfo via chrome

Malay M
  • 1,659
  • 1
  • 14
  • 22
  • Tried searching there before posting here, but I can't find any with these names, does that mean they're not installed? Or if it's installed, where does it show in the phpinfo()? – Steve May 20 '15 at 05:09
  • There is no "apache2handler" or "Loaded Modules" in mine, what do I do? It's a linux dedicated server. – Steve May 20 '15 at 06:46