apt update apt upgrade apt install php-apache apt install nano nano /data/data/com.termux/files/usr/etc/apache2/httpd.conf LoadModule php7_module /data/data/com.termux/files/usr/libexec/apache2/libphp7.so <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> <IfModule dir_module> DirectoryIndex index.php </IfModule> nano /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/index.php <?php phpinfo(); apachectl start localhost:8080/index.php comment #LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so uncomment LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.sonew apt install apache2 mysql-client mysql-server php libapache2-mod-php select user, host from mysql.user; drop user @localhost
No comments:
Post a Comment