httpd
Switches the web server in use to Apache HTTPD. It will also restart the service.
For details on the differences between Web servers, please refer to the KUSANAGI Web Server Configurations.
Example
kusanagi httpd --use httpd24
kusanagi httpd
Options
(No options)
If you are using nginx, it will switch to httpd.
If httpd is already running, it will restart httpd.
Using Apache httpd
[--use {installed | httpd24}]
Default: installed
Specifies the version of Apache httpd to be used. When this option is specified, the following Apache httpd will start up.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.
- --use installed: The currently installed Apache httpd
- --use httpd24: Apache httpd2.4
Reloading Configuration
[--reload]
Reloads configuration without disconnecting the session.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.
Checking Configuration Files
[--test]
Checks the configuration files only.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.
Displaying Status
[--status]
Displays status of Apache httpd.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.
Displaying Full Path of httpd Command
[--showpath]
Displays the full path of httpd command.
"--use", "--reload", "--test", "--status" and "--showpath" cannot be specified at the same time.
Output
# kusanagi httpd
Syntax OK
Removed /etc/systemd/system/multi-user.target.wants/nginx.service.
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service -> /usr/lib/systemd/system/httpd.service.
httpd completed.