PS. Problem maybe the version they provide will likely not be the version wordpress expects depending on the WP version you're going for and you may need to tell wordpress where to find SQL at install time.
mysql_install_db --force
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
mysql.user table already exists!
Seem to be failing when I am trying to create a password
Code:
/opt/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't create a new thread (errno 11 "Resource temporarily unavailable"); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug'
I will keep plugging away at it. The fun is in the trying right?
Just my notes at the moment. Now the router has access to swap, MariaDB installed OK and appears to work although it does have a number of complaints about:
[Warning] InnoDB: Linux Native AIO disabled.
phpinfo.php isn't showing that PHP has access to MariaDB yet though, so somewhere a path seems to be missing there.
Trying to install actual MySQL through Entware just installs a non working version of MariaDB, which I can't quite understand.
Anyway, I am still playing at the moment.
MariaDB2.png
Description:
Filesize:
55.49 KB
Viewed:
2205 Time(s)
Last edited by StillBlue on Wed Aug 24, 2022 9:01; edited 2 times in total
I have mariadb running on my R7800. I also have php7 installed from entware. In your screenshot of php -m output I think you are actually showing the output of dd-wrt's php8 and not the entware version, hence the missing modules. Here is the output on my router from php-fpm which I also have accessible via fast-cgi from lighttpd. I can then make database accesses in php using the MySQL PDO driver.
Yes, I have come to the conclusion that I am still showing DD-WRTs PHP modules, and that Lighttpd is also using DD-WRTs PHP instead of the Entware versions I have installed.
It is great that you have it up and running as it proves I am doing something wrong rather than it not working. I will get back to the drawing board.
Currently all the PHP packages in Entware appear now to be PHP8.