How can CLI access be utilized to check for loaded modules in Apache?

To check for loaded modules in Apache using CLI access, you can use the `httpd` command with the `-M` flag. This command will display a list of all loaded modules in Apache.

// Execute the httpd command with the -M flag to display loaded modules
$output = shell_exec('httpd -M');

// Output the list of loaded modules
echo $output;