httpd

httpd

Switches the web server in use to Apache HTTPD. It will also restart the service.

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.
KUSANAGI
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.