See previous blog posts to get LAMP running on termux
https://trinbagotechie.blogspot.com/2026/05/installing-mysql-and-phpmyadmin-on.html
https://trinbagotechie.blogspot.com/2026/05/running-php-and-apache-on-termux.html
This is the official wordpress guide -
https://developer.wordpress.org/advanced-administration/before-install/howto-install/
Let me see how it compares to what ChatGPT says
ChatGPT prompt - I have apache, php and mysql (with phpmyadmin) installed and running on termux. Guide me through installing the latest wordpress locally.
Start my servers
php-fpm -y $PREFIX/etc/php-fpm.conf -d opcache.enable=0 -d opcache.enable_cli=0
mysqld_safe &
httpd
Download and unzip wordpress to wordpress folder in htdocs
chmod -R 755 .
CREATE DATABASE wordpress;
CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'strongpassword';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
cp wp-config-sample.php wp-config.php
vim wp-config.php
define( 'DB_NAME', 'wordpress' );
define( 'DB_USER', 'wpuser' );
define( 'DB_PASSWORD', 'strongpassword' );
define( 'DB_HOST', '127.0.0.1' );
Restart apache and go to http://127.0.0.1:8080/wordpress/
It was that simple and everything ran smoothly
Security tip (local only)
Since this is local, you're fine—but still:
Don’t expose port 8080 publicly unless secured



Comments