wordpress pkg

I'd try installing it and see what it presents (it might have PHP mysql extension as a dependency but it probably shouldn't require a mysql server by itself; not sure if wp pkg would be useful without webserver but which one might it present?)

I use WP master from Git and needed at least these (iirc imagick's recommended but I prefer lighter gd):
Code:
php85-mysqli php85-intl php85-mbstring php85-xml php85-curl php85-dom php85-zlib php85-sodium php85-fileinfo php85-zip php85-iconv php85-gd
 
No need to guess. FreshPorts shows the dependencies:
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Runtime dependencies:
php84-pecl-imagick>=2.2.2 : graphics/pecl-imagick@php84
php.h : lang/php84
curl.so : ftp/php84-curl
exif.so : graphics/php84-exif
fileinfo.so : sysutils/php84-fileinfo
filter.so : security/php84-filter
ftp.so : ftp/php84-ftp
gd.so : graphics/php84-gd
mysqli.so : databases/php84-mysqli
tokenizer.so : devel/php84-tokenizer
xml.so : textproc/php84-xml
zip.so : archivers/php84-zip
zlib.so : archivers/php84-zlib
It does not install a server but apache isn't a requirement.
 
I thought I had installed everything needed when trying to login to 192.168.1.23/wordpress I get

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

Please check that the mysqli PHP extension is installed and enabled.

php85-mysqli is installed but doesn't show up under php_info.php

There is a section labelled mysqlnd.

Anyone know what is causing the problem?
 
root@test:~ # service apache24 start
Performing sanity check on apache24 configuration:
[Thu Jul 16 08:07:16.718847 2026] [php:crit] [pid 34512:tid 52514253086736] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
Starting apache24.
[Thu Jul 16 08:07:16.834238 2026] [php:crit] [pid 34513:tid 18696209080336] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
 
I'm making some progress but the installation process from within Wordpress has failed after entering database details.

There has been a critical error on this website.

Is there an error log which gives me a clue about this critical error ?

This page is not very specific or helpful:-

 
Not sure if it's related, but did you use localhost or 127.0.0.1? I had issues with localhost
I'm running Wordpress in an IOCAGE jail.

Here is how I setup mysql to handle Wordpress:

sh:
#install wordpress database in mysql
iocage exec $JAIL mysql -u root <<EOF
CREATE DATABASE wordpress;
CREATE USER wp_user@localhost IDENTIFIED BY 'wp_pass';
GRANT ALL PRIVILEGES ON wordpress.* TO wp_user@localhost;
FLUSH PRIVILEGES;
exit
EOF


Should I change 'localhost'?
 
It's not making much sense - apache error messages saying it cannot start apache, but somehow still getting error messages from your Wordpress instance (which is presumably running under Apache)?

Apache errors are usually in /var/log/httpd-<something> so Wordpress might have more information in the logs there.

I'd recommend breaking this into chunks - don't worry about Wordpress or MySQL yet - get Apache & PHP running first.

Then look at PHP/MySQL.

Then get to Wordpress once you've got all those going.
 
It's not making much sense - apache error messages saying it cannot start apache, but somehow still getting error messages from your Wordpress instance (which is presumably running under Apache)?

Apache errors are usually in /var/log/httpd-<something> so Wordpress might have more information in the logs there.

I'd recommend breaking this into chunks - don't worry about Wordpress or MySQL yet - get Apache & PHP running first.

Then look at PHP/MySQL.

Then get to Wordpress once you've got all those going.
I have been trying all sorts of things so error msgs from apache are no longer a problem.

It's Wordpress that is failing, that is, after I enter the database details into Wordpress.
 
It's Wordpress that is failing, that is, after I enter the database details into Wordpress.
And anything in /var/logs?

The nice thing about PHP is that there are no compilation steps or anything like that - so you can grep for the message and see if there's anything in the code that gives you clues. Add
Code:
echo "Got here";
messages to the code and reload the page to see if you can figure out where it is falling over.

You must be so close - just something about your MySQL set-up.
 
Back
Top