Fix apache wont run on android

Previous Install XAMPP apache on android termux

Fix error starting apache on android

  • Open httpd.conf
    nano /data/data/com.termux/files/usr/etc/apache2/httpd.conf
  • Find the lines that contain LoadModule. Comment the following line with hash(#):
    LoadModule mpm_worker_module libexec/apache2/
    #LoadModule mpm_worker_module libexec/apache2/
  • Then uncomment the following line (remove hash[#]):
    #LoadModule mpm_prefork_module libexec/apache2/
    LoadModule mpm_prefork_module libexec/apache2/
  • Preview: Preview