View previous topic :: View next topic |
Author |
Message |
GoofyX Tux's lil' helper
Joined: 23 Feb 2005 Posts: 84 Location: Greece
|
Posted: Wed Aug 16, 2023 3:57 pm Post subject: PHP cgi flag, is it needed? |
|
|
I'm using PHP with FPM and Apache in a variety of my Gentoo machines and works flawlessly. My question is:
Do I need the cgi USE flag enabled for the PHP package?
I'm looking for ways to lower the compilation time for this package, so I guess disabling this flag is one way to go.
My current USE flags is:
Code: | 8.0.28(8.0) (acl argon2 bcmath bzip2 calendar cgi cli ctype curl exif fileinfo filter fpm ftp gd gdbm gmp iconv imap intl ipv6 jit ldap mysql mysqli nls opcache pcntl pdo phar posix postgres readline session simplexml soap sockets spell sqlite ssl systemd sysvipc tidy tokenizer truetype unicode webp xml xmlreader xmlwriter xpm xslt zip zlib -apache2 -apparmor -berkdb -cdb -cjk -coverage -debug -embed -enchant -ffi -firebird -flatfile -inifile -iodbc -kerberos -ldap-sasl -libedit -lmdb -mhash -mssql -oci8-instant-client -odbc -phpdbg -qdbm -selinux -session-mm -sharedmem -snmp -sodium -test -threads -tokyocabinet) |
_________________ ... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain... |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3882
|
Posted: Wed Aug 16, 2023 5:05 pm Post subject: |
|
|
According to the ebuild
Code: |
REQUIRED_USE="
|| ( cli cgi fpm apache2 embed phpdbg )
|
One of them.Or more?
So if you have fpm maybe you dont need cgi. _________________
|
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1744
|
Posted: Wed Aug 16, 2023 5:57 pm Post subject: Re: PHP cgi flag, is it needed? |
|
|
GoofyX wrote: | I'm using PHP with FPM and Apache in a variety of my Gentoo machines and works flawlessly. My question is:
Do I need the cgi USE flag enabled for the PHP package? |
It is not required to have the cgi USE to use FPM. This USE is for traditional CGI and not fpm (think old cgi-bin websites). Removing cgi USE will decrease the time by one third for this package with the USE mentioned above. |
|
Back to top |
|
|
GoofyX Tux's lil' helper
Joined: 23 Feb 2005 Posts: 84 Location: Greece
|
Posted: Wed Aug 16, 2023 8:20 pm Post subject: |
|
|
Thank you both! _________________ ... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain... |
|
Back to top |
|
|
|