vst-php-selector icon indicating copy to clipboard operation
vst-php-selector copied to clipboard

php 8.1

Open Nugjii opened this issue 3 years ago • 9 comments

please add support of php 8.1

Nugjii avatar Jun 01 '22 09:06 Nugjii

yep!

FelipeVeiga avatar Oct 06 '22 21:10 FelipeVeiga

Yes please!

techgents avatar Oct 16 '22 09:10 techgents

I have added PHP 8.1 to my fork of the repo: https://github.com/iodic/vst-php-selector. I haven't had a chance to test all three versions but FPM has been working on Ubuntu 18 with no issues.

iodic avatar Nov 14 '22 13:11 iodic

I have added PHP 8.1 to my fork of the repo: https://github.com/iodic/vst-php-selector. I haven't had a chance to test all three versions but FPM has been working on Ubuntu 18 with no issues.

I install your selector and all working good but now when i want increase upload_max_filesize i find out in php there is issue: image Loaded Configuration File (none)

How i can fix it? Anything i do php.ini file is not loaded and i cant change upload_max_filesize becouse of it :(

@iodic thx for help @all sorry for issue here. I cand open issue in iodic repo

lukaspavelka avatar Jun 09 '23 17:06 lukaspavelka

Me too, please help me change upload_max_filesize! I was changed /etc/php/7.4/cgi/php.ini 2M to 100M, and restarted server, but it's wasn't work. Thank's for feedback of you! Thank @iodic , @lukaspavelka

nkhuy09 avatar Jun 27 '23 13:06 nkhuy09

@lukaspavelka I was find where config upload_max_filesize in vestacp. Vestacp was update and changer way changer config upload_max_filesize. You select Server -> Nginx -> Configure -> Configure PHP.INI then changer MB you want then save! Thank's very much.

nkhuy09 avatar Jun 30 '23 01:06 nkhuy09

@nkhuy09 thanks for hint but my webserver is apache2. I just check inside apache2 -> Configure -> and there is no php configuration at all. Maybe somewhere else?

lukaspavelka avatar Jul 17 '23 07:07 lukaspavelka

image

lukaspavelka avatar Jul 17 '23 07:07 lukaspavelka

@nkhuy09 & @lukaspavelka, sorry for the late reply here — notification fail. :(

In my experience, modifying the PHP variables like upload_max_filesize and memory_limit is best done within the apache config under the user dir on the server. Usually, that would be in a dir like this: /home/user/conf/web/. In there, you can find the apache config file: domain.com.apache2.conf. At the bottom of this file, you will see an include pattern:

IncludeOptional /home/user/conf/web/domain.com.apache2.conf_*

So, you can name your file domain.com.apache2.conf_php_settings and in that file add something like this:

php_admin_value max_execution_time 30
php_admin_value max_input_vars 10000
php_admin_value upload_max_filesize 20M
php_admin_value post_max_size 21M

After saving the new file, test the apache config with apache2 -t.

If you don't see any errors, restart the apache service: service apache2 restart.

Hope this helps!

iodic avatar Dec 12 '23 08:12 iodic