Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Longhorn

Pages: [1]
PHP Selector / Re: PECL extensions using PHP-FPM?
« on: October 24, 2023, 12:04:10 AM »
In the CLI, you have to call the specific version of php-fpm you want, instead of just blindly calling php in the terminal. For example, call php 8.1 with no memory limit (as I often have to do with composer):
Code: [Select]
/opt/alt/php-fpm81/usr/bin/php -d memory_limit=-1
And for things that need to run as a specific user, instead of root:
Code: [Select]
sudo -u USERNAME /opt/alt/php-fpm81/usr/bin/php -d memory_limit=-1

Can't understand what this answer has to be with the PECL question.

NOTE: I second this question because PECL is not working for php-fpm installations

CentOS-WebPanel GUI / Re: CWP Invalid session on login
« on: August 24, 2023, 11:33:13 AM »
I believe that the issue could be solved easily if the CWP developers change the code to get the real IP. Because you can notice that at the bottom of the CWP dashboard where it says "Your IP" that it's wrong when using behind the CLoudFlare proxy. It can be observed for a moment, just before being logged out from the panel.

May be anybody knows how to suggest this to the CWP team, because it's really a very small change into the source code. But may be I'm wrong. Just my two cents trying to provide a solution

CentOS-WebPanel GUI / Re: CWP Invalid session on login
« on: August 24, 2023, 11:20:58 AM »
Very interested in this issue. I'm trying to solve the same problem, because the CloudFlare proxy changes the detected IP of the logged client, that's why it doesn't work. It could be solved if the real IP is passed to the CWP, so the cuestion is: How?

The last build log lines are this:

Code: [Select]
Build complete.
Don't forget to run 'make test'.

Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/php/man/man1/
Installing phpdbg binary: /usr/local/bin/
Installing phpdbg man page: /usr/local/php/man/man1/
Installing PHP CGI binary: /usr/local/bin/
Installing PHP CGI man page: /usr/local/php/man/man1/
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/man/man1/
page: phpize.1
page: php-config.1
/usr/local/src/php-build/php-8.0.23/build/shtool install -c ext/phar/phar.phar /usr/local/bin/phar.phar
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers: /usr/local/include/php/ext/pdo/

Build Completed

PHP Selector / Re: PHP-FPM 8.0 not building.
« on: October 04, 2022, 05:19:52 PM »
Finally I managed to solve it by rebuilding openssl from sources and the PHP build completed successfuly. But my problem now is that after rebuild the new version is not being updated. System already shows the old one. Could Anyone help with this?

Current PHP version was 8.0.20 and manually executed the build to update it to 8.0.23. After all process it finished with no errors at all but the change is not being reflected on the page. It still remains displaying 8.0.20 version as currently installed.

What else do I need to complete the update? I've tried restarting PHP-FPM and also apache with no success.

CentOS 7 Problems / Re: OpenSSL 1.1.1 use with php
« on: August 22, 2022, 05:48:15 PM »
I believe that your openssl lib path is wrong. It should be: /usr/local/opensslso

That's it.

PHP Selector / Re: PHP-FPM 8.0 not building.
« on: August 02, 2022, 03:39:08 AM »
I'm having same issue. Disabling the Sodium module in configuration before build solves that error but it raises another one related with opcache and jit

In my case I'm trying to build php 8.1 without success

Apache / Re: FastCGI
« on: April 08, 2018, 07:57:35 PM »
There is any progress on this issue? suPHP uses a lot of CPU power, fastCGI is more efficient with same security. It could be really great to have this option to switch to fastCGI because if works better in some environments.

Thanks in advance

Pages: [1]