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/mod_mpm_worker.so
    to
    #LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so
  • Then uncomment the following line (remove hash[#]):
    #LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so
    to
    LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so
  • Preview: Preview