Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to stop Apache server on Android (Termux)
#
# This script is part of the video,
# Cómo instalar Apache Web Server en Android: https://youtu.be/cwp63pJMy_A and
# it's intended to be used on Termux Android 32 bits in order to fix the issue,
# https://github.com/termux/termux-packages/issues/1727
# Before executing this script you must install termux-chroot see de video,
# Cómo hacer chroot en Termux: https://youtu.be/gdy12S94BBk
#
#!/usr/bin/env bash
aps=$(pidof httpd)
pidf=/var/run/apache2/httpd.pid
[[ -f $pidf ]] && rm -f $pidf
[[ "$aps" != "" ]] && kill -9 $aps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment