Comments (3)
Hello
should be solved with https://github.com/AlternC/alternc-php-fpm/blob/issue-18/src/usr/lib/alternc/php7-fpm#L76
Is it enough ?
from alternc-php-fpm.
It doesn't work because the unit exists even if the service is dead. The script checks for /etc/php/$version/fpm/pool.d
so it will try anyway for any installed version:
root@staging-alternc:/usr/lib/alternc# service php5.6-fpm status | grep 'Active:'
Active: inactive (dead) since Tue 2023-04-25 15:09:58 EDT; 2min 39s ago
root@staging-alternc:/usr/lib/alternc# ls /etc/init.d/php*
/etc/init.d/php5.6-fpm /etc/init.d/php7.1-fpm /etc/init.d/php7.3-fpm /etc/init.d/php8.0-fpm /etc/init.d/php8.2-fpm
/etc/init.d/php7.0-fpm /etc/init.d/php7.2-fpm /etc/init.d/php7.4-fpm /etc/init.d/php8.1-fpm
root@staging-alternc:/usr/lib/alternc# ./php7-fpm
Alternc-nss: updating files in /var/lib/extrausers/
2023-04-25 15:10:41 Log of php7-fpm
Creating php 5.6 fpm pool for user test
Reloading php5.6-fpm configuration (via systemctl): php5.6-fpm.servicephp5.6-fpm.service is not active, cannot reload.
failed!
So here, in a case where php5.6-fpm was not running, adding a sub-domain on 5.6 fails (silently from the user side, since it's from the cron). And the page will show a 503.
from alternc-php-fpm.
Hello
Ok we must improve this behavior and do a check between sysV and systemd. I'll do a next try to manage this two use case.
If service is disabled script should not start it . We initial suggestion this choice will be ignored , and start forced.
from alternc-php-fpm.
Related Issues (20)
- Enable .php.ini local config HOT 2
- Config PHP-FPM manuelle HOT 2
- Protect .php.ini file HOT 1
- Delete configuration on delete account HOT 1
- Error during alternc.install
- adding MaxClientsVHost for apache templates
- trigger php installation
- Allow catch error 40x 50X
- Erreur à l'install
- Missing PHP 8.0 dependencies HOT 4
- php8.2 timezone
- Don't override existing fpm template during update/installtio
- Check php service before to reload/restart it
- MX compatibility
- Retours de test HOT 1
- erreur dans la requête d'insertion des version de php-fpm (si alternc-ssl est installé?) HOT 4
- Proposition de changement de présentation dasn l'interface + corr bugs HOT 1
- Domains type names conflics with alternc
- Error when use MultiViews option in .htaccess
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alternc-php-fpm.