ASIX/M08/UF1/P41/29
Salta a la navegació
Salta a la cerca
yum -y install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-pecl-apc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel mod_fcgid php-cli httpd-devel php-fpm wget
Configuració PHP
Editarem l'arxiu /etc/php.ini
i deshabilitarem la mostra d'errors, configurar la zona horària i descomentar cgi.fix_pathinfo=1
de manera que, les línies corresponents, quedin de la manera següent:
(...) error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT (...) date.timezone = 'Europe/Andorra' (...) cgi.fix_pathinfo=1 (...)
Habilitarem PHP-FPM i Apache de nou per tal d'aplicar aquest canvi en el motor de PHP:
systemctl start php-fpm.service systemctl enable php-fpm.service systemctl enable httpd.service systemctl start httpd.service
Suport per a Let's Encrypt (SSL)
Descarregarem el programari:
mkdir /opt/certbot cd /opt/certbot wget https://dl.eff.org/certbot-auto chmod a+x ./certbot-auto
Executarem certbot-auto
. Ens sortirà el missatge no names were found in your configuration files. El que farem serà cancel·lar amb c
ja que els certificats els farà el propi ISPConfig i aquest script només ens instal·larà possibles dependències que no tinguem i configurarà aspectes de Python com ara els virtual-envs:
[root@ispconfig certbot]# ./certbot-auto (...) Completat! Creating virtual environment... Installing Python packages... Installation succeeded. Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache Enter email address (used for urgent renewal and security notices) (Enter 'c' to cancel): guillem_solaboeck@iescarlesvallbona.cat - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must agree in order to register with the ACME server at https://acme-v02.api.letsencrypt.org/directory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (A)gree/(C)ancel: a - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Would you be willing to share your email address with the Electronic Frontier Foundation, a founding partner of the Let's Encrypt project and the non-profit organization that develops Certbot? We'd like to send you email about our work encrypting the web, EFF news, campaigns, and ways to support digital freedom. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (Y)es/(N)o: n No names were found in your configuration files. Please enter in your domain name(s) (comma and/or space separated) (Enter 'c' to cancel): c Please specify --domains, or --installer that will help in domain names autodiscovery, or --cert-name for an existing certificate name. IMPORTANT NOTES: - Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal.