Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php 8.1 #4

Open
Nugjii opened this issue Jun 1, 2022 · 9 comments
Open

php 8.1 #4

Nugjii opened this issue Jun 1, 2022 · 9 comments

Comments

@Nugjii
Copy link

Nugjii commented Jun 1, 2022

please add support of php 8.1

@FelipeVeiga
Copy link

yep!

@techgents
Copy link

Yes please!

@iodic
Copy link

iodic commented Nov 14, 2022

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.

@lukaspavelka
Copy link

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

@nkhuy09
Copy link

nkhuy09 commented Jun 27, 2023

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
Copy link

nkhuy09 commented Jun 30, 2023

@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.

@lukaspavelka
Copy link

@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
Copy link

image

@iodic
Copy link

iodic commented Dec 12, 2023

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants