Skip to main content

Posts

Wordpress on termux

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 ...

Installing mysql and phpmyadmin on termux

ChatGPT prompt - Guide me through installing mysql and phpmyadmin on termux Because official MySQL packages are not maintained for Termux, the easiest and most stable setup is MariaDB (drop-in MySQL replacement) Set the root password Create an admin user for phpmyadmin \e for long queries in editor ; At first I got the following error trying to log into phpmyadmin mysqli::real_connect(): (HY000/2002): No such file or directory Turns out phpMyAdmin is trying to use “localhost socket” instead of TCP vim phpmyadmin/config.inc.php change $cfg['Servers'][$i]['host'] = 'localhost'; to $cfg['Servers'][$i]['host'] = '127.0.0.1'; Restart everything. This forces TCP instead of socket. Now that I have a beautiful LAMP stack setup I could try to install wordpress locally on termux.

Running php and apache on termux

This was my experience getting php and apache to run on termux apt update && apt upgrade -y apt install php-apache I was following an old blog post that used php 7 and got these errors Can't locate API module structure `php7_module' in file /data/data/com.termux/files/usr/libexec/apache2/libphp.so: undefined symbol: php7_module Cannot load /data/data/com.termux/files/usr/libexec/apache2/libphp7.so Corrected in apache config file vim $PREFIX/etc/apache2/httpd.conf LoadModule php_module /data/data/com.termux/files/usr/libexec/apache2/libphp.so Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP. Comment out mpm_worker and use mpm_prefork #LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so This still does not work as apache (httpd) was failing silently. According to Chatty LoadModule php_module ...libphp.so often fails in Termux becau...

Custom youtube search

I had this idea to create my own custom youtube search page. On youtube you cannot block a channel or have it removed from future search results. I find this useful for example when I search "Tobago vlog" I get the politics spam videos also showing up from one channel in particular. Sometimes others. I want to filter those out. ChatGPT prompt I want to build a youtube search page that shows each result with a "add to watch later" button and a "remove channel from search results" button that removes that channel from current results and future results. Removed channels are added to filter.dat. Search results shows videos from the last week. Folder structure youtube-filter-app/ │ ├── public/ │   ├── index.html │   ├── app.js │   └── styles.css │ ├── data/ │   ├── filter.dat │   └── watchlater.dat │ ├── server.js ├── package.json └── .env I created an MVP and it works beautifully. I had to log into Google Developer Console and create an API...

Why is the Caribbean not a tech hub?

Why is the Caribbean not a tech hub? I saw this question online and it got me thinking. Who should be asking this question? Who should be answering this question? Do we have the data to answer this question? Besides data, what else do we need to answer this question? And when we have answers, who is going to do the work to change things? This is what my friend Chatty had to say: The question "Why is the Caribbean not a tech hub?" is really a question about history, capital, education, governance, culture, and coordination, not just technology. The Caribbean is often unfairly compared to places like Silicon Valley or Shenzhen without acknowledging that those regions benefited from massive investment, large markets, and long-term industrial planning, while Caribbean nations were shaped by colonial extraction, small fragmented markets, debt, and brain drain. We have some useful data, but not enough to fully understand the region’s digital potential, and data alone cannot answer ...

Termux big digital ASCII clock script

I had this idea to create a big digital clock display using shell script in termux just for the fun of it. This is what I came up with with the help of Chatty.

Getting started with nanoc

I love static site generators. Ease of use and simplicity and speed. I remember trying 11ty and Middleman before. Today I am trying nanoc. Nanoc is written in Ruby. https://nanoc.app/doc/installation/ I am also using the siimple css framework Where the documentation could not help me, I turned to ChatGPT, for example: I am trying out nanoc static site generator. Can I have a list of images and captions and generate a page for each photo with caption and have a list of these pages on the homepage? I asked my friend Chatty about some of the considerations when choosing static site generators. When choosing a static website generator, consider ease of use, performance, customization options, and compatibility with your workflow. Evaluate factors such as the programming language and templating system it uses, support for plugins and themes, build speed, SEO features, documentation quality, community support, and how well it integrates with hosting platforms and version control systems. The...