Arquivo de tag centos 7

porDiego Elcain

Downgrade php7 para 5.6 centos 7

service httpd stop

then

yum install php56

then

yum –enablerepo=remi-php56 install php56-php php56-php-pear php56-php-bcmath php56-php-pecl-jsond-devel php56-php-mysqlnd php56-php-gd php56-php-common php56-php-fpm php56-php-intl php56-php-cli php56-php php56-php-xml php-php-opcache php56-php-pecl-apcu php56-php-pecl-jsond php56-php-pdo php56-php-gmp php56-php-process php56-php-pecl-imagick php56-php-devel php56-php-mbstring

then

service php70-php-fpm stop

then

rm /usr/bin/php

press y

then

ln -s /usr/bin/php56 /usr/bin/php

then

service httpd restart

and it’s done

check PHP version by running

php -v

That’s it if your hosting not providing support or solution contact us by https://royalclouds.net/support

porDiego Elcain

Unifi Controller CentOS 7

Instalar o repositório epel (repositório de pacotes extras da red hat)123

# yum install epel-release -y

Verifique o status do Selinux1234

# sestatusSELinux status: disabled

Agora iremos criar o usuário ubnt

# useradd -r ubnt

Vamos instalar os programas necessários para instalar o Ubiquiti UniFi Controller.

# yum install mongodb-server java-1.8.0-openjdk unzip wget -y

Faça o download e extraia o UniFi Controller v5.6.30

# cd /tmp

Escolha a vesãooo

# wget http://dl.ubnt.com/unifi/5.6.30/UniFi.unix.zip

# wget http://dl-origin.ubnt.com/unifi/5.10.23/UniFi.unix.zip

# unzip -q UniFi.unix.zip -d /opt

# chown -R ubnt:ubnt /opt/UniFi

Crie o serviço que será executado no systemd

# vim /etc/systemd/system/unifi.service

# Systemd unit file for UniFi Controller
#
[Unit]
Description=UniFi AP Web Controller
After=syslog.target network.target
#
[Service]
Type=simple
User=ubnt
WorkingDirectory=/opt/UniFi
ExecStart=/usr/bin/java -Xmx1024M -jar /opt/UniFi/lib/ace.jar start
ExecStop=/usr/bin/java -jar /opt/UniFi/lib/ace.jar stop
SuccessExitStatus=143
#
[Install]
WantedBy=multi-user.target

Vamos executar o Serviço e habilitar para iniciar junto com o Sistema Operacional.

# systemctl enable unifi.service
# systemctl start unifi.service