strutture:lnf:dr:calcolo:sistemi:aggiornare-php-centos
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| strutture:lnf:dr:calcolo:sistemi:aggiornare-php-centos [2018/10/18 10:20] – dmaselli@infn.it | strutture:lnf:dr:calcolo:sistemi:aggiornare-php-centos [2018/10/18 11:30] (current) – dmaselli@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== PHP nuovo su Centos ====== | ||
| + | |||
| + | Ecco un esempio con php 5.6. **Possono essere installate varie versioni, anche contemporaneamente facendo ascoltare php-fpm su porte diverse e poi cambiando la configurazione dell' | ||
| + | |||
| + | yum install rh-php56 rh-php56-php-fpm | ||
| + | |||
| + | yum list installed php* | cut -f1 -d. | grep php | sed s/ | ||
| + | |||
| + | yum install rh-php56-php-cli rh-php56-php-common rh-php56-php-devel rh-php56-php-gd rh-php56-php-process rh-php56-php-xml | ||
| + | |||
| + | systemctl enable rh-php56-php-fpm.service | ||
| + | systemctl start rh-php56-php-fpm.service | ||
| + | systemctl status rh-php56-php-fpm.service | ||
| + | |||
| + | vi / | ||
| + | Sostituire: | ||
| + | < | ||
| + | < | ||
| + | SetHandler application/ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Con | ||
| + | |||
| + | < | ||
| + | <Proxy " | ||
| + | ProxySet timeout=3600 | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | SetHandler " | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | vi / | ||
| + | | ||
| + | |||
| + | systemctl restart httpd.service | ||
| + | | ||
| + | ===== File di configurazione ===== | ||
| + | |||
| + | Attenzione ai nuovi file di configurazione che si trovano in / | ||
| + | |||
| + | |||
| + | ===== Riferimenti ===== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
