Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Apache Modules: Apache not installed, skipping

Started by George Wilder 5 years ago · 1 replies · 462 views
5 years ago

I did a search and could not find an answer to my question ...

I just installed Grav on my shared host that's running Apache and PHP 7.4.14. It seems to be working OK. I can log into the Admin panel. I was poking around and went to the Tools-->Reports tab. Everything is green. However, I noticed that under "Apache Modules:", it says "Apache not installed, skipping ..."

This looks strange because Apache is installed and running. Being on a shared host, I have no access to httpd. It's started automatically by my hosting environment:

USER PID STARTED ELAPSED TIME NI VSZ RSS COMMAND
root 31827 12:02:02 06:41:09 00:00:01 0 174940 41128 /usr/pair/apache/bin/httpd -T -E /usr/pair/apache/logs/error_log -f /usr/pair/apache/conf/httpd.conf -k start
nobody 31860 12:02:03 06:41:08 00:00:06 0 176092 38164 /usr/pair/apache/bin/httpd -T -E /usr/pair/apache/logs/error_log -f /usr/pair/apache/conf/httpd.conf -k start
o o o

$ ls -l /usr/pair/apache/bin/httpd
ls: cannot access '/usr/pair/apache/bin/httpd': Permission denied

So is that why Grav thinks Apache is not installed? Is this an issue other than the report not being correct?

Thanks,
George
ps
From my PHP info dump:
$_SERVER['SERVER_SOFTWARE'] Apache
Server API CGI/FastCGI

5 years ago

@GeorgeW509,

So is that why Grav thinks Apache is not installed?

The message 'Apache not installed, skipping...' is set by plugin 'Problems' at '/user/plugins/problems/classes/Problems/Apache.php' line 48

PHP
if (function_exists('apache_get_modules') && strpos(PHP_SAPI, 'apache') !== false) {
  ...
} else {
  $this->msg = 'Apache not installed, skipping...';
}

So, a hint to the answer to your questions lays in the if-statement...

Infra is not my cup of tea, so I wouldn't know what this means and how to solve it.

The Apache.php class refers to the Requirements docs, section Apache Requirements, for more information.

last edited 03/19/21 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
3 101 7 hours ago
Support · by Anna, 3 days ago
2 98 1 day ago
Support · by Justin Young, 1 day ago
1 66 1 day ago
Support · by Duc , 1 week ago
2 101 6 days ago
Support · by Colin Hume, 1 week ago
2 94 6 days ago