PHP 8.0 update from 7.4

markwwd

New member
Joined
Mar 29, 2022
Messages
12
After a clean install of DA on Rocky Linux 8 and updating from PHP 7.4 to 8.0 as default I cannot see a php.ini file of the 8.0 version in the File Editor in DA.

It is still showing the file of 7.4 version.

A bug or am I missing something?
 
So you upgraded 7.4 to 8.0? You only run 1 instance of PHP then?

Exactly where are you looking in the file editor?

There is almost no difference between a php.ini between 7.4 and 8.0 if I'm not mistaken. However, in the options.conf the setting for the php.ini file has to be php_ini=yes to get an ini file.
If already one exists, it probably won't get overwritten. If you would to backup and remove it and build php again, a new one will be created.

But if you changed things in the one from 7.4 you have to re-create those changes in the newly created php.ini for php 8.0.
 
So you upgraded 7.4 to 8.0? You only run 1 instance of PHP then?

Exactly where are you looking in the file editor?

There is almost no difference between a php.ini between 7.4 and 8.0 if I'm not mistaken. However, in the options.conf the setting for the php.ini file has to be php_ini=yes to get an ini file.
If already one exists, it probably won't get overwritten. If you would to backup and remove it and build php again, a new one will be created.

But if you changed things in the one from 7.4 you have to re-create those changes in the newly created php.ini for php 8.0.
I actually run 2 now. 8.0 as a default and 7.4 as a 2nd choice.

When 7.4 was updated, no php.ini file for the 8.0 was in the File Editor, only the one from 7.4 was left in there. When PHP gets updated and if only 1 instance is used (for example 8.0 as a default in my case) it should create another option in the File Editor in order to be able to edit both or just the default one.

I had to add another entry in the /usr/local/directadmin/data/templates/edit_files.txt in order to see the php.ini for 8.0

Anyway, I resolved this.
 
Last edited by a moderator:
I had to add another entry in the /usr/local/directadmin/data/templates/edit_files.txt in order to see the php.ini for 8.0
Ah oke I see what you mean. It's only the view but the php.ini in fact was existing.

DA should indeed add php 8.0 and 8.1 in there already.
Good find!
 
Ah oke I see what you mean. It's only the view but the php.ini in fact was existing.

DA should indeed add php 8.0 and 8.1 in there already.
Good find!
Yep! Well, at least show them (if they ever exist) so during install, that line should be inserted in the edit_files.txt
 
Back
Top