# Next cloud on CentOS

### Установка LAMP

<https://phoenixnap.com/kb/how-to-install-lamp-stack-on-centos>

```
## start at boot
systemctl enable httpd.service | systemctl enable mariadb.service

## Firewall
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload

## run
systemctl start httpd.service | systemctl start mariadb
```

### Установка Nextcloud

<https://docs.nextcloud.com/server/19/admin_manual/installation/source_installation.html#php-fpm-configuration-notes>

{% code title="Extensions" %}

```
## Required (missed)
+ PHP module GD
+ mbstring
+ posix
+ SimpleXML
+ PHP module XMLReader
+ PHP module XMLWriter
+ PHP module zip

## Recomended
intl
memcached
PHP module ldap (for LDAP integration)
PHP module smbclient (SMB/CIFS integration, see SMB/CIFS)
PHP module imap (for external user authentication)
PHP module bcmath (for passwordless login)
PHP module gmp (for passwordless login)
PHP module imagick (For preview generation)
```

{% endcode %}

{% code title="Cmd log" %}

```
sudo yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum -y install yum-utils
sudo yum-config-manager --enable remi-php74
sudo yum install php php-cli

yum install php-pear
yum --enablerepo remi install php-devel
yum --enablerepo remi install php-xml
yum install php-pecl-zip
yum install php-simplexml
yum install -y php-mbstring
yum install gd gd-devel php-gd
```

{% endcode %}
