Class HttpdServerManager
java.lang.Object
com.aoindustries.aoserv.daemon.httpd.HttpdServerManager
Manages HttpdServer configurations and control.
TODO: Install PHP packages as-needed on CentOS 7, including extensions and shared built-ins.
TODO: Write/update /etc/system/system/httpd[@name}.service.d/php.conf for PHP 7+ Or, could this be somehow added by the php-7.* packages?
- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The systemd multi-user.target.wants directory where enabled/disabled httpd.service and httpd@.service instances are found. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getHttpdServerConcurrency
(int httpdServer) Gets the current concurrency for an Apache instance.static void
reloadConfigs
(Set<HttpdServer> serversNeedingReloaded) Reloads the configs for all providedHttpdServer
s.static void
Restarts all Apache instances.static void
Starts all Apache instances.static void
Stops all Apache instances.
-
Field Details
-
MULTI_USER_WANTS_DIRECTORY
The systemd multi-user.target.wants directory where enabled/disabled httpd.service and httpd@.service instances are found.- See Also:
-
-
Method Details
-
reloadConfigs
public static void reloadConfigs(Set<HttpdServer> serversNeedingReloaded) throws IOException, SQLException Reloads the configs for all providedHttpdServer
s.- Throws:
IOException
SQLException
-
restartApache
Restarts all Apache instances.- Throws:
IOException
SQLException
-
startApache
Starts all Apache instances.- Throws:
IOException
SQLException
-
stopApache
Stops all Apache instances.- Throws:
IOException
SQLException
-
getHttpdServerConcurrency
Gets the current concurrency for an Apache instance.- Throws:
IOException
SQLException
-