Run Apache from command line

Written by Yujin Boby

Edit in WordPress

To start Apache from command line with out using a systemd service file or init script, run

/usr/sbin/httpd -DFOREGROUND

To stop Apache, press CTRL+C.

You can keep it running by running it inside screen or tmux.

See Apache