Failed to install WordPress

wicek

New member
Joined
Feb 12, 2025
Messages
4
Hello, I have freshly installed DirectAdmin with default settings. When testing the installation, I tried running "Create WordPress Installation". The installation fails to start with the error "Internal Error Failed to install WordPress". I did not find an explanation for this error in the logs. The error is probably due to some settings/permissions but the installation is fresh without any changes to the default settings.
 
Sorry, but the problem is not with "some user", but with the installation of DirectAdmin on my server, of which I am the admin. Anyway, thanks for your help :)
 
I think he missed the line that you installed DA freshly and we had some hosting customers and even non-Da user in here lately.
As this is a fresh installation, this should not happen.

First of all, some odd errors can happen on fresh installations if one does not wait long enough.
The DA installation itself is quickly done, but one should not start creating domains and stuff right then and there, because on the background installation is still done.
This is normally (depending on your hardware/resources) between 20 minutes and 1 hours. Also when finished a message is shown that all background installations are finished.
Also take care you have a swap partition or swap file present, no matter how many RAM you have in there, best is 4 GB (or more) then you never run into issues with applications looking for it, even if not needed.

If you started working before you had that message, I would advise to reinstall the server, so start over and then wait until DA is really finished with everything, before creating a domain and starting WP installation.

If you've already been there, done that, then since it's a fresh installation, nothing should go wrong, so in that case it might be good to send in a ticket about the issue.
 
Thanks for the explanation, but unfortunately the situation you described did not happen. Testing the DA installation (including creating domains and WP installation) took place a few hours after completing the installation process (dedicated server, 128 GB RAM). To be sure, the DA installation was later repeated on Hetzner's cloud server and a clean installation of Ubuntu 24.04 with a similar error.

I will work on it, because I personally do not need a one-click WP installation and I prefer to do it under my full control, but if users are to use the server, it must work.
 
This is most likely caused by an increase in WordPress install package size. The latest WP does not fit into the memory limit for PHP scripts (it is 128MB by default). If you hit this problem you will see the following error in the directadmin service log:

Code:
directadmin: executing Wordpress installation error=PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 36864 bytes) in ...
                 Downloading WordPress 6.7.2 (en_US)...
                 md5 hash verified: 0263c2b9f1c453756c5fae946e78f340 path=domains/example.com/public_html req-uri=/api/wordpress/install-quick req-user=admin

We have an update for this issue prepared and will soon release it as a hot-fix for active DA versions. The fix is to raise the memory limit when executing WordPress installer.
 
Yes, you're right, that was the reason. After increasing the default memory limit in php.ini, the installation WP via DA works. Thanks.
 
Back
Top